Skip to content

danaikhamkao721/BrokerCex-api

 
 

Repository files navigation

swagger-client

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

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 

Setuptools

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

Getting Started

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)

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

apiKey

  • Type: API key
  • API key parameter name: broAuth
  • Location: HTTP header

Author

support@cexbro.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%