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 (string symbol, string interval, decimal? from, decimal? limit = null)
Get kline
This will get kline
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | string | Contract type. | |
interval | string | Kline interval. | |
from | decimal? | from timestamp. | |
limit | decimal? | Contract type. | [optional] |
Object
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]
Object LinearKlineMarkPrice (string symbol, string interval, decimal? from, decimal? limit = null)
Get kline
This will get mark price kline
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | string | Contract type. | |
interval | string | Kline interval. | |
from | decimal? | from timestamp. | |
limit | decimal? | Contract type. | [optional] |
Object
apiKey, apiSignature, timestamp
- 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]