Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Latest commit

 

History

History
88 lines (54 loc) · 2.8 KB

KlineApi.md

File metadata and controls

88 lines (54 loc) · 2.8 KB

\KlineApi

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.

KlineGet

interface{} KlineGet(ctx, symbol, interval, from, optional) Query historical kline.

Required Parameters

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

Optional parameters are passed through a pointer to a KlineGetOpts struct

Name Type Description Notes

limit | optional.Float32| Contract type. |

Return type

interface{}

Authorization

No authorization required

HTTP request headers

  • 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]

KlineMarkPrice

interface{} KlineMarkPrice(ctx, symbol, interval, from, optional) Query mark price kline.

Required Parameters

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

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 |

Return type

interface{}

Authorization

No authorization required

HTTP request headers

  • 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]