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

Latest commit

 

History

History
85 lines (65 loc) · 2.8 KB

LinearMarketApi.md

File metadata and controls

85 lines (65 loc) · 2.8 KB

IO.Swagger.Api.LinearMarketApi

All URIs are relative to https://api.bybit.com

Method HTTP request Description
LinearMarketTrading GET /public/linear/recent-trading-records Get recent trades

LinearMarketTrading

Object LinearMarketTrading (string symbol, string limit = null)

Get recent trades

This will get recent trades

Example

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

namespace Example
{
    public class LinearMarketTradingExample
    {
        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 LinearMarketApi();
            var symbol = symbol_example;  // string | Contract type.
            var limit = limit_example;  // string | Contract type. (optional) 

            try
            {
                // Get recent trades
                Object result = apiInstance.LinearMarketTrading(symbol, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LinearMarketApi.LinearMarketTrading: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
symbol string Contract type.
limit string 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]