AML
Country Data
Crypto
- 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
Customer
- 2FA
- AccessControl
- Active Session
- Credentials
- Customer
- Organization
IPG
- IPG Backoffice APIs
- IPG Payment APIs
KYB
- Company
- EIN Verification
- IBAN Verification
- NIF Verification
- Product
- System
- TIN Verification
- VAT Verification
KYC
PEPS
- Default
- GETGet get profile
Smart Contract
- Global Settings
- Rules
- Smart Contract
Wallet
- Admin
- Allowed Operation
- Assets
- Currency
- Currency Pairs
- Dashboard
- Fee
- Limit
- Misc
- Operation Address
- Operation Destination
- Order
- Transactions
- Wallets
Private
Get Open Orders
Retrieve information about currently open orders.
POST
/
getOpenOrders
Copy
curl --request POST \
--url https://gateway.varchev.com/crypto/getOpenOrders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'tenantId: <tenantid>' \
--data '{
"nonce": "-12791281",
"trades": false,
"userref": "-5073110"
}'
Copy
{
"error": [],
"result": {
"open": {
"OQCLML-BW3P3-BUCMWZ": {
"userref": 0,
"status": "open",
"opentm": 1616666559.8974,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "30010.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 30010.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.37500000",
"cost": "11253.7",
"fee": "0.00000",
"price": "30010.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trades": [
"TCCCTY-WE2O6-P3NB37"
]
},
"OB5VMB-B4U2U-DK2WRW": {
"userref": 120,
"status": "open",
"opentm": 1616665899.5699,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "14500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 14500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
},
"OXHXGL-F5ICS-6DIC67": {
"userref": 120,
"status": "open",
"opentm": 1616665894.0036,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "17500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 17500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
},
"OLQCVY-B27XU-MBPCL5": {
"userref": 251,
"status": "open",
"opentm": 1616665556.7646,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "23500.0",
"price2": "0",
"leverage": "none",
"order": "buy 0.27500000 XBTUSD @ limit 23500.0",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
},
"OQCGAF-YRMIQ-AMJTNJ": {
"userref": 0,
"status": "open",
"opentm": 1616665511.0373,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "stop-loss-limit",
"price": "24500.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 24500.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index"
}
}
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url https://gateway.varchev.com/crypto/getOpenOrders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'tenantId: <tenantid>' \
--data '{
"nonce": "-12791281",
"trades": false,
"userref": "-5073110"
}'
Copy
{
"error": [],
"result": {
"open": {
"OQCLML-BW3P3-BUCMWZ": {
"userref": 0,
"status": "open",
"opentm": 1616666559.8974,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "30010.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 30010.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.37500000",
"cost": "11253.7",
"fee": "0.00000",
"price": "30010.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trades": [
"TCCCTY-WE2O6-P3NB37"
]
},
"OB5VMB-B4U2U-DK2WRW": {
"userref": 120,
"status": "open",
"opentm": 1616665899.5699,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "14500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 14500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
},
"OXHXGL-F5ICS-6DIC67": {
"userref": 120,
"status": "open",
"opentm": 1616665894.0036,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "17500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 17500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
},
"OLQCVY-B27XU-MBPCL5": {
"userref": 251,
"status": "open",
"opentm": 1616665556.7646,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "23500.0",
"price2": "0",
"leverage": "none",
"order": "buy 0.27500000 XBTUSD @ limit 23500.0",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
},
"OQCGAF-YRMIQ-AMJTNJ": {
"userref": 0,
"status": "open",
"opentm": 1616665511.0373,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "stop-loss-limit",
"price": "24500.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 24500.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index"
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.