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

Latest commit

 

History

History
157 lines (122 loc) · 4.92 KB

LinearKlineApi.md

File metadata and controls

157 lines (122 loc) · 4.92 KB

IO.Swagger.Api.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 (string symbol, string interval, decimal? from, decimal? limit = null)

Get kline

This will get kline

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class LinearKlineGetExample
    {
        public void main()
        {
            var apiInstance = new LinearKlineApi();
            var symbol = symbol_example;  // string | Contract type.
            var interval = interval_example;  // string | Kline interval.
            var from = 8.14;  // decimal? | from timestamp.
            var limit = 8.14;  // decimal? | Contract type. (optional) 

            try
            {
                // Get kline
                Object result = apiInstance.LinearKlineGet(symbol, interval, from, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LinearKlineApi.LinearKlineGet: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
symbol string Contract type.
interval string Kline interval.
from decimal? from timestamp.
limit decimal? 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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

LinearKlineMarkPrice

Object LinearKlineMarkPrice (string symbol, string interval, decimal? from, decimal? limit = null)

Get kline

This will get mark price kline

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class LinearKlineMarkPriceExample
    {
        public void main()
        {
            // Configure API key authorization: apiKey
            Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("api_key", "Bearer");
            // Configure API key authorization: apiSignature
            Configuration.Default.AddApiKey("sign", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("sign", "Bearer");
            // Configure API key authorization: timestamp
            Configuration.Default.AddApiKey("timestamp", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("timestamp", "Bearer");

            var apiInstance = new LinearKlineApi();
            var symbol = symbol_example;  // string | Contract type.
            var interval = interval_example;  // string | Kline interval.
            var from = 8.14;  // decimal? | from timestamp.
            var limit = 8.14;  // decimal? | Contract type. (optional) 

            try
            {
                // Get kline
                Object result = apiInstance.LinearKlineMarkPrice(symbol, interval, from, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LinearKlineApi.LinearKlineMarkPrice: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
symbol string Contract type.
interval string Kline interval.
from decimal? from timestamp.
limit decimal? 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

[Back to top] [Back to API list] [Back to Model list] [Back to README]