This endpoint returns the most recent 1000 Mark Price entries or the 1000 Mark Price entries since a specified time.
Authentication is not required.
Note: This endpoint only returns values since 27th of May, 2021.
Endpoint |
Request Type | Permissible API Keys |
/api/history/v2/market/{symbol}/price | GET | N/A |
Argument | Type | Required | Description |
symbol
|
string | Yes | The symbol of the Futures, see Ticker Symbols |
since |
integer |
No |
Unix timestamp in millisecond |
before |
integer |
No |
Unix timestamp in millisecond, must have since parameter included |
sort |
string |
No |
asc for results in ascending order desc for results in descending Required if since or before argument are included.Default is desc |
continuationToken |
string <base64> |
No |
Continuation token provided from a prior response which can be used in call to return the next set of available results |
Sample Return if Successful |
{ ... ], |
Field |
Type | Description |
uid | string | Always undefined |
timestamp | positive integer | Unix timestamp in milliseconds (UTC) |
event | set of structures | Structures containing mark price change data |
MarkPriceChanged | structure | Structure containing mark price data |
price | string <decimal> | Updated Mark Price |
len | positive integer | Length of response |
Sample Return if Unsuccessful |
{ "reason": "Resource was not found.", "status": "not_found" } |
Field |
Type | Description |
reason
|
string |
Reason for error:
|
status
|
string |
Status of request:
|