Back to Ccxt

Cex

wiki/exchanges-implicit/cex.md

4.5.643.8 KB
Original Source

Every endpoint in cex's api definition is exposed as an implicit method — a thin, generated wrapper around the raw exchange endpoint. Use these for exchange-specific functionality the CCXT API does not cover.

These methods are available in every CCXT language — TypeScript, JavaScript, Python, PHP, C# and Go. Call them by the camelCase name shown in the tables below (e.g. publicPostGetServerTime); the snake_case alias (public_post_get_server_time) also works in JavaScript, Python and PHP, and Go uses the PascalCase form (PublicPostGetServerTime). Switch tabs for the call in each language:

<!-- tabs:start -->

JavaScript

javascript
const cex = new ccxt.cex ();
const response = await cex.publicPostGetServerTime (params);

TypeScript

typescript
import ccxt from 'ccxt';
const cex = new ccxt.cex ();
const response = await cex.publicPostGetServerTime (params);

Python

python
import ccxt
cex = ccxt.cex()
response = cex.public_post_get_server_time(params)

PHP

php
$cex = new \ccxt\cex();
$response = $cex->public_post_get_server_time($params);

C#

csharp
using ccxt;
var cex = new Cex();
var response = await cex.publicPostGetServerTime(parameters);

Go

go
cex := ccxt.NewCex(nil)
response := <-cex.PublicPostGetServerTime(params)
<!-- tabs:end -->

Path parameters wrapped in {} (e.g. {pair}) are substituted from params; everything else in params is sent as the query string or request body. Cost is the rate-limiter weight of each call.

📚 Official cex API documentation: trade.cex.io

28 implicit endpoints across 2 access groups.

public

Base URL: https://trade.cex.io/api/spot/rest-public

MethodHTTPEndpointCost
publicPostGetServerTimePOSTget_server_time1
publicPostGetPairsInfoPOSTget_pairs_info1
publicPostGetCurrenciesInfoPOSTget_currencies_info1
publicPostGetProcessingInfoPOSTget_processing_info10
publicPostGetTickerPOSTget_ticker1
publicPostGetTradeHistoryPOSTget_trade_history1
publicPostGetOrderBookPOSTget_order_book1
publicPostGetCandlesPOSTget_candles1

private

Base URL: https://trade.cex.io/api/spot/rest

MethodHTTPEndpointCost
privatePostGetMyCurrentFeePOSTget_my_current_fee5
privatePostGetFeeStrategyPOSTget_fee_strategy1
privatePostGetMyVolumePOSTget_my_volume5
privatePostDoCreateAccountPOSTdo_create_account1
privatePostGetMyAccountStatusV3POSTget_my_account_status_v35
privatePostGetMyWalletBalancePOSTget_my_wallet_balance5
privatePostGetMyOrdersPOSTget_my_orders5
privatePostDoMyNewOrderPOSTdo_my_new_order1
privatePostDoCancelMyOrderPOSTdo_cancel_my_order1
privatePostDoCancelAllOrdersPOSTdo_cancel_all_orders5
privatePostGetOrderBookPOSTget_order_book1
privatePostGetCandlesPOSTget_candles1
privatePostGetTradeHistoryPOSTget_trade_history1
privatePostGetMyTransactionHistoryPOSTget_my_transaction_history1
privatePostGetMyFundingHistoryPOSTget_my_funding_history5
privatePostDoMyInternalTransferPOSTdo_my_internal_transfer1
privatePostGetProcessingInfoPOSTget_processing_info10
privatePostGetDepositAddressPOSTget_deposit_address5
privatePostDoDepositFundsFromWalletPOSTdo_deposit_funds_from_wallet1
privatePostDoWithdrawalFundsToWalletPOSTdo_withdrawal_funds_to_wallet1