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 Closed Orders
Retrieve information about orders that have been closed (filled or cancelled). 50 results are returned at a time, the most recent by default.
Note: If an order’s tx ID is given for start
or end
time, the order’s opening time (opentm
) is used
POST
/
getClosedOrders
Copy
curl --request POST \
--url https://gateway.varchev.com/crypto/getClosedOrders \
--header 'Content-Type: application/json' \
--header 'tenantId: <tenantid>' \
--data '{
"nonce": "-51296282",
"asset": "XBT.M",
"amount": "Duis consequat"
}'
Copy
{
"error": [],
"result": {
"closed": {
"O37652-RJWRT-IMO74O": {
"userref": 36493663,
"status": "canceled",
"reason": "User requested",
"opentm": 1616148493.7708,
"closetm": 1616148610.0482,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTGBP",
"type": "buy",
"ordertype": "Stop-loss-limit",
"price": "2506.0",
"price2": "0",
"leverage": "none",
"order": "buy 0.00100000 XBTGBP @ limit 2506.0",
"close": ""
},
"vol": "0.00100000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index"
},
"O6YDQ5-LOMWU-37YKEE": {
"userref": 36493663,
"status": "canceled",
"reason": "User requested",
"opentm": 1616148493.7708,
"closetm": 1616148610.0477,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTGBP",
"type": "buy",
"ordertype": "take-profit-limit",
"price": "2518.0",
"price2": "0",
"leverage": "none",
"order": "buy 0.00100000 XBTGBP @ limit 2518.0",
"close": ""
},
"vol": "0.00100000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index"
}
},
"count": 2
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Tenant/Owner id
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url https://gateway.varchev.com/crypto/getClosedOrders \
--header 'Content-Type: application/json' \
--header 'tenantId: <tenantid>' \
--data '{
"nonce": "-51296282",
"asset": "XBT.M",
"amount": "Duis consequat"
}'
Copy
{
"error": [],
"result": {
"closed": {
"O37652-RJWRT-IMO74O": {
"userref": 36493663,
"status": "canceled",
"reason": "User requested",
"opentm": 1616148493.7708,
"closetm": 1616148610.0482,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTGBP",
"type": "buy",
"ordertype": "Stop-loss-limit",
"price": "2506.0",
"price2": "0",
"leverage": "none",
"order": "buy 0.00100000 XBTGBP @ limit 2506.0",
"close": ""
},
"vol": "0.00100000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index"
},
"O6YDQ5-LOMWU-37YKEE": {
"userref": 36493663,
"status": "canceled",
"reason": "User requested",
"opentm": 1616148493.7708,
"closetm": 1616148610.0477,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTGBP",
"type": "buy",
"ordertype": "take-profit-limit",
"price": "2518.0",
"price2": "0",
"leverage": "none",
"order": "buy 0.00100000 XBTGBP @ limit 2518.0",
"close": ""
},
"vol": "0.00100000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trigger": "index"
}
},
"count": 2
}
}
Assistant
Responses are generated using AI and may contain mistakes.