Skip to content

Latest commit

 

History

History
114 lines (82 loc) · 3.84 KB

AnnouncementApi.md

File metadata and controls

114 lines (82 loc) · 3.84 KB

bitmex_client.AnnouncementApi

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.

announcement_get

list[Announcement] announcement_get(columns=columns)

Get site announcements.

Example

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)

Parameters

Name Type Description Notes
columns str Array of column names to fetch. If omitted, will return all columns. [optional]

Return type

list[Announcement]

Authorization

No authorization required

HTTP request headers

  • 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]

announcement_get_urgent

list[Announcement] announcement_get_urgent()

Get urgent (banner) announcements.

Example

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)

Parameters

This endpoint does not need any parameter.

Return type

list[Announcement]

Authorization

apiKey, apiNonce, apiSignature

HTTP request headers

  • 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]