CCXT
p2b

p2b implicit API

Every raw p2b endpoint exposed as a CCXT implicit method — names, HTTP verbs, paths and rate-limit costs.

Every endpoint in p2b'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:

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

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 p2b API documentation: github.com

18 implicit endpoints across 2 access groups.

public

Base URL: https://api.p2pb2b.com/api/v2/public

MethodHTTPEndpointCost
publicGetMarketsGETmarkets1
publicGetMarketGETmarket1
publicGetTickersGETtickers1
publicGetTickerGETticker1
publicGetBookGETbook1
publicGetHistoryGEThistory1
publicGetDepthResultGETdepth/result1
publicGetMarketKlineGETmarket/kline1

private

Base URL: https://api.p2pb2b.com/api/v2

MethodHTTPEndpointCost
privatePostAccountBalancesPOSTaccount/balances1
privatePostAccountBalancePOSTaccount/balance1
privatePostOrderNewPOSTorder/new1
privatePostOrderCancelPOSTorder/cancel1
privatePostOrdersPOSTorders1
privatePostAccountMarketOrderHistoryPOSTaccount/market_order_history1
privatePostAccountMarketDealHistoryPOSTaccount/market_deal_history1
privatePostAccountOrderPOSTaccount/order1
privatePostAccountOrderHistoryPOSTaccount/order_history1
privatePostAccountExecutedHistoryPOSTaccount/executed_history1

On this page