All URIs are relative to https://api.bybit.com
| Method | HTTP request | Description |
|---|---|---|
| common_announcements | GET /v2/public/announcement | Get Bybit OpenAPI announcements in the last 30 days in reverse order. |
| common_get_lcp | GET /v2/private/account/lcp | Query LCP info. |
| common_get_time | GET /v2/public/time | Get bybit server time. |
object common_announcements()
Get Bybit OpenAPI announcements in the last 30 days in reverse order.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CommonApi()
try:
# Get Bybit OpenAPI announcements in the last 30 days in reverse order.
api_response = api_instance.common_announcements()
pprint(api_response)
except ApiException as e:
print("Exception when calling CommonApi->common_announcements: %s\n" % e)This endpoint does not need any parameter.
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 common_get_lcp(symbol)
Query LCP info.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CommonApi()
symbol = 'symbol_example' # str | Contract type
try:
# Query LCP info.
api_response = api_instance.common_get_lcp(symbol)
pprint(api_response)
except ApiException as e:
print("Exception when calling CommonApi->common_get_lcp: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| symbol | str | Contract type |
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 common_get_time()
Get bybit server time.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.CommonApi()
try:
# Get bybit server time.
api_response = api_instance.common_get_time()
pprint(api_response)
except ApiException as e:
print("Exception when calling CommonApi->common_get_time: %s\n" % e)This endpoint does not need any parameter.
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]