All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
KlineGet | Get /v2/public/kline/list | Query historical kline. |
KlineMarkPrice | Get /v2/public/mark-price-kline | Query mark price kline. |
interface{} KlineGet(ctx, symbol, interval, from, optional) Query historical kline.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
interval | string | Kline interval. | |
from | float32 | from timestamp. | |
optional | *KlineGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a KlineGetOpts struct
Name | Type | Description | Notes |
---|
limit | optional.Float32| Contract type. |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} KlineMarkPrice(ctx, symbol, interval, from, optional) Query mark price kline.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
interval | string | Data refresh interval | |
from | int32 | From timestamp in seconds | |
optional | *KlineMarkPriceOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a KlineMarkPriceOpts struct
Name | Type | Description | Notes |
---|
limit | optional.Int32| Limit for data size, max size is 1000. Default size is 500 |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]