get
https://mds.connex.trade/api/v1/mds/markpriceklines
This API will provides the price mark K-line data for futures.
🚧
Tips
1.Rate limit: To be added later
2.Only supports querying futures mark price K-line data.
Request
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| sym | string | Y | Trading pair unique identifier , example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT |
| interval | string | N | Time interval, i.e., the period of the K-line. For example, 1m means 1-minute K-line, 3m is 3-minute K-line, 1H is 1-hour K-line, etc. Used to determine the period for the returned K-line data. Default is 1m. Options: [1m/3m/5m/15m/30m/1H/2H/4H/8H/12H/1D/5D]. |
| endtime | string | N | End time, in milliseconds timestamp format. If not provided, the API returns the 500 K-line data points closest to the current time; if provided, returns K-line data ending at this time and going backwards. |
| limit | string | N | Specifies the number of K-line data points to return. Default is 500, maximum is 500. |
Response
| Field name | Type | Remarks |
|---|---|---|
| ts | string | Start time, Unix timestamp in milliseconds, e.g., 1597026383085 |
| o | string | Open price |
| h | string | High price |
| i | string | Low price |
| c | string | Close price |
| v | string | Volume |
