All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
linearKlineGet | GET /public/linear/kline | Get kline |
linearKlineMarkPrice | GET /public/linear/mark-price-kline | Get kline |
Object linearKlineGet(symbol, interval, from, limit)
Get kline
This will get kline
// Import classes:
//import io.swagger.client.api.LinearKlineApi;
LinearKlineApi apiInstance = new LinearKlineApi();
String symbol = "symbol_example"; // String | Contract type.
String interval = "interval_example"; // String | Kline interval.
BigDecimal from = new BigDecimal(); // BigDecimal | from timestamp.
BigDecimal limit = new BigDecimal(); // BigDecimal | Contract type.
try {
Object result = apiInstance.linearKlineGet(symbol, interval, from, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LinearKlineApi#linearKlineGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Contract type. | |
interval | String | Kline interval. | |
from | BigDecimal | from timestamp. | |
limit | BigDecimal | Contract type. | [optional] |
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
Object linearKlineMarkPrice(symbol, interval, from, limit)
Get kline
This will get mark price kline
// Import classes:
//import io.swagger.client.api.LinearKlineApi;
LinearKlineApi apiInstance = new LinearKlineApi();
String symbol = "symbol_example"; // String | Contract type.
String interval = "interval_example"; // String | Kline interval.
BigDecimal from = new BigDecimal(); // BigDecimal | from timestamp.
BigDecimal limit = new BigDecimal(); // BigDecimal | Contract type.
try {
Object result = apiInstance.linearKlineMarkPrice(symbol, interval, from, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LinearKlineApi#linearKlineMarkPrice");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Contract type. | |
interval | String | Kline interval. | |
from | BigDecimal | from timestamp. | |
limit | BigDecimal | Contract type. | [optional] |
Object
apiKey, apiSignature, timestamp
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json