All URIs are relative to https://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
announcement_get | GET /announcement | Get site announcements. |
announcement_get_urgent | GET /announcement/urgent | Get urgent (banner) announcements. |
list[Announcement] announcement_get(columns=columns)
Get site announcements.
from __future__ import print_function
import time
import bitmex_client
from bitmex_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = bitmex_client.AnnouncementApi()
columns = 'columns_example' # str | Array of column names to fetch. If omitted, will return all columns. (optional)
try:
# Get site announcements.
api_response = api_instance.announcement_get(columns=columns)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnouncementApi->announcement_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
columns | str | Array of column names to fetch. If omitted, will return all columns. | [optional] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Announcement] announcement_get_urgent()
Get urgent (banner) announcements.
from __future__ import print_function
import time
import bitmex_client
from bitmex_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: apiKey
configuration = bitmex_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: apiNonce
configuration = bitmex_client.Configuration()
configuration.api_key['api-nonce'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-nonce'] = 'Bearer'
# Configure API key authorization: apiSignature
configuration = bitmex_client.Configuration()
configuration.api_key['api-signature'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-signature'] = 'Bearer'
# create an instance of the API class
api_instance = bitmex_client.AnnouncementApi(bitmex_client.ApiClient(configuration))
try:
# Get urgent (banner) announcements.
api_response = api_instance.announcement_get_urgent()
pprint(api_response)
except ApiException as e:
print("Exception when calling AnnouncementApi->announcement_get_urgent: %s\n" % e)
This endpoint does not need any parameter.
apiKey, apiNonce, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]