All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
LinearMarketTrading | GET /public/linear/recent-trading-records | Get recent trades |
Object LinearMarketTrading (string symbol, string limit = null)
Get recent trades
This will get recent trades
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
symbol | string | Contract type. | |
limit | string | 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]