Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/bitnob:bitnob-trading-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Bitnob API requests Trading API
version: 1.0.0
description: 'What you send to the Bitnob API: path and query parameters, request bodies and auth headers. Responses are left out; see the full Bitnob API spec for those.'
servers:
- description: Production
url: https://api.bitnob.com
security:
- ClientId: []
Timestamp: []
Nonce: []
Signature: []
- ClientId: []
Secret: []
tags:
- description: Quotes and orders for buying and selling.
name: Trading
paths:
/api/trading/orders:
get:
tags:
- Trading
summary: List trade orders
description: Lists your trade orders. Filters go in the JSON request body, not the query string. NGN orders are listed under GET /api/exchange-rates/conversions.
operationId: tradingListOrders
requestBody:
content:
application/json:
example:
base_currency: BTC
limit: 20
quote_currency: USDT
status: filled
schema:
$ref: '#/components/schemas/TradingListOrdersFilter'
required: false
post:
tags:
- Trading
summary: Submit a trade order
description: Submits a market order. side and quantity refer to the pair's base currency. Pass a quote_id from POST /api/trading/quotes to trade at the locked price.
operationId: tradingSubmitOrder
requestBody:
content:
application/json:
examples:
crypto_buy_base_units:
summary: Buy 1000000 satoshis (0.01 BTC), quantity in the base currency's smallest unit
value:
base_currency: BTC
quantity: '1000000'
quantity_in_base_units: true
quote_currency: USDT
reference: trade_sbx_20261030_0003
side: BUY
crypto_buy_with_quote:
summary: Buy 0.01 BTC with USDT against a locked quote
value:
base_currency: BTC
quantity: '0.01'
quote_currency: USDT
quote_id: 019a3b5d-02a4-7e61-b8c9-d0e1f2a3b4c5
reference: trade_sbx_20261030_0001
side: BUY
crypto_sell_market:
summary: Sell 0.005 BTC for USDT at the market, no quote
value:
base_currency: BTC
quantity: '0.005'
quote_currency: USDT
side: SELL
ngn_buy_with_quote:
summary: Buy 100 USDT with naira against a locked NGN quote
value:
base_currency: USDT
quantity: '100'
quote_currency: NGN
quote_id: 019a3b5c-81f0-7b2e-9c3d-4e5f60718293
reference: trade_sbx_20261030_0004
side: BUY
ngn_sell_without_quote:
summary: Sell 50 USDT for naira in one call (quoted and filled at once; reference required)
value:
base_currency: USDT
quantity: '50'
quote_currency: NGN
reference: trade_sbx_20261030_0005
side: SELL
schema:
$ref: '#/components/schemas/TradingSubmitOrderRequest'
required: true
/api/trading/orders/{id}:
get:
tags:
- Trading
summary: Get a trade order
description: Returns one trade order, including NGN orders.
operationId: tradingGetOrder
parameters:
- description: Order id
example: 019a3b5d-1a2b-7c3d-9e4f-5a6b7c8d9e0f
in: path
name: id
required: true
schema:
type: string
delete:
tags:
- Trading
summary: Cancel a trade order
description: Cancels an open trade order. NGN orders can't be canceled.
operationId: tradingCancelOrder
parameters:
- description: Order id
example: 019a3b62-0c4d-7e5f-8a6b-7c8d9e0f1a2b
in: path
name: id
required: true
schema:
type: string
/api/trading/prices:
get:
tags:
- Trading
summary: Get trading prices
description: Returns indicative mid prices for one pair (base_currency and quote_currency) or for all pairs. To lock a price you can trade at, use POST /api/trading/quotes.
operationId: tradingGetPrices
parameters:
- description: Base currency of the pair.
in: query
name: base_currency
required: false
schema:
example: BTC
type: string
- description: Quote currency of the pair.
in: query
name: quote_currency
required: false
schema:
example: USDT
type: string
/api/trading/quotes:
post:
tags:
- Trading
summary: Request a trade quote
description: Locks a price for a pair, side and quantity until expires_at. Pass the returned id as quote_id when you submit the order.
operationId: tradingCreateQuote
requestBody:
content:
application/json:
examples:
crypto_buy:
summary: Buy 0.01 BTC with USDT
value:
base_currency: BTC
quantity: '0.01'
quote_currency: USDT
side: BUY
crypto_sell_base_units:
summary: Sell 500000 satoshis (0.005 BTC) for USDT, quantity in base units
value:
base_currency: BTC
quantity: '500000'
quantity_in_base_units: true
quote_currency: USDT
side: SELL
ngn_buy_usdt:
summary: Buy 100 USDT with naira (you name the USDT you receive)
value:
base_currency: USDT
quantity: '100'
quote_currency: NGN
side: BUY
ngn_sell_usdt:
summary: Sell 50 USDT for naira (you name the USDT you send)
value:
base_currency: USDT
quantity: '50'
quote_currency: NGN
side: SELL
schema:
$ref: '#/components/schemas/TradingQuoteRequest'
required: true
/api/trading/quotes/{id}:
get:
tags:
- Trading
summary: Get quote status
description: Returns how much of a quote has been used, what remains, and whether it has expired. Not available for NGN quotes.
operationId: tradingGetQuote
parameters:
- description: Quote id
example: 019a3b5d-02a4-7e61-b8c9-d0e1f2a3b4c5
in: path
name: id
required: true
schema:
format: uuid
type: string
components:
schemas:
TradingListOrdersFilter:
properties:
base_currency:
description: Base currency of the pair, for example BTC.
type: string
limit:
description: Maximum number of orders to return.
format: int32
type: integer
quote_currency:
description: Quote currency of the pair, for example NGN.
type: string
status:
description: Order status, for example pending, filled, cancelled
type: string
type: object
TradingSubmitOrderRequest:
properties:
base_currency:
description: Base currency of the pair, for example BTC.
example: BTC
maxLength: 10
pattern: ^[A-Za-z]+$
type: string
price:
description: Optional positive plain decimal price, quote currency per unit of base. Ignored for NGN pairs.
pattern: ^[-+]?[0-9]+(\.[0-9]+)?$
type: string
quantity:
description: Positive plain decimal amount of the base currency (no exponent, and digits on both sides of the point), in major units unless quantity_in_base_units is true. Zero and negative values pass the field check and are left to the service behind it to refuse.
example: '0.01'
pattern: ^[-+]?[0-9]+(\.[0-9]+)?$
type: string
quantity_in_base_units:
default: false
description: When true, quantity is in the base currency's smallest unit (for example satoshis)
type: boolean
quote_currency:
description: Quote currency of the pair, for example NGN.
example: USDT
maxLength: 10
pattern: ^[A-Za-z]+$
type: string
quote_id:
description: Quote from POST /api/trading/quotes to fill against
maxLength: 100
pattern: ^[^<>]*$
type: string
reference:
description: Your reference. Required for NGN pairs when quote_id is omitted, where it is the idempotency key.
maxLength: 100
pattern: ^[^<>]*$
type: string
side:
description: Relative to the base currency. Upper-cased before validation, so any letter case is accepted.
enum:
- BUY
- SELL
- buy
- sell
type: string
required:
- base_currency
- quote_currency
- side
- quantity
type: object
TradingQuoteRequest:
properties:
base_currency:
description: Base currency of the pair, for example BTC.
example: BTC
maxLength: 10
pattern: ^[A-Za-z]+$
type: string
quantity:
description: Positive plain decimal amount of the base currency (no exponent, and digits on both sides of the point), in major units unless quantity_in_base_units is true. Zero and negative values pass the field check and are left to the service behind it to refuse.
example: '0.01'
pattern: ^[-+]?[0-9]+(\.[0-9]+)?$
type: string
quantity_in_base_units:
default: false
description: When true, quantity is in the base currency's smallest unit (for example satoshis)
type: boolean
quote_currency:
description: Quote currency of the pair, for example NGN.
example: USDT
maxLength: 10
pattern: ^[A-Za-z]+$
type: string
side:
description: Relative to the base currency. Upper-cased before validation, so any letter case is accepted.
enum:
- BUY
- SELL
- buy
- sell
type: string
required:
- base_currency
- quote_currency
- side
- quantity
type: object
securitySchemes:
ClientId:
type: apiKey
in: header
name: X-Auth-Client
description: Your client id. Required in both auth modes.
Nonce:
type: apiKey
in: header
name: X-Auth-Nonce
description: A unique random string for this request.
Secret:
type: apiKey
in: header
name: X-Auth-Secret
description: 'Secret mode only: your client secret, sent instead of the timestamp, nonce and signature.'
Signature:
type: apiKey
in: header
name: X-Auth-Signature
description: Hex HMAC-SHA256 of `{client_id}:{timestamp}:{nonce}:{body}` using your secret. The body is empty for GET.
Timestamp:
type: apiKey
in: header
name: X-Auth-Timestamp
description: The current Unix time in seconds. Requests more than 5 minutes off are refused.