Welcome to the Crypto.com Exchange V2 API reference documentation.
The Crypto.com Exchange gives builders with a REST and websocket API.
The majority of API calls are available across each mediums inside the identical request and response codecs, allowing easy transition and a reduced studying curve between the two systems.
Where relevant, all API calls come with exact statistics on both the request and response parameters, all in a easy JSON format, as well as sample requests and code snippets in JavaScript, Python, C#, and Java which can be considered at the proper.
Documentation for the vintage REST API V1 may be observed here.
2022-02-25 - Added extra response codes for non-public/create-withdrawal
2021-12-23 - Added 1 new endpoint for buying available networks for each foreign money: personal/get-foreign money-networks
2021-12-23 - Updated /non-public/create-withdrawal with new network_id parameters and new network_id reaction fields to guide network choice
2021-12-23 - Updated /personal/get-withdrawal-history with new network_id response fields to query the network records of the withdrawal
2021-eleven-26 - Added 6 new endpoints, for contingency order introduction/cancellation/enquiry:personal/create-order-listpersonal/cancel-order-listingprivate/get-order-listingprivate/margin/create-order-listpersonal/margin/cancel-order-listnon-public/margin/get-order-listing
2021-08-16 - Added 1 new discipline for withdrawal records: txid
2021-08-sixteen - Updated the page to suggest Spot Exchange API and introduced get admission to link from Spot Exchange to Derivatives Exchange API page
2021-08-06 - Updated personal/subaccount/get-switch-history with new from, from_wallet, to and to_wallet response fields to guide spot to margin transfer the usage of master account
2021-08-06 - Updated non-public/subaccount/switch with new from_wallet and to_wallet parameters to guide spot to margin transfer the use of grasp account
2021-06-03 - Added three new endpoints for sub-account control: personal/subaccount/get-sub-debts and private/margin/get-switch-history and personal/subaccount/transfer
2021-06-03 - Added amount discipline guide for each buy and sell market order: private/create-order
2021-03-22 - Added 2 new endpoints for derivative account transfer control: private/deriv/switch and personal/deriv/get-switch-records
2021-03-22 - Added 1 new endpoint for deposit control: personal/get-deposit-cope with
2021-02-24 - Added 1 new endpoint for deposit management: private/get-deposit-history
2021-02-24 - Updated example for : personal/margin/get-account-summary
2020-12-23 - Added 2 new fields for change: client_order_id and liquidity_indicator
2020-12-23 - Added two new endpoints for withdrawal control: private/create-withdrawal and personal/get-withdrawal-records
2020-12-23 - New area added to the public/get-contraptions endpoint response to suggest whether or not a pair is margin_trading_enabled
2020-12-23 - Margin trading API capability brought; new endpoints brought:non-public/margin/create-orderprivate/margin/cancel-all-orderspersonal/margin/get-order-recordspersonal/margin/get-open-orderspersonal/margin/get-order-elementprivate/margin/get-tradespublic/margin/get-switch-currenciespublic/margin/get-loan-currenciesprivate/margin/switchpersonal/margin/borrownon-public/margin/pay offprivate/margin/get-switch-recordsnon-public/margin/get-borrow-recordsprivate/margin/get-interest-recordspersonal/margin/get-liquidation-recordspersonal/margin/get-liquidation-ordersnon-public/margin/get-consumer-config
2020-12-07 - Add Cancel on Disconnect function with new private/set-cancel-on-disconnect and private/get-cancel-on-disconnect endpoints
2020-09-17 - Added new order sorts: STOP_LIMIT, STOP_LOSS, TAKE_PROFIT, and TAKE_PROFIT_LIMIT
2020-09-17 - Updated personal/create-order, personal/get-order-detail, personal/get-open-orders, non-public/get-order-records and person.order with new kind and trigger_price order properties
2020-08-10 - Updated private/create-order, private/get-order-element, non-public/get-open-orders, personal/get-order-history and consumer.order with new time_in_force and exec_inst order residences
2020-06-18 - Added public/get-candlestick REST endpoint
2020-06-14 - Set page_size most to 2 hundred for all calls that aid paging
2020-06-13 - Added Websocket Termination Codes segment
2020-06-13 - Added purpose as a field for REJECTED orders handiest, maps to the Response and Reason Codes segment
2020-06-10 - Added new V2 REST endpoints for public/ebook, public/trades, public/ticker
2020-06-05 - Corrected average_price to avg_price in all occurrences in the documentation
2020-06-02 - Corrected private/get-order-history to allow 'all' contraptions via omitting instrument_name
2020-05-29 - Removed order fee and amount from trades listing because it become inappropriate. Trade fields are traded_quantity and traded_price.
2020-05-28 - Updated error codes
2020-05-25 - Updated non-public/create-order parameter requirements for LIMIT and MARKET orders
2020-05-22 - Websocket: Enhanced blunders message managing to always include id, technique and original to keep as a lot of the original request as viable
2020-05-21 - Removed instrument_name as a required param for private/get-order-element
2020-05-21 - Enhanced non-public/get-trades to allow 'all' units with the aid of omitting instrument_name
2020-05-21 - Changed trade_list[].bid_oid and trade_list[].ask_oid in private/get-order-info to standardize as trade_list[].order_id
2020-05-20 - Added rationalization for making sure POST Content Types are software/json
2020-05-20 - Amended description of identity inside the Request Format section to expose the variety of values
2020-05-18 - Added the capacity to request all instruments for person.order, user.exchange, ticker and trade (Websocket subscriptions) by using omitting the instrument_name
2020-05-18 - Amended Request and Response samples for Websocket subscriptions
Before sending any requests, you'll want to generate a new API key.
This can be done within the Exchange website underneath User Center - API.
After producing the important thing, there arestuff you need to carefully note down:API KeySecret Key
API Key and Secret are randomly generated by means of the device and can't be changed. Default settings will be set to "Can Read" best, and you've got the option of adding or eliminating positive permissions in your API Key thru Web UI.
You can optionally specify a whitelist of IP addresses while producing the API Key.
If specified, the API can only be used from the whitelisted IP addresses.REST API
For authenticated calls, charge limits are in keeping with API technique, per API key:MethodLimitprivate/create-orderprivate/cancel-orderpersonal/cancel-all-ordersprivate/margin/create-orderpersonal/margin/cancel-orderprivate/margin/cancel-all-orders15 requests in keeping with 100ms eachprivate/get-order-detailpersonal/margin/get-order-detail30 requests per 100msprivate/get-tradesnon-public/margin/get-trades1 requests in line with secondprivate/get-order-historynon-public/margin/get-order-history1 requests in line with secondAll others3 requests in line with 100ms each
For public market records calls, charge limits are in keeping with API approach, in keeping with IP deal with:MethodLimitpublic/get-e bookpublic/get-tickerpublic/get-trades100 requests according to second eachWebsocketWebsocketLimitUser API150 requests according to secondMarket Data100 requests in line with second
personal/get-trades and personal/get-order-records is fee constrained at 5 requests according to 2nd at the Websocket
We suggest including a 1-2nd sleep after establishing the websocket connection, and before requests are despatched.
This will avoid occurrences of charge-restriction (`TOO_MANY_REQUESTS`) errors, because the websocket charge limits are pro-rated primarily based on the calendar-second that the websocket connection became opened.
REST API v1 and v2 have separate endpoints.
Future variations will proportion the identical endpoint as v2, however with the model incremented.
Documentation for the vintage REST API V1 can be determined right here.UAT SandboxREST API v2
https://uat-api.3ona.co/v2/techniqueREST API v1
https://uat-api.3ona.co/v1/approachProductionREST API v2
https://api.crypto.com/v2/approachREST API v1
https://api.crypto.com/v1/method
The Websocket is to be had throughoutservers -- the User API Websocket (for authenticated requests and subscriptions), and Market Data Websocket:UAT SandboxWebsocket (User API and Subscriptions)
wss://uat-circulation.3ona.co/v2/userWebsocket (Market Data Subscriptions)
Post a Comment
Post a Comment