Back to Ccxt

Btcmarkets

wiki/exchanges-implicit/btcmarkets.md

4.5.644.0 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# and Go. 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
publicGetMarketsGETmarkets
publicGetMarketsMarketIdTickerGETmarkets/{marketId}/ticker
publicGetMarketsMarketIdTradesGETmarkets/{marketId}/trades
publicGetMarketsMarketIdOrderbookGETmarkets/{marketId}/orderbook
publicGetMarketsMarketIdCandlesGETmarkets/{marketId}/candles
publicGetMarketsTickersGETmarkets/tickers
publicGetMarketsOrderbooksGETmarkets/orderbooks
publicGetTimeGETtime

private

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

MethodHTTPEndpointCost
privateGetOrdersGETorders
privateGetOrdersIdGETorders/{id}
privateGetBatchordersIdsGETbatchorders/{ids}
privateGetTradesGETtrades
privateGetTradesIdGETtrades/{id}
privateGetWithdrawalsGETwithdrawals
privateGetWithdrawalsIdGETwithdrawals/{id}
privateGetDepositsGETdeposits
privateGetDepositsIdGETdeposits/{id}
privateGetTransfersGETtransfers
privateGetTransfersIdGETtransfers/{id}
privateGetAddressesGETaddresses
privateGetWithdrawalFeesGETwithdrawal-fees
privateGetAssetsGETassets
privateGetAccountsMeTradingFeesGETaccounts/me/trading-fees
privateGetAccountsMeWithdrawalLimitsGETaccounts/me/withdrawal-limits
privateGetAccountsMeBalancesGETaccounts/me/balances
privateGetAccountsMeTransactionsGETaccounts/me/transactions
privateGetReportsIdGETreports/{id}
privatePostOrdersPOSTorders
privatePostBatchordersPOSTbatchorders
privatePostWithdrawalsPOSTwithdrawals
privatePostReportsPOSTreports
privateDeleteOrdersDELETEorders
privateDeleteOrdersIdDELETEorders/{id}
privateDeleteBatchordersIdsDELETEbatchorders/{ids}
privatePutOrdersIdPUTorders/{id}