Back to Ccxt

Btcmarkets

wiki/exchanges-implicit/btcmarkets.md

4.5.734.1 KB
Original Source

Every endpoint in btcmarkets'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#, Go and Java. Call them by the camelCase name shown in the tables below (e.g. publicGetMarkets); the snake_case alias (public_get_markets) also works in JavaScript, Python and PHP, and Go uses the PascalCase form (PublicGetMarkets). Switch tabs for the call in each language:

<!-- tabs:start -->

JavaScript

javascript
const btcmarkets = new ccxt.btcmarkets ();
const response = await btcmarkets.publicGetMarkets (params);

TypeScript

typescript
import ccxt from 'ccxt';
const btcmarkets = new ccxt.btcmarkets ();
const response = await btcmarkets.publicGetMarkets (params);

Python

python
import ccxt
btcmarkets = ccxt.btcmarkets()
response = btcmarkets.public_get_markets(params)

PHP

php
$btcmarkets = new \ccxt\btcmarkets();
$response = $btcmarkets->public_get_markets($params);

C#

csharp
using ccxt;
var btcmarkets = new Btcmarkets();
var response = await btcmarkets.publicGetMarkets(parameters);

Go

go
btcmarkets := ccxt.NewBtcmarkets(nil)
response := <-btcmarkets.PublicGetMarkets(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 btcmarkets API documentation: api.btcmarkets.net · github.com

35 implicit endpoints across 2 access groups.

public

Base URL: https://api.btcmarkets.net

MethodHTTPEndpointCost
publicGetMarketsGETmarkets1
publicGetMarketsMarketIdTickerGETmarkets/{marketId}/ticker1
publicGetMarketsMarketIdTradesGETmarkets/{marketId}/trades1
publicGetMarketsMarketIdOrderbookGETmarkets/{marketId}/orderbook1
publicGetMarketsMarketIdCandlesGETmarkets/{marketId}/candles1
publicGetMarketsTickersGETmarkets/tickers1
publicGetMarketsOrderbooksGETmarkets/orderbooks1
publicGetTimeGETtime1

private

Base URL: https://api.btcmarkets.net

MethodHTTPEndpointCost
privateGetOrdersGETorders1
privateGetOrdersIdGETorders/{id}1
privateGetBatchordersIdsGETbatchorders/{ids}1
privateGetTradesGETtrades1
privateGetTradesIdGETtrades/{id}1
privateGetWithdrawalsGETwithdrawals1
privateGetWithdrawalsIdGETwithdrawals/{id}1
privateGetDepositsGETdeposits1
privateGetDepositsIdGETdeposits/{id}1
privateGetTransfersGETtransfers1
privateGetTransfersIdGETtransfers/{id}1
privateGetAddressesGETaddresses1
privateGetWithdrawalFeesGETwithdrawal-fees1
privateGetAssetsGETassets1
privateGetAccountsMeTradingFeesGETaccounts/me/trading-fees1
privateGetAccountsMeWithdrawalLimitsGETaccounts/me/withdrawal-limits1
privateGetAccountsMeBalancesGETaccounts/me/balances1
privateGetAccountsMeTransactionsGETaccounts/me/transactions1
privateGetReportsIdGETreports/{id}1
privatePostOrdersPOSTorders1
privatePostBatchordersPOSTbatchorders1
privatePostWithdrawalsPOSTwithdrawals1
privatePostReportsPOSTreports1
privateDeleteOrdersDELETEorders1
privateDeleteOrdersIdDELETEorders/{id}1
privateDeleteBatchordersIdsDELETEbatchorders/{ids}1
privatePutOrdersIdPUTorders/{id}1