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

Latest commit

 

History

History
108 lines (78 loc) · 3.04 KB

LinearKlineApi.md

File metadata and controls

108 lines (78 loc) · 3.04 KB

LinearKlineApi

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

linearKlineGet

Object linearKlineGet(symbol, interval, from, limit)

Get kline

This will get kline

Example

// 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();
}

Parameters

Name Type Description Notes
symbol String Contract type.
interval String Kline interval.
from BigDecimal from timestamp.
limit BigDecimal Contract type. [optional]

Return type

Object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

linearKlineMarkPrice

Object linearKlineMarkPrice(symbol, interval, from, limit)

Get kline

This will get mark price kline

Example

// 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();
}

Parameters

Name Type Description Notes
symbol String Contract type.
interval String Kline interval.
from BigDecimal from timestamp.
limit BigDecimal Contract type. [optional]

Return type

Object

Authorization

apiKey, apiSignature, timestamp

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json