COINBOX API Reference
Programmatic GraphQL access to the COINBOX exchange: 37 operations across 2 modules covering spot trading (instruments, orders, conversions, deposits & withdrawals, payments and fees) and the referral programme.
Get a Bearer Token
Exchange your API key + secret for a JWT via service_signin, then pass it as Authorization: Bearer <token> on every request and to enable the Try It action below. Create an API key in your COINBOX account settings. It returns an api_key_id and api_key_secret. Tokens are short-lived; sign in again to refresh.
Introduction
The COINBOX API is a GraphQL API. All requests are sent as POST to the /graphql endpoint with a JSON body containing query and variables, and an Authorization: Bearer <token> header.
Authentication
Programmatic access uses an API key + secret exchanged for a short-lived JWT.
- Create an API key in your COINBOX account settings. It returns
api_key_idandapi_key_secret(the secret is shown only once). - Exchange the key for a JWT:
service_signin(service_api_key, service_api_secret)→{ jwt, expires_at }. - Send
Authorization: Bearer <jwt>on every request. If the key hashmac_requiredenabled, also HMAC-sign each request with the secret.
Endpoint
All operations in this document target the COINBOX production gateway:
https://vakotrade-coinbox.cryptosrvc.com/graphql
Request shape
POST /graphql HTTP/1.1
Authorization: Bearer <token>
Content-Type: application/json
{
"query": "query { instruments { instrument_id name } }",
"variables": {}
}
Errors
GraphQL errors are returned in the errors array of the response body with HTTP status 200. Network and auth errors return non-200 statuses.
Permissions
Each operation is gated by a permission scope on the API key. A token only succeeds on operations the key's permissions grant.
Trade
31 operations across 9 areas · service: https://vakotrade-coinbox.cryptosrvc.com/graphql
Conversion
3 ops
query conversions Conversions
Inputs
| Name | Type | Required |
|---|---|---|
search |
String |
optional |
pager |
PagerInput |
optional |
dateRange |
DateRangeInput |
optional |
wallet_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
conversion_id |
scalar |
conversion_quote_id |
scalar |
reference |
scalar |
source_currency_id |
scalar |
source_currency_amount |
scalar |
target_currency_id |
scalar |
target_currency_amount |
scalar |
instrument_id |
scalar |
fee_currency_id |
scalar |
fee_currency_amount |
scalar |
price |
scalar |
status |
scalar |
message |
scalar |
error_message |
scalar |
created_at_iso |
scalar |
updated_at_iso |
scalar |
wallet_id |
scalar |
instrument |
name, base_currency_id, quantity_decimals, quote_quantity_decimals |
GraphQL Operation
query conversions($search: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!) {
conversions(search: $search, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id) {
conversion_id
conversion_quote_id
reference
source_currency_id
source_currency_amount
target_currency_id
target_currency_amount
instrument_id
fee_currency_id
fee_currency_amount
price
status
message
error_message
created_at_iso
updated_at_iso
wallet_id
instrument {
name
base_currency_id
quantity_decimals
quote_quantity_decimals
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query conversions($search: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!) { conversions(search: $search, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id) { conversion_id conversion_quote_id reference source_currency_id source_currency_amount target_currency_id target_currency_amount instrument_id fee_currency_id fee_currency_amount price status message error_message created_at_iso updated_at_iso wallet_id instrument { name base_currency_id quantity_decimals quote_quantity_decimals } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query conversions($search: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!) { conversions(search: $search, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id) { conversion_id conversion_quote_id reference source_currency_id source_currency_amount target_currency_id target_currency_amount instrument_id fee_currency_id fee_currency_amount price status message error_message created_at_iso updated_at_iso wallet_id instrument { name base_currency_id quantity_decimals quote_quantity_decimals } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query conversions($search: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!) { conversions(search: $search, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id) { conversion_id conversion_quote_id reference source_currency_id source_currency_amount target_currency_id target_currency_amount instrument_id fee_currency_id fee_currency_amount price status message error_message created_at_iso updated_at_iso wallet_id instrument { name base_currency_id quantity_decimals quote_quantity_decimals } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
mutation create_conversion_order Create Conversion Order
Inputs
| Name | Type | Required |
|---|---|---|
conversion_quote_id |
String |
required |
wallet_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
status |
scalar |
message |
scalar |
created_at |
scalar |
updated_at |
scalar |
error_message |
scalar |
price |
scalar |
fee_currency_id |
scalar |
fee_currency_amount |
scalar |
conversion_quote_id |
scalar |
source_currency_id |
scalar |
target_currency_id |
scalar |
target_currency_amount |
scalar |
source_currency_amount |
scalar |
GraphQL Operation
mutation create_conversion_order($conversion_quote_id: String!, $wallet_id: String!) {
create_conversion_order(conversion_quote_id: $conversion_quote_id, wallet_id: $wallet_id) {
status
message
created_at
updated_at
error_message
price
fee_currency_id
fee_currency_amount
conversion_quote_id
source_currency_id
target_currency_id
target_currency_amount
source_currency_amount
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_conversion_order($conversion_quote_id: String!, $wallet_id: String!) { create_conversion_order(conversion_quote_id: $conversion_quote_id, wallet_id: $wallet_id) { status message created_at updated_at error_message price fee_currency_id fee_currency_amount conversion_quote_id source_currency_id target_currency_id target_currency_amount source_currency_amount } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_conversion_order($conversion_quote_id: String!, $wallet_id: String!) { create_conversion_order(conversion_quote_id: $conversion_quote_id, wallet_id: $wallet_id) { status message created_at updated_at error_message price fee_currency_id fee_currency_amount conversion_quote_id source_currency_id target_currency_id target_currency_amount source_currency_amount } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_conversion_order($conversion_quote_id: String!, $wallet_id: String!) { create_conversion_order(conversion_quote_id: $conversion_quote_id, wallet_id: $wallet_id) { status message created_at updated_at error_message price fee_currency_id fee_currency_amount conversion_quote_id source_currency_id target_currency_id target_currency_amount source_currency_amount } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
mutation create_conversion_quote Create Conversion Quote
Inputs
| Name | Type | Required |
|---|---|---|
source_currency_id |
String |
required |
target_currency_id |
String |
required |
target_currency_amount |
Float |
optional |
source_currency_amount |
Float |
optional |
ttl |
Int |
optional |
dry_run |
ToggleSwitch |
optional |
instrument_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
expires_at |
scalar |
expires_at_iso |
scalar |
current_time_iso |
scalar |
fees |
currency_id, amount |
price |
scalar |
fee_currency_id |
scalar |
fee_currency_amount |
scalar |
conversion_quote_id |
scalar |
source_currency_id |
scalar |
target_currency_id |
scalar |
target_currency_amount |
scalar |
source_currency_amount |
scalar |
GraphQL Operation
mutation create_conversion_quote($source_currency_id: String!, $target_currency_id: String!, $target_currency_amount: Float, $source_currency_amount: Float, $ttl: Int, $dry_run: ToggleSwitch, $instrument_id: String) {
create_conversion_quote(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, ttl: $ttl, dry_run: $dry_run, instrument_id: $instrument_id) {
expires_at
expires_at_iso
current_time_iso
fees {
currency_id
amount
}
price
fee_currency_id
fee_currency_amount
conversion_quote_id
source_currency_id
target_currency_id
target_currency_amount
source_currency_amount
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_conversion_quote($source_currency_id: String!, $target_currency_id: String!, $target_currency_amount: Float, $source_currency_amount: Float, $ttl: Int, $dry_run: ToggleSwitch, $instrument_id: String) { create_conversion_quote(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, ttl: $ttl, dry_run: $dry_run, instrument_id: $instrument_id) { expires_at expires_at_iso current_time_iso fees { currency_id amount } price fee_currency_id fee_currency_amount conversion_quote_id source_currency_id target_currency_id target_currency_amount source_currency_amount } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_conversion_quote($source_currency_id: String!, $target_currency_id: String!, $target_currency_amount: Float, $source_currency_amount: Float, $ttl: Int, $dry_run: ToggleSwitch, $instrument_id: String) { create_conversion_quote(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, ttl: $ttl, dry_run: $dry_run, instrument_id: $instrument_id) { expires_at expires_at_iso current_time_iso fees { currency_id amount } price fee_currency_id fee_currency_amount conversion_quote_id source_currency_id target_currency_id target_currency_amount source_currency_amount } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_conversion_quote($source_currency_id: String!, $target_currency_id: String!, $target_currency_amount: Float, $source_currency_amount: Float, $ttl: Int, $dry_run: ToggleSwitch, $instrument_id: String) { create_conversion_quote(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, ttl: $ttl, dry_run: $dry_run, instrument_id: $instrument_id) { expires_at expires_at_iso current_time_iso fees { currency_id amount } price fee_currency_id fee_currency_amount conversion_quote_id source_currency_id target_currency_id target_currency_amount source_currency_amount } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Currencies
1 op
query currencies Currencies
Inputs
| Name | Type | Required |
|---|---|---|
limit |
Int |
required |
store_mode |
ToggleSwitch |
optional |
Response
| Field | Sub-fields |
|---|---|
currency_id |
scalar |
name |
scalar |
precision |
scalar |
type |
scalar |
is_active |
scalar |
GraphQL Operation
query currencies($limit: Int!, $store_mode: ToggleSwitch) {
currencies(limit: $limit, store_mode: $store_mode) {
currency_id
name
precision
type
is_active
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query currencies($limit: Int!, $store_mode: ToggleSwitch) { currencies(limit: $limit, store_mode: $store_mode) { currency_id name precision type is_active } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query currencies($limit: Int!, $store_mode: ToggleSwitch) { currencies(limit: $limit, store_mode: $store_mode) { currency_id name precision type is_active } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query currencies($limit: Int!, $store_mode: ToggleSwitch) { currencies(limit: $limit, store_mode: $store_mode) { currency_id name precision type is_active } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Currency Prices
2 ops
query currency_prices Currency Prices
Inputs
| Name | Type | Required |
|---|---|---|
base_currencies |
[String!] |
required |
quote_currency |
String |
required |
Response
| Field | Sub-fields |
|---|---|
base_currency_id |
scalar |
quote_currency_id |
scalar |
ask |
scalar |
bid |
scalar |
source |
scalar |
updated_at |
scalar |
GraphQL Operation
query currency_prices($base_currencies: [String!]!, $quote_currency: String!) {
currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) {
base_currency_id
quote_currency_id
ask
bid
source
updated_at
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query currency_prices($base_currencies: [String!]!, $quote_currency: String!) { currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) { base_currency_id quote_currency_id ask bid source updated_at } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query currency_prices($base_currencies: [String!]!, $quote_currency: String!) { currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) { base_currency_id quote_currency_id ask bid source updated_at } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query currency_prices($base_currencies: [String!]!, $quote_currency: String!) { currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) { base_currency_id quote_currency_id ask bid source updated_at } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
subscription currency_prices Currency Prices
Inputs
| Name | Type | Required |
|---|---|---|
base_currencies |
[String!] |
required |
quote_currency |
String |
required |
Response
| Field | Sub-fields |
|---|---|
base_currency_id |
scalar |
quote_currency_id |
scalar |
ask |
scalar |
bid |
scalar |
source |
scalar |
updated_at |
scalar |
GraphQL Operation
subscription currency_prices($base_currencies: [String!]!, $quote_currency: String!) {
currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) {
base_currency_id
quote_currency_id
ask
bid
source
updated_at
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"subscription currency_prices($base_currencies: [String!]!, $quote_currency: String!) { currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) { base_currency_id quote_currency_id ask bid source updated_at } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """subscription currency_prices($base_currencies: [String!]!, $quote_currency: String!) { currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) { base_currency_id quote_currency_id ask bid source updated_at } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `subscription currency_prices($base_currencies: [String!]!, $quote_currency: String!) { currency_prices(base_currencies: $base_currencies, quote_currency: $quote_currency) { base_currency_id quote_currency_id ask bid source updated_at } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Subscriptions are delivered over WebSocket (wss://). Use a GraphQL-WS client rather than this HTTP runner.
Deposit Withdraw
4 ops
mutation create_withdrawal_crypto Create Withdrawal Crypto
Inputs
| Name | Type | Required |
|---|---|---|
crypto_address |
String |
required |
amount |
Float |
required |
crypto_address_tag_type |
CryptoAddressTagType |
optional |
crypto_network_fee_preference |
CryptoNetworkFeePreference |
optional |
crypto_address_tag_value |
String |
optional |
mfa_token |
String |
optional |
payment_route_id |
String |
required |
fees_included |
ToggleSwitch |
optional |
comment |
String |
optional |
travel_rule_properties |
TravelRulePropertiesArgs |
optional |
vasp_id |
String |
optional |
wallet_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
payment_id |
scalar |
currency_id |
scalar |
amount |
scalar |
type |
scalar |
crypto_transaction_id |
scalar |
crypto_address |
scalar |
crypto_address_tag_type |
scalar |
crypto_address_tag_value |
scalar |
crypto_network |
scalar |
approval_status |
scalar |
psp_service_id |
scalar |
reference |
scalar |
fee_amount |
scalar |
status |
scalar |
message |
scalar |
error_message |
scalar |
comment |
scalar |
created_at |
scalar |
updated_at |
scalar |
manual_transaction_date_iso |
scalar |
fees_included |
scalar |
wallet_id |
scalar |
payment_route |
name, payment_route_id |
account_transactions |
currency_id, transaction_class, post_balance, amount |
properties |
name, value |
GraphQL Operation
mutation create_withdrawal_crypto($crypto_address: String!, $amount: Float!, $crypto_address_tag_type: CryptoAddressTagType, $crypto_network_fee_preference: CryptoNetworkFeePreference, $crypto_address_tag_value: String, $mfa_token: String, $payment_route_id: String!, $fees_included: ToggleSwitch, $comment: String, $travel_rule_properties: TravelRulePropertiesArgs, $vasp_id: String, $wallet_id: String) {
create_withdrawal_crypto(crypto_address: $crypto_address, amount: $amount, crypto_address_tag_type: $crypto_address_tag_type, crypto_network_fee_preference: $crypto_network_fee_preference, crypto_address_tag_value: $crypto_address_tag_value, mfa_token: $mfa_token, payment_route_id: $payment_route_id, fees_included: $fees_included, comment: $comment, travel_rule_properties: $travel_rule_properties, vasp_id: $vasp_id, wallet_id: $wallet_id) {
payment_id
currency_id
amount
type
crypto_transaction_id
crypto_address
crypto_address_tag_type
crypto_address_tag_value
crypto_network
approval_status
psp_service_id
reference
fee_amount
status
message
error_message
comment
created_at
updated_at
manual_transaction_date_iso
fees_included
wallet_id
payment_route {
name
payment_route_id
}
account_transactions {
currency_id
transaction_class
post_balance
amount
}
properties {
name
value
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_withdrawal_crypto($crypto_address: String!, $amount: Float!, $crypto_address_tag_type: CryptoAddressTagType, $crypto_network_fee_preference: CryptoNetworkFeePreference, $crypto_address_tag_value: String, $mfa_token: String, $payment_route_id: String!, $fees_included: ToggleSwitch, $comment: String, $travel_rule_properties: TravelRulePropertiesArgs, $vasp_id: String, $wallet_id: String) { create_withdrawal_crypto(crypto_address: $crypto_address, amount: $amount, crypto_address_tag_type: $crypto_address_tag_type, crypto_network_fee_preference: $crypto_network_fee_preference, crypto_address_tag_value: $crypto_address_tag_value, mfa_token: $mfa_token, payment_route_id: $payment_route_id, fees_included: $fees_included, comment: $comment, travel_rule_properties: $travel_rule_properties, vasp_id: $vasp_id, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_withdrawal_crypto($crypto_address: String!, $amount: Float!, $crypto_address_tag_type: CryptoAddressTagType, $crypto_network_fee_preference: CryptoNetworkFeePreference, $crypto_address_tag_value: String, $mfa_token: String, $payment_route_id: String!, $fees_included: ToggleSwitch, $comment: String, $travel_rule_properties: TravelRulePropertiesArgs, $vasp_id: String, $wallet_id: String) { create_withdrawal_crypto(crypto_address: $crypto_address, amount: $amount, crypto_address_tag_type: $crypto_address_tag_type, crypto_network_fee_preference: $crypto_network_fee_preference, crypto_address_tag_value: $crypto_address_tag_value, mfa_token: $mfa_token, payment_route_id: $payment_route_id, fees_included: $fees_included, comment: $comment, travel_rule_properties: $travel_rule_properties, vasp_id: $vasp_id, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_withdrawal_crypto($crypto_address: String!, $amount: Float!, $crypto_address_tag_type: CryptoAddressTagType, $crypto_network_fee_preference: CryptoNetworkFeePreference, $crypto_address_tag_value: String, $mfa_token: String, $payment_route_id: String!, $fees_included: ToggleSwitch, $comment: String, $travel_rule_properties: TravelRulePropertiesArgs, $vasp_id: String, $wallet_id: String) { create_withdrawal_crypto(crypto_address: $crypto_address, amount: $amount, crypto_address_tag_type: $crypto_address_tag_type, crypto_network_fee_preference: $crypto_network_fee_preference, crypto_address_tag_value: $crypto_address_tag_value, mfa_token: $mfa_token, payment_route_id: $payment_route_id, fees_included: $fees_included, comment: $comment, travel_rule_properties: $travel_rule_properties, vasp_id: $vasp_id, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
mutation create_withdrawal_fiat Create Withdrawal Fiat
Inputs
| Name | Type | Required |
|---|---|---|
amount |
Float |
required |
mfa_token |
String |
optional |
properties |
[FiatDepositPropertyInput!] |
required |
payment_route_id |
String |
required |
wallet_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
payment_id |
scalar |
currency_id |
scalar |
amount |
scalar |
type |
scalar |
crypto_transaction_id |
scalar |
crypto_address |
scalar |
crypto_address_tag_type |
scalar |
crypto_address_tag_value |
scalar |
crypto_network |
scalar |
approval_status |
scalar |
psp_service_id |
scalar |
reference |
scalar |
fee_amount |
scalar |
status |
scalar |
message |
scalar |
error_message |
scalar |
comment |
scalar |
created_at |
scalar |
updated_at |
scalar |
manual_transaction_date_iso |
scalar |
fees_included |
scalar |
wallet_id |
scalar |
payment_route |
name, payment_route_id |
account_transactions |
currency_id, transaction_class, post_balance, amount |
properties |
name, value |
GraphQL Operation
mutation create_withdrawal_fiat($amount: Float!, $mfa_token: String, $properties: [FiatDepositPropertyInput!]!, $payment_route_id: String!, $wallet_id: String) {
create_withdrawal_fiat(amount: $amount, mfa_token: $mfa_token, properties: $properties, payment_route_id: $payment_route_id, wallet_id: $wallet_id) {
payment_id
currency_id
amount
type
crypto_transaction_id
crypto_address
crypto_address_tag_type
crypto_address_tag_value
crypto_network
approval_status
psp_service_id
reference
fee_amount
status
message
error_message
comment
created_at
updated_at
manual_transaction_date_iso
fees_included
wallet_id
payment_route {
name
payment_route_id
}
account_transactions {
currency_id
transaction_class
post_balance
amount
}
properties {
name
value
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_withdrawal_fiat($amount: Float!, $mfa_token: String, $properties: [FiatDepositPropertyInput!]!, $payment_route_id: String!, $wallet_id: String) { create_withdrawal_fiat(amount: $amount, mfa_token: $mfa_token, properties: $properties, payment_route_id: $payment_route_id, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_withdrawal_fiat($amount: Float!, $mfa_token: String, $properties: [FiatDepositPropertyInput!]!, $payment_route_id: String!, $wallet_id: String) { create_withdrawal_fiat(amount: $amount, mfa_token: $mfa_token, properties: $properties, payment_route_id: $payment_route_id, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_withdrawal_fiat($amount: Float!, $mfa_token: String, $properties: [FiatDepositPropertyInput!]!, $payment_route_id: String!, $wallet_id: String) { create_withdrawal_fiat(amount: $amount, mfa_token: $mfa_token, properties: $properties, payment_route_id: $payment_route_id, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query deposit_address_crypto Deposit Address Crypto
Inputs
| Name | Type | Required |
|---|---|---|
currency_id |
String |
required |
reference |
String |
optional |
payment_route_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
deposit_address_crypto_id |
scalar |
currency_id |
scalar |
address |
scalar |
address_tag_type |
scalar |
address_tag_value |
scalar |
network |
scalar |
created_at |
scalar |
updated_at |
scalar |
GraphQL Operation
query deposit_address_crypto($currency_id: String!, $reference: String, $payment_route_id: String!) {
deposit_address_crypto(currency_id: $currency_id, reference: $reference, payment_route_id: $payment_route_id) {
deposit_address_crypto_id
currency_id
address
address_tag_type
address_tag_value
network
created_at
updated_at
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query deposit_address_crypto($currency_id: String!, $reference: String, $payment_route_id: String!) { deposit_address_crypto(currency_id: $currency_id, reference: $reference, payment_route_id: $payment_route_id) { deposit_address_crypto_id currency_id address address_tag_type address_tag_value network created_at updated_at } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query deposit_address_crypto($currency_id: String!, $reference: String, $payment_route_id: String!) { deposit_address_crypto(currency_id: $currency_id, reference: $reference, payment_route_id: $payment_route_id) { deposit_address_crypto_id currency_id address address_tag_type address_tag_value network created_at updated_at } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query deposit_address_crypto($currency_id: String!, $reference: String, $payment_route_id: String!) { deposit_address_crypto(currency_id: $currency_id, reference: $reference, payment_route_id: $payment_route_id) { deposit_address_crypto_id currency_id address address_tag_type address_tag_value network created_at updated_at } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query payments_routes Payments Routes
Inputs
| Name | Type | Required |
|---|---|---|
payment_route_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
fiat_deposit_properties |
name, value |
GraphQL Operation
query payments_routes($payment_route_id: String!) {
payments_routes(payment_route_id: $payment_route_id) {
fiat_deposit_properties {
name
value
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query payments_routes($payment_route_id: String!) { payments_routes(payment_route_id: $payment_route_id) { fiat_deposit_properties { name value } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query payments_routes($payment_route_id: String!) { payments_routes(payment_route_id: $payment_route_id) { fiat_deposit_properties { name value } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query payments_routes($payment_route_id: String!) { payments_routes(payment_route_id: $payment_route_id) { fiat_deposit_properties { name value } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Instruments
4 ops
subscription instrument_price Instrument Price
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
instrument_id |
scalar |
ask |
scalar |
bid |
scalar |
price_24h_change |
scalar |
ts_iso |
scalar |
GraphQL Operation
subscription instrument_price($instrument_id: String) {
instrument_price(instrument_id: $instrument_id) {
instrument_id
ask
bid
price_24h_change
ts_iso
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"subscription instrument_price($instrument_id: String) { instrument_price(instrument_id: $instrument_id) { instrument_id ask bid price_24h_change ts_iso } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """subscription instrument_price($instrument_id: String) { instrument_price(instrument_id: $instrument_id) { instrument_id ask bid price_24h_change ts_iso } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `subscription instrument_price($instrument_id: String) { instrument_price(instrument_id: $instrument_id) { instrument_id ask bid price_24h_change ts_iso } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Subscriptions are delivered over WebSocket (wss://). Use a GraphQL-WS client rather than this HTTP runner.
subscription instrument_price_bar Instrument Price Bar
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
required |
periodicity |
InstrumentHistoryPeriodicity |
required |
Response
| Field | Sub-fields |
|---|---|
instrument_id |
scalar |
high |
scalar |
low |
scalar |
ts_iso |
scalar |
close |
scalar |
open |
scalar |
GraphQL Operation
subscription instrument_price_bar($instrument_id: String!, $periodicity: InstrumentHistoryPeriodicity!) {
instrument_price_bar(instrument_id: $instrument_id, periodicity: $periodicity) {
instrument_id
high
low
ts_iso
close
open
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"subscription instrument_price_bar($instrument_id: String!, $periodicity: InstrumentHistoryPeriodicity!) { instrument_price_bar(instrument_id: $instrument_id, periodicity: $periodicity) { instrument_id high low ts_iso close open } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """subscription instrument_price_bar($instrument_id: String!, $periodicity: InstrumentHistoryPeriodicity!) { instrument_price_bar(instrument_id: $instrument_id, periodicity: $periodicity) { instrument_id high low ts_iso close open } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `subscription instrument_price_bar($instrument_id: String!, $periodicity: InstrumentHistoryPeriodicity!) { instrument_price_bar(instrument_id: $instrument_id, periodicity: $periodicity) { instrument_id high low ts_iso close open } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Subscriptions are delivered over WebSocket (wss://). Use a GraphQL-WS client rather than this HTTP runner.
query instrument_price_bars Instrument Price Bars
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
required |
limit |
String |
optional |
date_range |
DateRangeInput |
optional |
periodicity |
InstrumentHistoryPeriodicity |
optional |
Response
| Field | Sub-fields |
|---|---|
instrument_id |
scalar |
high |
scalar |
low |
scalar |
ts_iso |
scalar |
close |
scalar |
open |
scalar |
GraphQL Operation
query instrument_price_bars($instrument_id: String!, $limit: String, $date_range: DateRangeInput, $periodicity: InstrumentHistoryPeriodicity) {
instrument_price_bars(instrument_id: $instrument_id, limit: $limit, date_range: $date_range, periodicity: $periodicity) {
instrument_id
high
low
ts_iso
close
open
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query instrument_price_bars($instrument_id: String!, $limit: String, $date_range: DateRangeInput, $periodicity: InstrumentHistoryPeriodicity) { instrument_price_bars(instrument_id: $instrument_id, limit: $limit, date_range: $date_range, periodicity: $periodicity) { instrument_id high low ts_iso close open } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query instrument_price_bars($instrument_id: String!, $limit: String, $date_range: DateRangeInput, $periodicity: InstrumentHistoryPeriodicity) { instrument_price_bars(instrument_id: $instrument_id, limit: $limit, date_range: $date_range, periodicity: $periodicity) { instrument_id high low ts_iso close open } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query instrument_price_bars($instrument_id: String!, $limit: String, $date_range: DateRangeInput, $periodicity: InstrumentHistoryPeriodicity) { instrument_price_bars(instrument_id: $instrument_id, limit: $limit, date_range: $date_range, periodicity: $periodicity) { instrument_id high low ts_iso close open } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query instruments Instruments
Inputs
| Name | Type | Required |
|---|---|---|
is_active |
ToggleSwitch |
optional |
instrument_id |
String |
optional |
search |
String |
optional |
page |
Int |
optional |
limit |
Int |
optional |
sort |
SortInput |
optional |
Response
| Field | Sub-fields |
|---|---|
instrument_id |
scalar |
price_bars |
instrument_id, high, low, ts_iso, close, open |
name |
scalar |
base_currency_id |
scalar |
quote_currency_id |
scalar |
quote_quantity_decimals |
scalar |
quantity_decimals |
scalar |
price_decimals |
scalar |
min_quantity |
scalar |
max_quantity |
scalar |
min_quote_quantity |
scalar |
max_quote_quantity |
scalar |
is_active |
scalar |
meta |
scalar |
max_conversion_quote_ttl |
scalar |
price |
instrument_id, ask, bid, price_24h_change, ts_iso |
recent_price_bar |
high, low |
GraphQL Operation
query instruments($is_active: ToggleSwitch, $instrument_id: String, $search: String, $page: Int, $limit: Int, $sort: SortInput) {
instruments(is_active: $is_active, instrument_id: $instrument_id, search: $search, page: $page, limit: $limit, sort: $sort) {
instrument_id
price_bars {
instrument_id
high
low
ts_iso
close
open
}
name
base_currency_id
quote_currency_id
quote_quantity_decimals
quantity_decimals
price_decimals
min_quantity
max_quantity
min_quote_quantity
max_quote_quantity
is_active
meta
max_conversion_quote_ttl
price {
instrument_id
ask
bid
price_24h_change
ts_iso
}
recent_price_bar {
high
low
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query instruments($is_active: ToggleSwitch, $instrument_id: String, $search: String, $page: Int, $limit: Int, $sort: SortInput) { instruments(is_active: $is_active, instrument_id: $instrument_id, search: $search, page: $page, limit: $limit, sort: $sort) { instrument_id price_bars { instrument_id high low ts_iso close open } name base_currency_id quote_currency_id quote_quantity_decimals quantity_decimals price_decimals min_quantity max_quantity min_quote_quantity max_quote_quantity is_active meta max_conversion_quote_ttl price { instrument_id ask bid price_24h_change ts_iso } recent_price_bar { high low } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query instruments($is_active: ToggleSwitch, $instrument_id: String, $search: String, $page: Int, $limit: Int, $sort: SortInput) { instruments(is_active: $is_active, instrument_id: $instrument_id, search: $search, page: $page, limit: $limit, sort: $sort) { instrument_id price_bars { instrument_id high low ts_iso close open } name base_currency_id quote_currency_id quote_quantity_decimals quantity_decimals price_decimals min_quantity max_quantity min_quote_quantity max_quote_quantity is_active meta max_conversion_quote_ttl price { instrument_id ask bid price_24h_change ts_iso } recent_price_bar { high low } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query instruments($is_active: ToggleSwitch, $instrument_id: String, $search: String, $page: Int, $limit: Int, $sort: SortInput) { instruments(is_active: $is_active, instrument_id: $instrument_id, search: $search, page: $page, limit: $limit, sort: $sort) { instrument_id price_bars { instrument_id high low ts_iso close open } name base_currency_id quote_currency_id quote_quantity_decimals quantity_decimals price_decimals min_quantity max_quantity min_quote_quantity max_quote_quantity is_active meta max_conversion_quote_ttl price { instrument_id ask bid price_24h_change ts_iso } recent_price_bar { high low } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Orders
9 ops
subscription all_orders All Orders
Inputs
| Name | Type | Required |
|---|---|---|
instruments |
[String!] |
optional |
Response
| Field | Sub-fields |
|---|---|
order_id |
scalar |
type |
scalar |
side |
scalar |
status |
scalar |
price |
scalar |
stop_price |
scalar |
quantity |
scalar |
executed_quantity |
scalar |
remaining_quantity |
scalar |
quantity_mode |
scalar |
instrument_id |
scalar |
message |
scalar |
updated_at |
scalar |
created_at |
scalar |
expires_at |
scalar |
expires_at_iso |
scalar |
time_in_force |
scalar |
vwap |
scalar |
wallet_id |
scalar |
instrument |
quote_currency_id, name, base_currency_id, quantity_decimals, quote_quantity_decimals, price_decimals |
fees |
currency_id, amount, type |
GraphQL Operation
subscription all_orders($instruments: [String!]) {
all_orders(instruments: $instruments) {
order_id
type
side
status
price
stop_price
quantity
executed_quantity
remaining_quantity
quantity_mode
instrument_id
message
updated_at
created_at
expires_at
expires_at_iso
time_in_force
vwap
wallet_id
instrument {
quote_currency_id
name
base_currency_id
quantity_decimals
quote_quantity_decimals
price_decimals
}
fees {
currency_id
amount
type
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"subscription all_orders($instruments: [String!]) { all_orders(instruments: $instruments) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """subscription all_orders($instruments: [String!]) { all_orders(instruments: $instruments) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `subscription all_orders($instruments: [String!]) { all_orders(instruments: $instruments) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Subscriptions are delivered over WebSocket (wss://). Use a GraphQL-WS client rather than this HTTP runner.
mutation cancel_all_orders Cancel All Orders
Inputs
Response
GraphQL Operation
mutation cancel_all_orders {
cancel_all_orders
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation cancel_all_orders { cancel_all_orders }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation cancel_all_orders { cancel_all_orders }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation cancel_all_orders { cancel_all_orders }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
This operation takes no inputs.
mutation cancel_order Cancel Order
Inputs
| Name | Type | Required |
|---|---|---|
order_id |
String |
required |
Response
GraphQL Operation
mutation cancel_order($order_id: String!) {
cancel_order(order_id: $order_id)
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation cancel_order($order_id: String!) { cancel_order(order_id: $order_id) }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation cancel_order($order_id: String!) { cancel_order(order_id: $order_id) }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation cancel_order($order_id: String!) { cancel_order(order_id: $order_id) }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query closed_orders Closed Orders
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
optional |
status |
[OrderStatus!] |
optional |
side |
OrderSide |
optional |
pager |
PagerInput |
optional |
dateRange |
DateRangeInput |
optional |
parent_order_id |
String |
optional |
wallet_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
order_id |
scalar |
type |
scalar |
side |
scalar |
status |
scalar |
price |
scalar |
stop_price |
scalar |
quantity |
scalar |
executed_quantity |
scalar |
remaining_quantity |
scalar |
quantity_mode |
scalar |
instrument_id |
scalar |
message |
scalar |
updated_at |
scalar |
created_at |
scalar |
expires_at |
scalar |
expires_at_iso |
scalar |
time_in_force |
scalar |
vwap |
scalar |
wallet_id |
scalar |
instrument |
quote_currency_id, name, base_currency_id, quantity_decimals, quote_quantity_decimals, price_decimals |
fees |
currency_id, amount, type |
total |
scalar |
GraphQL Operation
query closed_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) {
closed_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) {
order_id
type
side
status
price
stop_price
quantity
executed_quantity
remaining_quantity
quantity_mode
instrument_id
message
updated_at
created_at
expires_at
expires_at_iso
time_in_force
vwap
wallet_id
instrument {
quote_currency_id
name
base_currency_id
quantity_decimals
quote_quantity_decimals
price_decimals
}
fees {
currency_id
amount
type
}
total
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query closed_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) { closed_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } total } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query closed_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) { closed_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } total } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query closed_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) { closed_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } total } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
mutation create_order Create Order
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
required |
type |
OrderType |
required |
price |
Float |
optional |
stop_price |
Float |
optional |
side |
OrderSide |
required |
time_in_force |
OrderTimeInForce |
required |
quantity |
Float |
required |
expires_at |
String |
optional |
quantity_mode |
OrderQuantityMode |
optional |
post_only |
ToggleSwitch |
optional |
wallet_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
order_id |
scalar |
type |
scalar |
side |
scalar |
status |
scalar |
price |
scalar |
stop_price |
scalar |
quantity |
scalar |
executed_quantity |
scalar |
remaining_quantity |
scalar |
quantity_mode |
scalar |
instrument_id |
scalar |
message |
scalar |
updated_at |
scalar |
created_at |
scalar |
expires_at |
scalar |
expires_at_iso |
scalar |
time_in_force |
scalar |
vwap |
scalar |
wallet_id |
scalar |
instrument |
quote_currency_id, name, base_currency_id, quantity_decimals, quote_quantity_decimals, price_decimals |
fees |
currency_id, amount, type |
GraphQL Operation
mutation create_order($instrument_id: String!, $type: OrderType!, $price: Float, $stop_price: Float, $side: OrderSide!, $time_in_force: OrderTimeInForce!, $quantity: Float!, $expires_at: String, $quantity_mode: OrderQuantityMode, $post_only: ToggleSwitch, $wallet_id: String!) {
create_order(instrument_id: $instrument_id, type: $type, price: $price, stop_price: $stop_price, side: $side, time_in_force: $time_in_force, quantity: $quantity, expires_at: $expires_at, quantity_mode: $quantity_mode, post_only: $post_only, wallet_id: $wallet_id) {
order_id
type
side
status
price
stop_price
quantity
executed_quantity
remaining_quantity
quantity_mode
instrument_id
message
updated_at
created_at
expires_at
expires_at_iso
time_in_force
vwap
wallet_id
instrument {
quote_currency_id
name
base_currency_id
quantity_decimals
quote_quantity_decimals
price_decimals
}
fees {
currency_id
amount
type
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_order($instrument_id: String!, $type: OrderType!, $price: Float, $stop_price: Float, $side: OrderSide!, $time_in_force: OrderTimeInForce!, $quantity: Float!, $expires_at: String, $quantity_mode: OrderQuantityMode, $post_only: ToggleSwitch, $wallet_id: String!) { create_order(instrument_id: $instrument_id, type: $type, price: $price, stop_price: $stop_price, side: $side, time_in_force: $time_in_force, quantity: $quantity, expires_at: $expires_at, quantity_mode: $quantity_mode, post_only: $post_only, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_order($instrument_id: String!, $type: OrderType!, $price: Float, $stop_price: Float, $side: OrderSide!, $time_in_force: OrderTimeInForce!, $quantity: Float!, $expires_at: String, $quantity_mode: OrderQuantityMode, $post_only: ToggleSwitch, $wallet_id: String!) { create_order(instrument_id: $instrument_id, type: $type, price: $price, stop_price: $stop_price, side: $side, time_in_force: $time_in_force, quantity: $quantity, expires_at: $expires_at, quantity_mode: $quantity_mode, post_only: $post_only, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_order($instrument_id: String!, $type: OrderType!, $price: Float, $stop_price: Float, $side: OrderSide!, $time_in_force: OrderTimeInForce!, $quantity: Float!, $expires_at: String, $quantity_mode: OrderQuantityMode, $post_only: ToggleSwitch, $wallet_id: String!) { create_order(instrument_id: $instrument_id, type: $type, price: $price, stop_price: $stop_price, side: $side, time_in_force: $time_in_force, quantity: $quantity, expires_at: $expires_at, quantity_mode: $quantity_mode, post_only: $post_only, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query estimate_order Estimate Order
Inputs
| Name | Type | Required |
|---|---|---|
source_currency_id |
String |
required |
target_currency_id |
String |
required |
price |
Float |
optional |
target_currency_amount |
Float |
optional |
source_currency_amount |
Float |
optional |
instrument_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
type |
scalar |
price |
scalar |
quantity |
scalar |
side |
scalar |
quantity_mode |
scalar |
instrument |
instrument_id |
fees |
currency_id, amount, type |
GraphQL Operation
query estimate_order($source_currency_id: String!, $target_currency_id: String!, $price: Float, $target_currency_amount: Float, $source_currency_amount: Float, $instrument_id: String) {
estimate_order(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, price: $price, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, instrument_id: $instrument_id) {
type
price
quantity
side
quantity_mode
instrument {
instrument_id
}
fees {
currency_id
amount
type
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query estimate_order($source_currency_id: String!, $target_currency_id: String!, $price: Float, $target_currency_amount: Float, $source_currency_amount: Float, $instrument_id: String) { estimate_order(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, price: $price, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, instrument_id: $instrument_id) { type price quantity side quantity_mode instrument { instrument_id } fees { currency_id amount type } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query estimate_order($source_currency_id: String!, $target_currency_id: String!, $price: Float, $target_currency_amount: Float, $source_currency_amount: Float, $instrument_id: String) { estimate_order(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, price: $price, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, instrument_id: $instrument_id) { type price quantity side quantity_mode instrument { instrument_id } fees { currency_id amount type } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query estimate_order($source_currency_id: String!, $target_currency_id: String!, $price: Float, $target_currency_amount: Float, $source_currency_amount: Float, $instrument_id: String) { estimate_order(source_currency_id: $source_currency_id, target_currency_id: $target_currency_id, price: $price, target_currency_amount: $target_currency_amount, source_currency_amount: $source_currency_amount, instrument_id: $instrument_id) { type price quantity side quantity_mode instrument { instrument_id } fees { currency_id amount type } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query open_orders Open Orders
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
optional |
status |
[OrderStatus!] |
optional |
side |
OrderSide |
optional |
pager |
PagerInput |
optional |
dateRange |
DateRangeInput |
optional |
parent_order_id |
String |
optional |
wallet_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
order_id |
scalar |
type |
scalar |
side |
scalar |
status |
scalar |
price |
scalar |
stop_price |
scalar |
quantity |
scalar |
executed_quantity |
scalar |
remaining_quantity |
scalar |
quantity_mode |
scalar |
instrument_id |
scalar |
message |
scalar |
updated_at |
scalar |
created_at |
scalar |
expires_at |
scalar |
expires_at_iso |
scalar |
time_in_force |
scalar |
vwap |
scalar |
wallet_id |
scalar |
instrument |
quote_currency_id, name, base_currency_id, quantity_decimals, quote_quantity_decimals, price_decimals |
fees |
currency_id, amount, type |
created_at_iso |
scalar |
updated_at_iso |
scalar |
GraphQL Operation
query open_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) {
open_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) {
order_id
type
side
status
price
stop_price
quantity
executed_quantity
remaining_quantity
quantity_mode
instrument_id
message
updated_at
created_at
expires_at
expires_at_iso
time_in_force
vwap
wallet_id
instrument {
quote_currency_id
name
base_currency_id
quantity_decimals
quote_quantity_decimals
price_decimals
}
fees {
currency_id
amount
type
}
created_at_iso
updated_at_iso
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query open_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) { open_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } created_at_iso updated_at_iso } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query open_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) { open_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } created_at_iso updated_at_iso } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query open_orders($instrument_id: String, $status: [OrderStatus!], $side: OrderSide, $pager: PagerInput, $dateRange: DateRangeInput, $parent_order_id: String, $wallet_id: String!) { open_orders(instrument_id: $instrument_id, status: $status, side: $side, pager: $pager, dateRange: $dateRange, parent_order_id: $parent_order_id, wallet_id: $wallet_id) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } created_at_iso updated_at_iso } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
subscription orderbook Orderbook
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
required |
Response
| Field | Sub-fields |
|---|---|
instrument_id |
scalar |
buy |
quantity, price |
sell |
quantity, price |
GraphQL Operation
subscription orderbook($instrument_id: String!) {
orderbook(instrument_id: $instrument_id) {
instrument_id
buy {
quantity
price
}
sell {
quantity
price
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"subscription orderbook($instrument_id: String!) { orderbook(instrument_id: $instrument_id) { instrument_id buy { quantity price } sell { quantity price } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """subscription orderbook($instrument_id: String!) { orderbook(instrument_id: $instrument_id) { instrument_id buy { quantity price } sell { quantity price } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `subscription orderbook($instrument_id: String!) { orderbook(instrument_id: $instrument_id) { instrument_id buy { quantity price } sell { quantity price } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Subscriptions are delivered over WebSocket (wss://). Use a GraphQL-WS client rather than this HTTP runner.
mutation update_open_order Update Open Order
Inputs
| Name | Type | Required |
|---|---|---|
order_id |
String |
required |
quantity |
Float |
required |
price |
Float |
required |
expires_at |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
order_id |
scalar |
type |
scalar |
side |
scalar |
status |
scalar |
price |
scalar |
stop_price |
scalar |
quantity |
scalar |
executed_quantity |
scalar |
remaining_quantity |
scalar |
quantity_mode |
scalar |
instrument_id |
scalar |
message |
scalar |
updated_at |
scalar |
created_at |
scalar |
expires_at |
scalar |
expires_at_iso |
scalar |
time_in_force |
scalar |
vwap |
scalar |
wallet_id |
scalar |
instrument |
quote_currency_id, name, base_currency_id, quantity_decimals, quote_quantity_decimals, price_decimals |
fees |
currency_id, amount, type |
GraphQL Operation
mutation update_open_order($order_id: String!, $quantity: Float!, $price: Float!, $expires_at: String) {
update_open_order(order_id: $order_id, quantity: $quantity, price: $price, expires_at: $expires_at) {
order_id
type
side
status
price
stop_price
quantity
executed_quantity
remaining_quantity
quantity_mode
instrument_id
message
updated_at
created_at
expires_at
expires_at_iso
time_in_force
vwap
wallet_id
instrument {
quote_currency_id
name
base_currency_id
quantity_decimals
quote_quantity_decimals
price_decimals
}
fees {
currency_id
amount
type
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation update_open_order($order_id: String!, $quantity: Float!, $price: Float!, $expires_at: String) { update_open_order(order_id: $order_id, quantity: $quantity, price: $price, expires_at: $expires_at) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation update_open_order($order_id: String!, $quantity: Float!, $price: Float!, $expires_at: String) { update_open_order(order_id: $order_id, quantity: $quantity, price: $price, expires_at: $expires_at) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation update_open_order($order_id: String!, $quantity: Float!, $price: Float!, $expires_at: String) { update_open_order(order_id: $order_id, quantity: $quantity, price: $price, expires_at: $expires_at) { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Payments
3 ops
mutation create_payment_session Create Payment Session
Inputs
| Name | Type | Required |
|---|---|---|
payment_route_id |
String |
required |
payment_type |
PaymentType |
required |
Response
GraphQL Operation
mutation create_payment_session($payment_route_id: String!, $payment_type: PaymentType!) {
create_payment_session(payment_route_id: $payment_route_id, payment_type: $payment_type)
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_payment_session($payment_route_id: String!, $payment_type: PaymentType!) { create_payment_session(payment_route_id: $payment_route_id, payment_type: $payment_type) }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_payment_session($payment_route_id: String!, $payment_type: PaymentType!) { create_payment_session(payment_route_id: $payment_route_id, payment_type: $payment_type) }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_payment_session($payment_route_id: String!, $payment_type: PaymentType!) { create_payment_session(payment_route_id: $payment_route_id, payment_type: $payment_type) }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
mutation estimate_payment_fee Estimate Payment Fee
Inputs
| Name | Type | Required |
|---|---|---|
user_id |
String |
optional |
payment_route_id |
String |
required |
type |
PaymentType |
required |
amount |
Float |
required |
crypto_network_fee_preference |
CryptoNetworkFeePreference |
optional |
Response
GraphQL Operation
mutation estimate_payment_fee($user_id: String, $payment_route_id: String!, $type: PaymentType!, $amount: Float!, $crypto_network_fee_preference: CryptoNetworkFeePreference) {
estimate_payment_fee(user_id: $user_id, payment_route_id: $payment_route_id, type: $type, amount: $amount, crypto_network_fee_preference: $crypto_network_fee_preference)
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation estimate_payment_fee($user_id: String, $payment_route_id: String!, $type: PaymentType!, $amount: Float!, $crypto_network_fee_preference: CryptoNetworkFeePreference) { estimate_payment_fee(user_id: $user_id, payment_route_id: $payment_route_id, type: $type, amount: $amount, crypto_network_fee_preference: $crypto_network_fee_preference) }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation estimate_payment_fee($user_id: String, $payment_route_id: String!, $type: PaymentType!, $amount: Float!, $crypto_network_fee_preference: CryptoNetworkFeePreference) { estimate_payment_fee(user_id: $user_id, payment_route_id: $payment_route_id, type: $type, amount: $amount, crypto_network_fee_preference: $crypto_network_fee_preference) }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation estimate_payment_fee($user_id: String, $payment_route_id: String!, $type: PaymentType!, $amount: Float!, $crypto_network_fee_preference: CryptoNetworkFeePreference) { estimate_payment_fee(user_id: $user_id, payment_route_id: $payment_route_id, type: $type, amount: $amount, crypto_network_fee_preference: $crypto_network_fee_preference) }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query payments Payments
Inputs
| Name | Type | Required |
|---|---|---|
type |
PaymentType |
optional |
currency_id |
String |
optional |
dateRange |
DateRangeInput |
optional |
pager |
PagerInput |
optional |
approval_status |
[PaymentApprovalStatus!] |
optional |
status |
[PaymentStatus!] |
optional |
wallet_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
payment_id |
scalar |
currency_id |
scalar |
amount |
scalar |
type |
scalar |
crypto_transaction_id |
scalar |
crypto_address |
scalar |
crypto_address_tag_type |
scalar |
crypto_address_tag_value |
scalar |
crypto_network |
scalar |
approval_status |
scalar |
psp_service_id |
scalar |
reference |
scalar |
fee_amount |
scalar |
status |
scalar |
message |
scalar |
error_message |
scalar |
comment |
scalar |
created_at |
scalar |
updated_at |
scalar |
manual_transaction_date_iso |
scalar |
fees_included |
scalar |
wallet_id |
scalar |
payment_route |
name, payment_route_id |
account_transactions |
currency_id, transaction_class, post_balance, amount |
properties |
name, value |
amount_quoted |
scalar |
fee_quoted |
scalar |
GraphQL Operation
query payments($type: PaymentType, $currency_id: String, $dateRange: DateRangeInput, $pager: PagerInput, $approval_status: [PaymentApprovalStatus!], $status: [PaymentStatus!], $wallet_id: String) {
payments(type: $type, currency_id: $currency_id, dateRange: $dateRange, pager: $pager, approval_status: $approval_status, status: $status, wallet_id: $wallet_id) {
payment_id
currency_id
amount
type
crypto_transaction_id
crypto_address
crypto_address_tag_type
crypto_address_tag_value
crypto_network
approval_status
psp_service_id
reference
fee_amount
status
message
error_message
comment
created_at
updated_at
manual_transaction_date_iso
fees_included
wallet_id
payment_route {
name
payment_route_id
}
account_transactions {
currency_id
transaction_class
post_balance
amount
}
properties {
name
value
}
amount_quoted
fee_quoted
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query payments($type: PaymentType, $currency_id: String, $dateRange: DateRangeInput, $pager: PagerInput, $approval_status: [PaymentApprovalStatus!], $status: [PaymentStatus!], $wallet_id: String) { payments(type: $type, currency_id: $currency_id, dateRange: $dateRange, pager: $pager, approval_status: $approval_status, status: $status, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } amount_quoted fee_quoted } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query payments($type: PaymentType, $currency_id: String, $dateRange: DateRangeInput, $pager: PagerInput, $approval_status: [PaymentApprovalStatus!], $status: [PaymentStatus!], $wallet_id: String) { payments(type: $type, currency_id: $currency_id, dateRange: $dateRange, pager: $pager, approval_status: $approval_status, status: $status, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } amount_quoted fee_quoted } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query payments($type: PaymentType, $currency_id: String, $dateRange: DateRangeInput, $pager: PagerInput, $approval_status: [PaymentApprovalStatus!], $status: [PaymentStatus!], $wallet_id: String) { payments(type: $type, currency_id: $currency_id, dateRange: $dateRange, pager: $pager, approval_status: $approval_status, status: $status, wallet_id: $wallet_id) { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } amount_quoted fee_quoted } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Trade
4 ops
query account_transactions Account Transactions
Inputs
| Name | Type | Required |
|---|---|---|
currency_id |
String |
optional |
pager |
PagerInput |
optional |
dateRange |
DateRangeInput |
optional |
wallet_id |
String |
required |
type |
AccountTransactionType |
optional |
Response
| Field | Sub-fields |
|---|---|
account_transaction_id |
scalar |
serial_id |
scalar |
parent_transaction_id |
scalar |
client_transaction_id |
scalar |
user_id |
scalar |
account_id |
scalar |
payment_id |
scalar |
currency_id |
scalar |
transaction_class |
scalar |
type |
scalar |
order_id |
scalar |
trade_id |
scalar |
conversion_id |
scalar |
amount |
scalar |
post_balance |
scalar |
comment |
scalar |
created_at |
scalar |
created_at_iso |
scalar |
created_by |
scalar |
wallet_id |
scalar |
payment |
manual_transaction_date_iso |
GraphQL Operation
query account_transactions($currency_id: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!, $type: AccountTransactionType) {
account_transactions(currency_id: $currency_id, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id, type: $type) {
account_transaction_id
serial_id
parent_transaction_id
client_transaction_id
user_id
account_id
payment_id
currency_id
transaction_class
type
order_id
trade_id
conversion_id
amount
post_balance
comment
created_at
created_at_iso
created_by
wallet_id
payment {
manual_transaction_date_iso
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query account_transactions($currency_id: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!, $type: AccountTransactionType) { account_transactions(currency_id: $currency_id, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id, type: $type) { account_transaction_id serial_id parent_transaction_id client_transaction_id user_id account_id payment_id currency_id transaction_class type order_id trade_id conversion_id amount post_balance comment created_at created_at_iso created_by wallet_id payment { manual_transaction_date_iso } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query account_transactions($currency_id: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!, $type: AccountTransactionType) { account_transactions(currency_id: $currency_id, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id, type: $type) { account_transaction_id serial_id parent_transaction_id client_transaction_id user_id account_id payment_id currency_id transaction_class type order_id trade_id conversion_id amount post_balance comment created_at created_at_iso created_by wallet_id payment { manual_transaction_date_iso } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query account_transactions($currency_id: String, $pager: PagerInput, $dateRange: DateRangeInput, $wallet_id: String!, $type: AccountTransactionType) { account_transactions(currency_id: $currency_id, pager: $pager, dateRange: $dateRange, wallet_id: $wallet_id, type: $type) { account_transaction_id serial_id parent_transaction_id client_transaction_id user_id account_id payment_id currency_id transaction_class type order_id trade_id conversion_id amount post_balance comment created_at created_at_iso created_by wallet_id payment { manual_transaction_date_iso } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query accounts_balances Accounts Balances
Inputs
| Name | Type | Required |
|---|---|---|
wallet_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
currency_id |
scalar |
total_balance |
scalar |
exposed_balance |
scalar |
margin_exposure |
scalar |
free_balance |
scalar |
GraphQL Operation
query accounts_balances($wallet_id: String) {
accounts_balances(wallet_id: $wallet_id) {
currency_id
total_balance
exposed_balance
margin_exposure
free_balance
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query accounts_balances($wallet_id: String) { accounts_balances(wallet_id: $wallet_id) { currency_id total_balance exposed_balance margin_exposure free_balance } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query accounts_balances($wallet_id: String) { accounts_balances(wallet_id: $wallet_id) { currency_id total_balance exposed_balance margin_exposure free_balance } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query accounts_balances($wallet_id: String) { accounts_balances(wallet_id: $wallet_id) { currency_id total_balance exposed_balance margin_exposure free_balance } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query portfolio_history Portfolio History
Inputs
| Name | Type | Required |
|---|---|---|
currency_id |
String |
required |
timestamp |
String |
required |
interval |
PortfolioHistoryInterval |
required |
Response
GraphQL Operation
query portfolio_history($currency_id: String!, $timestamp: String!, $interval: PortfolioHistoryInterval!) {
portfolio_history(currency_id: $currency_id, timestamp: $timestamp, interval: $interval)
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query portfolio_history($currency_id: String!, $timestamp: String!, $interval: PortfolioHistoryInterval!) { portfolio_history(currency_id: $currency_id, timestamp: $timestamp, interval: $interval) }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query portfolio_history($currency_id: String!, $timestamp: String!, $interval: PortfolioHistoryInterval!) { portfolio_history(currency_id: $currency_id, timestamp: $timestamp, interval: $interval) }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query portfolio_history($currency_id: String!, $timestamp: String!, $interval: PortfolioHistoryInterval!) { portfolio_history(currency_id: $currency_id, timestamp: $timestamp, interval: $interval) }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
subscription user_update User Update
Inputs
Response
| Field | Sub-fields |
|---|---|
order |
order_id, type, side, status, price, stop_price, quantity, executed_quantity, remaining_quantity, quantity_mode, instrument_id, message, updated_at, created_at, expires_at, expires_at_iso, time_in_force, vwap, wallet_id, instrument, fees |
account_transaction |
currency_id, type, amount, post_balance, order_id |
payment |
payment_id, currency_id, amount, type, crypto_transaction_id, crypto_address, crypto_address_tag_type, crypto_address_tag_value, crypto_network, approval_status, psp_service_id, reference, fee_amount, status, message, error_message, comment, created_at, updated_at, manual_transaction_date_iso, fees_included, wallet_id, payment_route, account_transactions, properties |
account |
account_id, balance |
notification |
title, body, class, code, vars |
healthcheck |
maintenance_message, maintenance_mode |
conversion |
conversion_id, conversion_quote_id, reference, source_currency_id, source_currency_amount, target_currency_id, target_currency_amount, instrument_id, fee_currency_id, fee_currency_amount, price, status, message, error_message, created_at_iso, updated_at_iso, wallet_id, instrument |
GraphQL Operation
subscription user_update {
user_update {
order {
order_id
type
side
status
price
stop_price
quantity
executed_quantity
remaining_quantity
quantity_mode
instrument_id
message
updated_at
created_at
expires_at
expires_at_iso
time_in_force
vwap
wallet_id
instrument {
quote_currency_id
name
base_currency_id
quantity_decimals
quote_quantity_decimals
price_decimals
}
fees {
currency_id
amount
type
}
}
account_transaction {
currency_id
type
amount
post_balance
order_id
}
payment {
payment_id
currency_id
amount
type
crypto_transaction_id
crypto_address
crypto_address_tag_type
crypto_address_tag_value
crypto_network
approval_status
psp_service_id
reference
fee_amount
status
message
error_message
comment
created_at
updated_at
manual_transaction_date_iso
fees_included
wallet_id
payment_route {
name
payment_route_id
}
account_transactions {
currency_id
transaction_class
post_balance
amount
}
properties {
name
value
}
}
account {
account_id
balance
}
notification {
title
body
class
code
vars
}
healthcheck {
maintenance_message
maintenance_mode
}
conversion {
conversion_id
conversion_quote_id
reference
source_currency_id
source_currency_amount
target_currency_id
target_currency_amount
instrument_id
fee_currency_id
fee_currency_amount
price
status
message
error_message
created_at_iso
updated_at_iso
wallet_id
instrument {
name
base_currency_id
quantity_decimals
quote_quantity_decimals
}
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"subscription user_update { user_update { order { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } account_transaction { currency_id type amount post_balance order_id } payment { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } account { account_id balance } notification { title body class code vars } healthcheck { maintenance_message maintenance_mode } conversion { conversion_id conversion_quote_id reference source_currency_id source_currency_amount target_currency_id target_currency_amount instrument_id fee_currency_id fee_currency_amount price status message error_message created_at_iso updated_at_iso wallet_id instrument { name base_currency_id quantity_decimals quote_quantity_decimals } } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """subscription user_update { user_update { order { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } account_transaction { currency_id type amount post_balance order_id } payment { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } account { account_id balance } notification { title body class code vars } healthcheck { maintenance_message maintenance_mode } conversion { conversion_id conversion_quote_id reference source_currency_id source_currency_amount target_currency_id target_currency_amount instrument_id fee_currency_id fee_currency_amount price status message error_message created_at_iso updated_at_iso wallet_id instrument { name base_currency_id quantity_decimals quote_quantity_decimals } } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `subscription user_update { user_update { order { order_id type side status price stop_price quantity executed_quantity remaining_quantity quantity_mode instrument_id message updated_at created_at expires_at expires_at_iso time_in_force vwap wallet_id instrument { quote_currency_id name base_currency_id quantity_decimals quote_quantity_decimals price_decimals } fees { currency_id amount type } } account_transaction { currency_id type amount post_balance order_id } payment { payment_id currency_id amount type crypto_transaction_id crypto_address crypto_address_tag_type crypto_address_tag_value crypto_network approval_status psp_service_id reference fee_amount status message error_message comment created_at updated_at manual_transaction_date_iso fees_included wallet_id payment_route { name payment_route_id } account_transactions { currency_id transaction_class post_balance amount } properties { name value } } account { account_id balance } notification { title body class code vars } healthcheck { maintenance_message maintenance_mode } conversion { conversion_id conversion_quote_id reference source_currency_id source_currency_amount target_currency_id target_currency_amount instrument_id fee_currency_id fee_currency_amount price status message error_message created_at_iso updated_at_iso wallet_id instrument { name base_currency_id quantity_decimals quote_quantity_decimals } } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Subscriptions are delivered over WebSocket (wss://). Use a GraphQL-WS client rather than this HTTP runner.
This operation takes no inputs.
Trading Fees
1 op
query trading_fees Trading Fees
Inputs
| Name | Type | Required |
|---|---|---|
instrument_id |
String |
optional |
fee_group_id |
String |
optional |
pager |
PagerInput |
optional |
Response
| Field | Sub-fields |
|---|---|
instrument_id |
scalar |
maker_flat |
scalar |
maker_progressive |
scalar |
taker_flat |
scalar |
taker_progressive |
scalar |
GraphQL Operation
query trading_fees($instrument_id: String, $fee_group_id: String, $pager: PagerInput) {
trading_fees(instrument_id: $instrument_id, fee_group_id: $fee_group_id, pager: $pager) {
instrument_id
maker_flat
maker_progressive
taker_flat
taker_progressive
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query trading_fees($instrument_id: String, $fee_group_id: String, $pager: PagerInput) { trading_fees(instrument_id: $instrument_id, fee_group_id: $fee_group_id, pager: $pager) { instrument_id maker_flat maker_progressive taker_flat taker_progressive } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query trading_fees($instrument_id: String, $fee_group_id: String, $pager: PagerInput) { trading_fees(instrument_id: $instrument_id, fee_group_id: $fee_group_id, pager: $pager) { instrument_id maker_flat maker_progressive taker_flat taker_progressive } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query trading_fees($instrument_id: String, $fee_group_id: String, $pager: PagerInput) { trading_fees(instrument_id: $instrument_id, fee_group_id: $fee_group_id, pager: $pager) { instrument_id maker_flat maker_progressive taker_flat taker_progressive } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
Referral
6 operations · service: https://vakotrade-coinbox.cryptosrvc.com/graphql
mutation claim_referral Claim Referral
Inputs
| Name | Type | Required |
|---|---|---|
referral_id |
String |
required |
user_id |
String |
optional |
Response
GraphQL Operation
mutation claim_referral($referral_id: String!, $user_id: String) {
claim_referral(referral_id: $referral_id, user_id: $user_id)
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation claim_referral($referral_id: String!, $user_id: String) { claim_referral(referral_id: $referral_id, user_id: $user_id) }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation claim_referral($referral_id: String!, $user_id: String) { claim_referral(referral_id: $referral_id, user_id: $user_id) }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation claim_referral($referral_id: String!, $user_id: String) { claim_referral(referral_id: $referral_id, user_id: $user_id) }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
mutation create_referral Create Referral
Inputs
| Name | Type | Required |
|---|---|---|
user_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
referral_id |
scalar |
GraphQL Operation
mutation create_referral($user_id: String) {
create_referral(user_id: $user_id) {
referral_id
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"mutation create_referral($user_id: String) { create_referral(user_id: $user_id) { referral_id } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """mutation create_referral($user_id: String) { create_referral(user_id: $user_id) { referral_id } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `mutation create_referral($user_id: String) { create_referral(user_id: $user_id) { referral_id } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query referrals Referrals
Inputs
Response
| Field | Sub-fields |
|---|---|
referral_id |
scalar |
GraphQL Operation
query referrals {
referrals {
referral_id
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query referrals { referrals { referral_id } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query referrals { referrals { referral_id } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query referrals { referrals { referral_id } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
This operation takes no inputs.
query referrals_transactions_info Referrals Transactions Info
Inputs
| Name | Type | Required |
|---|---|---|
account_transaction_id |
String |
optional |
pager |
PagerInput |
optional |
date_range |
DateRangeInput |
optional |
search |
String |
optional |
referral_id |
String |
optional |
reward_type |
ReferralRewardType |
optional |
target_user_id |
String |
optional |
Response
| Field | Sub-fields |
|---|---|
target_user_id |
scalar |
referral_id |
scalar |
reward_type |
scalar |
account_transaction_id |
scalar |
delayed_until_iso |
scalar |
created_at |
scalar |
account_transaction |
currency_id, amount |
GraphQL Operation
query referrals_transactions_info($account_transaction_id: String, $pager: PagerInput, $date_range: DateRangeInput, $search: String, $referral_id: String, $reward_type: ReferralRewardType, $target_user_id: String) {
referrals_transactions_info(account_transaction_id: $account_transaction_id, pager: $pager, date_range: $date_range, search: $search, referral_id: $referral_id, reward_type: $reward_type, target_user_id: $target_user_id) {
target_user_id
referral_id
reward_type
account_transaction_id
delayed_until_iso
created_at
account_transaction {
currency_id
amount
}
}
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query referrals_transactions_info($account_transaction_id: String, $pager: PagerInput, $date_range: DateRangeInput, $search: String, $referral_id: String, $reward_type: ReferralRewardType, $target_user_id: String) { referrals_transactions_info(account_transaction_id: $account_transaction_id, pager: $pager, date_range: $date_range, search: $search, referral_id: $referral_id, reward_type: $reward_type, target_user_id: $target_user_id) { target_user_id referral_id reward_type account_transaction_id delayed_until_iso created_at account_transaction { currency_id amount } } }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query referrals_transactions_info($account_transaction_id: String, $pager: PagerInput, $date_range: DateRangeInput, $search: String, $referral_id: String, $reward_type: ReferralRewardType, $target_user_id: String) { referrals_transactions_info(account_transaction_id: $account_transaction_id, pager: $pager, date_range: $date_range, search: $search, referral_id: $referral_id, reward_type: $reward_type, target_user_id: $target_user_id) { target_user_id referral_id reward_type account_transaction_id delayed_until_iso created_at account_transaction { currency_id amount } } }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query referrals_transactions_info($account_transaction_id: String, $pager: PagerInput, $date_range: DateRangeInput, $search: String, $referral_id: String, $reward_type: ReferralRewardType, $target_user_id: String) { referrals_transactions_info(account_transaction_id: $account_transaction_id, pager: $pager, date_range: $date_range, search: $search, referral_id: $referral_id, reward_type: $reward_type, target_user_id: $target_user_id) { target_user_id referral_id reward_type account_transaction_id delayed_until_iso created_at account_transaction { currency_id amount } } }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
query referred_users_count Referred Users Count
Inputs
Response
GraphQL Operation
query referred_users_count {
referred_users_count
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query referred_users_count { referred_users_count }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query referred_users_count { referred_users_count }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query referred_users_count { referred_users_count }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);Try It
This operation takes no inputs.
query referrer_total_reward_quoted Referrer Total Reward Quoted
Inputs
| Name | Type | Required |
|---|---|---|
quote_currency_id |
String |
required |
Response
GraphQL Operation
query referrer_total_reward_quoted($quote_currency_id: String!) {
referrer_total_reward_quoted(quote_currency_id: $quote_currency_id)
}
Code Examples
curl -X POST 'https://vakotrade-coinbox.cryptosrvc.com/graphql' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"query referrer_total_reward_quoted($quote_currency_id: String!) { referrer_total_reward_quoted(quote_currency_id: $quote_currency_id) }","variables":{}}'
import requests
url = "https://vakotrade-coinbox.cryptosrvc.com/graphql"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"query": """query referrer_total_reward_quoted($quote_currency_id: String!) { referrer_total_reward_quoted(quote_currency_id: $quote_currency_id) }""",
"variables": {},
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch("https://vakotrade-coinbox.cryptosrvc.com/graphql", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: `query referrer_total_reward_quoted($quote_currency_id: String!) { referrer_total_reward_quoted(quote_currency_id: $quote_currency_id) }`,
variables: {},
}),
});
const data = await response.json();
console.log(data);