APRO Oracle Data Pull is a pull mode oracle product for those who require low-latency data feed service.
Following process chart is how pull mode works:
This doc is the integration guide for projects on SOON Devnet.
Domains
Description
Devnet URL
Mainnet URL
REST Endpoint to query specific reports
Program IDs
Description
Devnet
Mainnet
Apro_SVM_Oracle
4Mvy4RKRyJMf4PHavvGUuTj9agoddUZ9atQoFma1tyMY
4Mvy4RKRyJMf4PHavvGUuTj9agoddUZ9atQoFma1tyMY
Sample_Client
HUJ8ouH6fVonhF1hPV6ENoLid5nbHfyZSpvfujw6X6Hm
HUJ8ouH6fVonhF1hPV6ENoLid5nbHfyZSpvfujw6X6Hm
Authentication
Headers
All routes require the following two headers for user authentication:
Header
Description
Authorization
The user’s unique identifier, provided as a UUID (Universally Unique IDentifier).
X-Authorization-Timestamp
The current timestamp, with precision up to milliseconds. The timestamp must closely synchronize with the server time, allowing a maximum discrepancy of 5 seconds (by default).
For a value of 10 digits, it is multiplied directly by 1000 to milliseconds.
To get authorization, please contact our BD Team:
Email: bd@apro.com
API endpoints
Return a single report at a given timestamp
Endpoint
/api/soon/reports
Type
Description
Parameter(s)
HTTP GET
Returns a single report for a given timestamp.
feedID: A Data Streams feed ID.
timestamp: The Unix timestamp for the report.
Sample request
GET /api/soon/reports?feedID=<feedID>×tamp=<timestamp>
Sample response
Return a single report with the latest timestamp
Endpoint
/api/soon/reports/latest
Type
Parameter(s)
HTTP GET
feedID: A Data Streams feed ID.
Sample request
GET /api/soon/reports/latest?feedID=<feedID>
Sample response
Return a report for multiple FeedIDs at a given timestamp
Endpoint
/api/soon/reports/bulk
Type
Description
Parameter(s)
HTTP GET
Return a report for multiple FeedIDs at a given timestamp.
feedIDs: A comma-separated list of Data Streams feed IDs.
timestamp: The Unix timestamp for the first report or the string 'latest' for getting the latest report.
Sample request
GET /api/soon/reports/bulk?feedIDs=<feedID1>,<feedID2>,...×tamp=<timestamp>
GET /api/soon/reports/bulk?feedIDs=<feedID1>,<feedID2>,...×tamp=latest
Sample response
Return multiple sequential reports for a single FeedID, starting at a given timestamp
Endpoint
/api/soon/reports/page
Type
Description
Parameter(s)
HTTP GET
Return multiple sequential reports for a single FeedID, starting at a given timestamp.
feedID: A Data Streams feed ID.
startTimestamp: The Unix timestamp for the first report.
limit (optional): The number of reports to return.
Sample request
GET /api/soon/reports/page?feedID=<FeedID>&startTimestamp=<StartTimestamp>&limit=<Limit>
Sample response
WebSocket Connection
Establish a streaming WebSocket connection that sends reports for the given feedID(s) after they are verified.
Endpoint
/api/soon/ws
Type
Parameter(s)
WebSocket
feedIDs: A comma-separated list of Data Streams feed IDs.
Required headers are missing or provided with incorrect values.
401 Unauthorized User
This error is triggered when:
Authentication fails, typically because the HMAC signature provided by the client doesn't match the one expected by the server.
A user requests access to a feed without the appropriate permission or that does not exist.
500 Internal Server
Indicates an unexpected condition encountered by the server, preventing it from fulfilling the request. This error typically points to issues on the server side.
206 Missing data (/bulk endpoint only)
Indicates that at least one feed ID data is missing from the report. E.g., you requested a report for feed IDs <feedID1>, <feedID2>, and <feedID3> at a given timestamp. If data for <feedID2> is missing from the report (not available yet at the specified timestamp), you get [<feedID1 data>, <feedID3 data>] and a 206 response.