Welcome to the Hibachi.xyz Account API - your gateway to building powerful crypto trading tools on top of our platform. Whether you want to automate strategies, access account data, or analyze market activity, our API gives you the access you need.
To use the Hibachi.xyz API, you'll need a few credentials:
API Key
Your API key is used to authenticate requests. You can generate and manage your API keys from your Account Settings.
Account ID
This unique identifier represents your trading account and is required for authenticated API operations. You can find your Account ID in the same account settings page.
⚠️ Note: All endpoints under the
AccountandTradeAPI sections require authentication using your API key and account ID.
https://api.hibachi.xyz/
Get account information/details
balance (net equity) and maximalWithdrawassetspositionstotalOrderNotional, totalPositionNotional, totalUnrealizedPnlentryNotional in positions is: entry price multiply by quantity.totalOrderNotional does not count orders that will reduce your position.You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
https://api.hibachi.xyz/trade/account/info
curl -i -X GET \
'https://api.hibachi.xyz/trade/account/info?accountId=140' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "assets": [ { … } ], "balance": "14.186087", "maximalWithdraw": "4.152340", "numFreeTransfersRemaining": 96, "positions": [ { … } ], "totalOrderNotional": "8.670066", "totalPositionNotional": "14.246782", "totalUnrealizedFundingPnl": "0.000000", "totalUnrealizedPnl": "0.055460", "totalUnrealizedTradingPnl": "0.055460", "tradeMakerFeeRate": null, "tradeTakerFeeRate": null }
You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
https://api.hibachi.xyz/trade/account/trades
curl -i -X GET \
'https://api.hibachi.xyz/trade/account/trades?accountId=140&page=0' \
-H 'Authorization: YOUR_API_KEY_HERE'You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
https://api.hibachi.xyz/trade/account/settlements_history
curl -i -X GET \
'https://api.hibachi.xyz/trade/account/settlements_history?accountId=140' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "settlements": [ { … } ] }
Provide either a nonce or an order ID, but not both.
You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
https://api.hibachi.xyz/trade/order
curl -i -X GET \
'https://api.hibachi.xyz/trade/order?accountId=140&nonce=0' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "accountId": 10, "availableQuantity": "0.389560448", "contractId": 1, "creationTime": 1748632398977, "finishTime": 1748632398977, "numOrdersRemaining": 0, "numOrdersTotal": 0, "orderId": 1234, "orderType": "LIMIT", "price": "3500.01", "side": "ASK", "status": "PENDING", "symbol": "ETH/USDT-P", "totalQuantity": "0.389560448", "triggerPrice": "1234.5432" }
the order_id returned by /trade/order or /trade/orders API. (Currently we do not support using nonce as an identifier for modification. We are working on a new Client-ID feature to enable this.)
A new unique nonce timestamp (same as if you were placing a new order).
You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
should be at least the returned value of /marketapi/market/exchange-info endpoint. Otherwise, it will be rejected.
SIGNATURE IS REQUIRED! Use signature field (65 bytes) to sign the message. Refer to the Signing section for more context.
You can only update quantity and price. The symbol must remain the same.
You can only update quantity and price. The symbol must remain the same.
https://api.hibachi.xyz/trade/order
curl -i -X PUT \
https://api.hibachi.xyz/trade/order \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"nonce": 0,
"accountId": 140,
"maxFeesPercent": "0.00045",
"signature": "0000000000000000000000000000000000000000000000000000000000000000",
"updatedPrice": "3500.1",
"updatedQuantity": "0.1",
"updatedTriggerPrice": "3500.1"
}'New order data
You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
should be at least the returned value of /market/exchange-info endpoint. Otherwise, it will be rejected.
SIGNATURE IS REQUIRED! Use signature field (65 bytes) to sign the message. Refer to the Signing section for more context.
should be one of the symbol from one of the futureContracts returned by /marketapi/market/exchange-info API
https://api.hibachi.xyz/trade/order
curl -i -X POST \
https://api.hibachi.xyz/trade/order \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"accountId": 140,
"creationDeadline": "string",
"maxFeesPercent": "string",
"nonce": 0,
"orderFlags": {},
"orderType": "LIMIT",
"price": "string",
"quantity": "string",
"side": "ASK",
"signature": "0000000000000000000000000000000000000000000000000000000000000000",
"symbol": "string",
"triggerPrice": "string",
"twapConfig": {}
}'{ "orderId": 0 }
Provide either a nonce or an order ID, but not both.
You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
SIGNATURE IS REQUIRED! Use signature field (65 bytes) to sign the message. Refer to the Signing section for more context.
https://api.hibachi.xyz/trade/order
curl -i -X DELETE \
https://api.hibachi.xyz/trade/order \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"nonce": 0,
"accountId": 140,
"signature": "0000000000000000000000000000000000000000000000000000000000000000"
}'You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
https://api.hibachi.xyz/trade/orders
curl -i -X GET \
'https://api.hibachi.xyz/trade/orders?accountId=140' \
-H 'Authorization: YOUR_API_KEY_HERE'[ { "accountId": 10, "availableQuantity": "0.389560448", "contractId": 1, "creationTime": 1748632398977, "finishTime": 1748632398977, "numOrdersRemaining": 0, "numOrdersTotal": 0, "orderId": 1234, "orderType": "LIMIT", "price": "3500.01", "side": "ASK", "status": "PENDING", "symbol": "ETH/USDT-P", "totalQuantity": "0.389560448", "triggerPrice": "1234.5432" } ]
Submit multiple new order requests for an account. Supports place, and modify.
The format is identical to POST /trade/order the only differences are:
accountId is specified in the top-level only once rather than for each orderorder element needs to have an action field which can be either place or modifyIt will return a list of responses – one for each order in the input.
You MUST make one Deposit to your account. Your Account ID will not be generated until your first deposit; this ID is required for a lot of endpoints Account ID: you will see ID: XXX below your API Key Name For more information see Pre-requisites
should be at least the returned value of /market/exchange-info endpoint. Otherwise, it will be rejected.
should be a unix timestamp either ms or us unique to this order
SIGNATURE IS REQUIRED! Use signature field (65 bytes) to sign the message. Refer to the Signing section for more context.
should be one of the symbol from one of the futureContracts returned by /market/exchange-info API
https://api.hibachi.xyz/trade/orders
curl -i -X POST \
https://api.hibachi.xyz/trade/orders \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"accountId": 140,
"orders": [
{
"action": "place",
"contractId": 1,
"creationDeadline": "string",
"maxFeesPercent": "string",
"nonce": 1748632398977,
"orderFlags": {},
"orderType": "LIMIT",
"price": "3500.01",
"quantity": "5.0000",
"side": "ASK",
"signature": "0000000000000000000000000000000000000000000000000000000000000000",
"symbol": "ETH/USDT-P",
"triggerPrice": "1234.5432"
}
]
}'{ "orders": [ { … } ] }
SIGNATURE IS REQUIRED! Use signature field (65 bytes) to sign the message. Refer to the Signing section for more context.
https://api.hibachi.xyz/trade/orders
curl -i -X DELETE \
https://api.hibachi.xyz/trade/orders \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"accountId": 10,
"nonce": 17147016,
"signature": "0000000000000000000000000000000000000000000000000000000000000000"
}'{ "status": "success" }