All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
linear_market_trading | GET /public/linear/recent-trading-records | Get recent trades |
object linear_market_trading(symbol, limit=limit)
Get recent trades
This will get recent trades
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# Configure API key authorization: apiSignature
configuration = swagger_client.Configuration()
configuration.api_key['sign'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['sign'] = 'Bearer'
# Configure API key authorization: timestamp
configuration = swagger_client.Configuration()
configuration.api_key['timestamp'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['timestamp'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.LinearMarketApi(swagger_client.ApiClient(configuration))
symbol = 'symbol_example' # str | Contract type.
limit = 'limit_example' # str | Contract type. (optional)
try:
# Get recent trades
api_response = api_instance.linear_market_trading(symbol, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling LinearMarketApi->linear_market_trading: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
symbol | str | Contract type. | |
limit | str | 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]