All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
MarketAccountRatio | Get /v2/public/account-ratio | Query Account Long Short Ratio |
MarketBigDeal | Get /v2/public/big-deal | Query Big Deal |
MarketLiqRecords | Get /v2/public/liq-records | Query liq records. |
MarketOpenInterest | Get /v2/public/open-interest | Query Open Interest |
MarketOrderbook | Get /v2/public/orderBook/L2 | Get the orderbook. |
MarketSymbolInfo | Get /v2/public/tickers | Get the latest information for symbol. |
MarketTradingRecords | Get /v2/public/trading-records | Get recent trades |
interface{} MarketAccountRatio(ctx, symbol, period, optional) Query Account Long Short Ratio
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
period | string | Data recording period. 5min, 15min, 30min, 1h, 4h, 1d | |
optional | *MarketAccountRatioOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MarketAccountRatioOpts struct
Name | Type | Description | Notes |
---|
limit | optional.Int32| Limit for data size, max size is 500. Default size is 50 |
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{} MarketBigDeal(ctx, symbol, optional) Query Big Deal
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
optional | *MarketBigDealOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MarketBigDealOpts 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]
interface{} MarketLiqRecords(ctx, symbol, optional) Query liq records.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
optional | *MarketLiqRecordsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MarketLiqRecordsOpts struct
Name | Type | Description | Notes |
---|
from | optional.Int32| From ID. Default: return latest data | limit | optional.Int32| Limit for data size, max size is 1000. Default size is 500 | startTime | optional.Int32| Start timestamp point for result, in millisecond | endTime | optional.Int32| End timestamp point for result, in millisecond |
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{} MarketOpenInterest(ctx, symbol, period, optional) Query Open Interest
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
period | string | Data recording period. 5min, 15min, 30min, 1h, 4h, 1d | |
optional | *MarketOpenInterestOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MarketOpenInterestOpts struct
Name | Type | Description | Notes |
---|
limit | optional.Int32| Limit for data size, max size is 200. Default size is 50 |
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{} MarketOrderbook(ctx, symbol) Get the orderbook.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | 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{} MarketSymbolInfo(ctx, optional) Get the latest information for symbol.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *MarketSymbolInfoOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MarketSymbolInfoOpts struct
Name | Type | Description | Notes |
---|---|---|---|
symbol | optional.String | 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{} MarketTradingRecords(ctx, symbol, optional) Get recent trades
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
symbol | string | Contract type. | |
optional | *MarketTradingRecordsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MarketTradingRecordsOpts struct
Name | Type | Description | Notes |
---|
from | optional.Int32| From ID. Default: return latest data | limit | optional.Int32| Number of results. Default 500; max 1000 |
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]