HitBTC Margin Accounts API

The Margin Accounts API from HitBTC — 5 operation(s) for margin accounts.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /margin/account Get my margin account balance · Get margin accounts #
Ask an LLM
“What is my current margin balance?”
“Can I see my margin account details?”
Tell an agent
Show my margin account balance.
Get my margin account details.
GET /margin/account/isolated/{symbol} Get an isolated margin account · Get an isolated margin account #
Ask an LLM
“What is the balance of my isolated margin account for BTC?”
“Can I check an isolated margin account for one symbol?”
Tell an agent
Show my isolated margin account for {symbol}.
Get the isolated margin balance of {symbol}.
GET /margin/account/cross/{currency} Get a cross-margin account · Get a cross-margin account #
Ask an LLM
“What is my cross-margin balance in USD?”
“Can I see a cross-margin account for a currency?”
Tell an agent
Show my cross-margin account for {currency}.
Get the cross-margin balance in {currency}.
PUT /margin/account/{margin_mode}/{instrument} Open, update or close a margin account · Update a margin account #
Ask an LLM
“How do I open a new margin account?”
“Can I close a margin account by setting its balance to zero?”
Tell an agent
Open a {margin_mode} margin account for {instrument}.
Close the {margin_mode} margin account for {instrument} by setting its balance to zero.
PUT /margin/margin-settings/amr Turn auto margin replenishment on or off · Set AMR #
Ask an LLM
“Can I turn auto margin replenishment on for my isolated margin account?”
“Does changing AMR affect all positions of a cross-margin account?”
Tell an agent
Set AMR to {amr} for my {margin_mode} margin account.
Turn auto margin replenishment {amr} on my {margin_mode} account for {symbol}.

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hitbtc:hitbtc-margin-accounts-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

hitbtc-margin-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hitbtc Margin Accounts API
  version: ''
  description: 'Operations tagged Margin Accounts across 2 of this provider''s published API definitions: hitbtc-api-v3-spec.yaml, hitbtc-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/3
- url: https://api.hitbtc.com/api/3
  description: Production; the served spec declares the relative server /api/3 and the docs at api.hitbtc.com name this host
- url: https://api.demo.hitbtc.com/api/3
  description: Demo Environment (Sandbox), per api.hitbtc.com docs
tags:


# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/hitbtc/openapi/hitbtc-margin-accounts-api-openapi.yml