- Documentation
- SEPA's API
- API Explore
- Community
- Welcome to FinHub
- GETGet document
- GETGet documents
- GETGet verification result
- POSTPost document upload
- PUTPut document status
- PUTPut document update
- GETGet card balance
- GETGet card pin
- GETGet card product config
- GETGet card product list
- GETGet card product
- GETGet card transactions
- GETGet card usage
- GETGet card
- GETGet cardholder
- GETGet EHIMode configuration
- GETGet issuer
- POSTPost card credit
- POSTPost card debit
- POSTPost card product setup
- POSTPost card product
- POSTPost card transfers
- POSTPost card usage
- POSTPost card
- POSTPost cardholder
- POSTPost EHIMode configuration
- POSTPost issuer
- PUTPut card account
- PUTPut card activate
- PUTPut card cardholder
- PUTPut card lost
- PUTPut card pin
- PUTPut card product config
- PUTPut card stolen
- PUTPut card suspend
- PUTPut cardholder
- PUTPut EHIMode configuration
- PUTPut issuer
Private
- POSTAdd Order
- POSTCancel All Orders After X
- POSTCancel All Orders
- POSTCancel Order
- POSTDelete Export Report
- POSTGet Account Balance
- POSTGet Closed Orders
- POSTGet Deposit Addresses
- POSTGet Export Report Status
- POSTGet Ledgers Info
- POSTGet Open Orders
- POSTGet Open Positions
- POSTGet Status of Recent Deposits
- POSTGet Status of Recent Withdrawals
- POSTGet Trade Balance
- POSTGet Trade Volume
- POSTGet Trades History
- POSTGet Websockets Token
- POSTGet Withdrawal Information
- POSTQuery Ledgers
- POSTQuery Orders Info
- POSTQuery Trades Info
- POSTRequest Export Report
- POSTRequest Wallet Transfer
- POSTRequest Withdrawal Cancelation
- POSTRetrieve Data Export
- POSTStake Asset
- POSTUnstake Asset
- POSTWithdraw Funds
- POST
Public
2FA
AccessControl
Active Session
Credentials
Customer
Organization
- POSTPost send
- POSTGenerateToken
IPG Backoffice APIs
IPG Payment APIs
Company
EIN Verification
IBAN Verification
NIF Verification
Product
System
TIN Verification
VAT Verification
- POSTPost authorize
- POSTPost backgroundcheck
- POSTPost delete info
- POSTPost face
- POSTPost get info
- POSTPost scan documents
- POSTPost upload image
- PUTPut backgroundcheck
Global Settings
Rules
Smart Contract
Admin
Allowed Operation
Assets
Currency
Currency Pairs
Dashboard
Fee
Limit
Misc
Operation Address
Operation Destination
Order
Transactions
Wallets
Introduction
AML
CMS
Crypto
Customer
muse-openapi
IPG
KYB
KYC
Smart Contract
Wallet
Add Order
Place a new order.
Note: See the AssetPairs endpoint for details on the available trading pairs, their price and quantity precisions, order minimums, available leverage, etc.
The access token received from the authorization server in the OAuth 2.0 flow.
Tenant/Owner id
curl --request POST \
--url https://gateway.finhub.cloud/crypto/1.0.0/addOrder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'tenantId: <tenantid>' \
--data '{
"pair": "XXBTZUSD",
"type": "buy",
"ordertype": "limit",
"price": "45000.1",
"volume": "2.1234",
"leverage": "2:1"
}'
{
"error": [],
"result": {
"descr": {
"order": "buy 2.12340000 XBTUSD @ limit 45000.1 with 2:1 leverage",
"close": "close position @ stop loss 38000.0 -> limit 36000.0"
},
"txid": [
"OUF4EM-FRGI2-MQMWZD"
]
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Tenant/Owner id
Body
The body is of type object
.
Response
The response is of type object
.
curl --request POST \
--url https://gateway.finhub.cloud/crypto/1.0.0/addOrder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'tenantId: <tenantid>' \
--data '{
"pair": "XXBTZUSD",
"type": "buy",
"ordertype": "limit",
"price": "45000.1",
"volume": "2.1234",
"leverage": "2:1"
}'
{
"error": [],
"result": {
"descr": {
"order": "buy 2.12340000 XBTUSD @ limit 45000.1 with 2:1 leverage",
"close": "close position @ stop loss 38000.0 -> limit 36000.0"
},
"txid": [
"OUF4EM-FRGI2-MQMWZD"
]
}
}