the purpose of this application is to provide an application that is using plain go code to define an API This should demonstrate all the possible comment annotations that are available to turn go code into a fully compliant swagger 2.0 spec. There are no TOS at this moment, use at your own risk we take no responsibility
This Python package is automatically generated by the Swagger Codegen project:
- API version: 0.0.1
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://broker.cex.io
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import swagger_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import swagger_client
Please follow the installation procedure and then run the following:
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['broAuth'] = 'apiKey, apiSignature'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['broAuth'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.MarketApi(swagger_client.ApiClient(configuration))
body = NULL # object | (optional)
try:
# getMarketInfo
api_response = api_instance.get_market_info(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MarketApi->get_market_info: %s\n" % e)
All URIs are relative to https://broker.cex.io/api/public/v1
Class | Method | HTTP request | Description |
---|---|---|---|
MarketApi | get_market_info | GET /info | getMarketInfo |
MarketApi | get_order_book | GET /orderbook | getOrderBook |
OperationsApi | cancel_order | POST /operations/cancel-order | cancelOrder |
OperationsApi | cancel_order_group | POST /operations/cancel-order-group | cancelOrderGroup |
OperationsApi | edit_account_order | POST /operations/edit-account-order | editOrder |
OperationsApi | get_account_metrics | POST /operations/account-metrics | getAccountMetrics |
OperationsApi | get_market_data | POST /marketdata | getMarketData |
OperationsApi | get_open_order_list | POST /operations/open-orders-list | getOpenOrderList |
OperationsApi | get_order_history_list | POST /operations/order-history | getOrderHistoryList |
OperationsApi | get_user_info | POST /operations/user-info | getUserInfo |
OperationsApi | open_account_order | POST /operations/place-account-order | placeOrder |
OperationsApi | open_account_order_group | POST /operations/place-account-order-group | placeOrderGroup |
- AccountMetrics
- AccountMetricsHandlerResponse
- AccountMetricsResponse
- Body
- Body1
- Body2
- Body3
- Body4
- Body5
- Body6
- Body7
- CancelOrderGroupHandlerResponse
- CancelOrderGroupResponse
- CancelOrderGroupResponseOrderResponses
- CancelOrderHandlerResponse
- CancelOrderResponse
- EditAccountOrderHandlerResponse
- EditOrderResponse
- InlineResponse200
- InlineResponse2001
- InlineResponse400
- MarketDataEvent
- MarketDataHandlerResponse
- MarketDataList
- MarketDataType
- MarketPairInfo
- MarketdataEventTypes
- OpenAccountOrderHandlerRequest
- OpenAccountOrderHandlerResponse
- OpenOrderGroupHandlerResponse
- OpenOrderList
- OpenOrderListHandlerResponse
- OpenOrderRequest
- OpenOrderResponse
- Order
- OrderCashTransactions
- OrderExecution
- OrderHistoryListHandlerResponse
- OrderHistoryListResponse
- OrderLeg
- OrderLinks
- UserAccount
- UserInfoDetails
- UserInfoHandlerResponse
- UserInfoResponse
- UserPosition
- Type: API key
- API key parameter name: broAuth
- Location: HTTP header