| fieldName | dataType | description | filter | sort |
|---|---|---|---|---|
| defiProtocol | TEXT | The oracle defi protocol | ||
| dataType | TEXT | The type of data associated with the data source: PRICE or RATING | (ASC)* | |
| ratingAgency | TEXT | The rating agency associated with the data source - applicable only to ratings data sources | ||
| onchainDataSourceOffchainId | OFFCHAIN_ID | The offchainId for the Onchain Data Source Account | ||
| onchainDataSourceOnchainId | ADDRESS_ONCHAIN_ID | The onchainId for the Onchain Data Source Account | ||
| financialInstrumentOffchainId | OFFCHAIN_ID | The offchainId for the Financial Instrument associated with the data source | ||
| financialInstrumentOnchainId | ADDRESS_ONCHAIN_ID | The onchainId for the Financial Instrument associated with the data source | ||
| onchainDataSourceAuthorityOffchainId | OFFCHAIN_ID | The offchainId for the Authority associated with the data source | ||
| onchainDataSourceAuthorityOnchainId | ADDRESS_ONCHAIN_ID | The onchainId for the Authority associated with the data source |
curl --location --request POST 'https://vf-solana-api.dev.alphaledger.com/api/v1/market-data/onchain-data-source/bulk?solanaClusterId=SOLANA_DEVNET' \
--header 'x-request-id: f9860f73-a466-41f2-a083-34eeb1cc3a3c' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"itemQuery": {
"limit": 10,
"skip": 0,
"filter": [
{
"fieldName": "See the endpoint description for allowed values",
"operator": "AND",
"filterValues": [
{
"dataType": "TEXT",
"filterType": "EQUALS",
"valueString": "string",
"valueNumber": 0,
"valueBoolean": true,
"valuesString": [
"string"
],
"valueFromString": "string",
"valueToString": "string",
"valueFromNumber": 0,
"valueToNumber": 0
}
]
}
],
"sort": [
{
"fieldName": "See the endpoint description for allowed values",
"sortDirection": "ASC"
}
]
},
"tenancyConfig": {
"overrideOrganizationExternalId": "ALIM"
}
}'{
"count": 17,
"items": {
"defiProtocol": "SWITCHBOARD",
"onchainDataSource": {
"onchain": {
"id": "6YaAdbMCV5GPRZ6AYbyEnGgggAHfEJjXTXYGrDVasQHK",
"lastTransactionId": "5vnjT6E19V4uQwHMojaR73XFoPjt9Y2nFn74xdDJZTK1MYScNWHpf876JFnSVzSqLxzEMLyzH355WWoiFN5ceMa9",
"lastTransactionAt": "2024-11-19T14:30:00.000Z",
"creationTransactionId": "3mTmwiMhwK286USNGGxCormm3srWcR5qmbCUb96jbz79Td53r6Nk2krCPeJ4LUUunwER8icNfGFXD2SQ8RnFPiZL",
"creationTransactionAt": "2024-11-19T14:30:00.000Z"
},
"offchain": {
"id": "b3e30f57-b404-4bd5-9e31-cec3298fa0bf",
"type": "WALLET",
"code": "BCDA",
"alId": "ALFNDPF000153786",
"organizationExternalId": "ALT",
"accountNumber": "ALT355566",
"name": "Trading Account",
"lamportsBalance": 4540000,
"tokenBalance": 2500000000,
"tokenDecimals": 8,
"lastTransactionId": "63e1c252-a23c-42af-a7f2-f48a2893c940",
"creationTransactionId": "f785791f-826b-4fe0-9547-6475518cdc7f"
},
"managed": true,
"privateKeyLocation": [
"SECRETS"
],
"isDerived": true,
"comments": "Some comments attached to the account",
"subscribeToNetworkEvents": true,
"sharedAcrossTenants": true,
"wasOnchainAlready": true,
"canPayFees": true,
"globalFeePayerForOrgs": [
"string"
],
"solDebitApiKeys": [
"string"
],
"tokenDebitApiKeys": [
"string"
],
"domain": "string"
},
"financialInstrument": {
"onchain": {
"id": "6YaAdbMCV5GPRZ6AYbyEnGgggAHfEJjXTXYGrDVasQHK",
"lastTransactionId": "5vnjT6E19V4uQwHMojaR73XFoPjt9Y2nFn74xdDJZTK1MYScNWHpf876JFnSVzSqLxzEMLyzH355WWoiFN5ceMa9",
"lastTransactionAt": "2024-11-19T14:30:00.000Z",
"creationTransactionId": "3mTmwiMhwK286USNGGxCormm3srWcR5qmbCUb96jbz79Td53r6Nk2krCPeJ4LUUunwER8icNfGFXD2SQ8RnFPiZL",
"creationTransactionAt": "2024-11-19T14:30:00.000Z"
},
"offchain": {
"id": "b3e30f57-b404-4bd5-9e31-cec3298fa0bf",
"type": "WALLET",
"code": "BCDA",
"alId": "ALFNDPF000153786",
"organizationExternalId": "ALT",
"accountNumber": "ALT355566",
"name": "Trading Account",
"lamportsBalance": 4540000,
"tokenBalance": 2500000000,
"tokenDecimals": 8,
"lastTransactionId": "63e1c252-a23c-42af-a7f2-f48a2893c940",
"creationTransactionId": "f785791f-826b-4fe0-9547-6475518cdc7f"
},
"managed": true,
"privateKeyLocation": [
"SECRETS"
],
"isDerived": true,
"comments": "Some comments attached to the account",
"subscribeToNetworkEvents": true,
"sharedAcrossTenants": true,
"wasOnchainAlready": true,
"canPayFees": true,
"globalFeePayerForOrgs": [
"string"
],
"solDebitApiKeys": [
"string"
],
"tokenDebitApiKeys": [
"string"
],
"domain": "string"
},
"onchainDataSourceAuthority": {
"onchain": {
"id": "6YaAdbMCV5GPRZ6AYbyEnGgggAHfEJjXTXYGrDVasQHK",
"lastTransactionId": "5vnjT6E19V4uQwHMojaR73XFoPjt9Y2nFn74xdDJZTK1MYScNWHpf876JFnSVzSqLxzEMLyzH355WWoiFN5ceMa9",
"lastTransactionAt": "2024-11-19T14:30:00.000Z",
"creationTransactionId": "3mTmwiMhwK286USNGGxCormm3srWcR5qmbCUb96jbz79Td53r6Nk2krCPeJ4LUUunwER8icNfGFXD2SQ8RnFPiZL",
"creationTransactionAt": "2024-11-19T14:30:00.000Z"
},
"offchain": {
"id": "b3e30f57-b404-4bd5-9e31-cec3298fa0bf",
"type": "WALLET",
"code": "BCDA",
"alId": "ALFNDPF000153786",
"organizationExternalId": "ALT",
"accountNumber": "ALT355566",
"name": "Trading Account",
"lamportsBalance": 4540000,
"tokenBalance": 2500000000,
"tokenDecimals": 8,
"lastTransactionId": "63e1c252-a23c-42af-a7f2-f48a2893c940",
"creationTransactionId": "f785791f-826b-4fe0-9547-6475518cdc7f"
},
"managed": true,
"privateKeyLocation": [
"SECRETS"
],
"isDerived": true,
"comments": "Some comments attached to the account",
"subscribeToNetworkEvents": true,
"sharedAcrossTenants": true,
"wasOnchainAlready": true,
"canPayFees": true,
"globalFeePayerForOrgs": [
"string"
],
"solDebitApiKeys": [
"string"
],
"tokenDebitApiKeys": [
"string"
],
"domain": "string"
},
"dataDetails": {
"kind": "PRICE",
"ratingProvider": "string"
},
"switchboardDetails": {
"kind": "QUOTES",
"jobDefinition": "string"
}
}
}