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.

Bearer access token

          

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.

  1. Create an API key in your COINBOX account settings. It returns api_key_id and api_key_secret (the secret is shown only once).
  2. Exchange the key for a JWT: service_signin(service_api_key, service_api_secret){ jwt, expires_at }.
  3. Send Authorization: Bearer <jwt> on every request. If the key has hmac_required enabled, 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
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
search String optional
pager PagerInput optional
dateRange DateRangeInput optional
wallet_id String required

Response

FieldSub-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

Authenticate at the top of the page to try this
mutation create_conversion_order Create Conversion Order
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
conversion_quote_id String required
wallet_id String required

Response

FieldSub-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

Authenticate at the top of the page to try this
mutation create_conversion_quote Create Conversion Quote
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this

Currencies

1 op
query currencies Currencies
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
limit Int required
store_mode ToggleSwitch optional

Response

FieldSub-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

Authenticate at the top of the page to try this

Currency Prices

2 ops
query currency_prices Currency Prices
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
base_currencies [String!] required
quote_currency String required

Response

FieldSub-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

Authenticate at the top of the page to try this
subscription currency_prices Currency Prices
Endpoint: WS https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Subscription

Inputs

NameTypeRequired
base_currencies [String!] required
quote_currency String required

Response

FieldSub-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.

Authenticate at the top of the page to try this

Deposit Withdraw

4 ops
mutation create_withdrawal_crypto Create Withdrawal Crypto
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this
mutation create_withdrawal_fiat Create Withdrawal Fiat
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
amount Float required
mfa_token String optional
properties [FiatDepositPropertyInput!] required
payment_route_id String required
wallet_id String optional

Response

FieldSub-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

Authenticate at the top of the page to try this
query deposit_address_crypto Deposit Address Crypto
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
currency_id String required
reference String optional
payment_route_id String required

Response

FieldSub-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

Authenticate at the top of the page to try this
query payments_routes Payments Routes
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
payment_route_id String required

Response

FieldSub-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

Authenticate at the top of the page to try this

Instruments

4 ops
subscription instrument_price Instrument Price
Endpoint: WS https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Subscription

Inputs

NameTypeRequired
instrument_id String optional

Response

FieldSub-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.

Authenticate at the top of the page to try this
subscription instrument_price_bar Instrument Price Bar
Endpoint: WS https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Subscription

Inputs

NameTypeRequired
instrument_id String required
periodicity InstrumentHistoryPeriodicity required

Response

FieldSub-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.

Authenticate at the top of the page to try this
query instrument_price_bars Instrument Price Bars
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
instrument_id String required
limit String optional
date_range DateRangeInput optional
periodicity InstrumentHistoryPeriodicity optional

Response

FieldSub-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

Authenticate at the top of the page to try this
query instruments Instruments
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
is_active ToggleSwitch optional
instrument_id String optional
search String optional
page Int optional
limit Int optional
sort SortInput optional

Response

FieldSub-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

Authenticate at the top of the page to try this

Orders

9 ops
subscription all_orders All Orders
Endpoint: WS https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Subscription

Inputs

NameTypeRequired
instruments [String!] optional

Response

FieldSub-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.

Authenticate at the top of the page to try this
mutation cancel_all_orders Cancel All Orders
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

No input arguments.

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
mutation cancel_order Cancel Order
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
order_id String required

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
query closed_orders Closed Orders
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this
mutation create_order Create Order
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this
query estimate_order Estimate Order
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this
query open_orders Open Orders
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this
subscription orderbook Orderbook
Endpoint: WS https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Subscription

Inputs

NameTypeRequired
instrument_id String required

Response

FieldSub-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.

Authenticate at the top of the page to try this
mutation update_open_order Update Open Order
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
order_id String required
quantity Float required
price Float required
expires_at String optional

Response

FieldSub-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

Authenticate at the top of the page to try this

Payments

3 ops
mutation create_payment_session Create Payment Session
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
payment_route_id String required
payment_type PaymentType required

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
mutation estimate_payment_fee Estimate Payment Fee
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
user_id String optional
payment_route_id String required
type PaymentType required
amount Float required
crypto_network_fee_preference CryptoNetworkFeePreference optional

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
query payments Payments
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this

Trade

4 ops
query account_transactions Account Transactions
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
currency_id String optional
pager PagerInput optional
dateRange DateRangeInput optional
wallet_id String required
type AccountTransactionType optional

Response

FieldSub-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

Authenticate at the top of the page to try this
query accounts_balances Accounts Balances
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
wallet_id String optional

Response

FieldSub-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

Authenticate at the top of the page to try this
query portfolio_history Portfolio History
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
currency_id String required
timestamp String required
interval PortfolioHistoryInterval required

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
subscription user_update User Update
Endpoint: WS https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Subscription

Inputs

No input arguments.

Response

FieldSub-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.

Authenticate at the top of the page to try this

Trading Fees

1 op
query trading_fees Trading Fees
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
instrument_id String optional
fee_group_id String optional
pager PagerInput optional

Response

FieldSub-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

Authenticate at the top of the page to try this

Referral

6 operations · service: https://vakotrade-coinbox.cryptosrvc.com/graphql

mutation claim_referral Claim Referral
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
referral_id String required
user_id String optional

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
mutation create_referral Create Referral
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Mutation

Inputs

NameTypeRequired
user_id String optional

Response

FieldSub-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

Authenticate at the top of the page to try this
query referrals Referrals
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

No input arguments.

Response

FieldSub-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

Authenticate at the top of the page to try this
query referrals_transactions_info Referrals Transactions Info
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
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

FieldSub-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

Authenticate at the top of the page to try this
query referred_users_count Referred Users Count
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

No input arguments.

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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

Authenticate at the top of the page to try this
query referrer_total_reward_quoted Referrer Total Reward Quoted
Endpoint: POST https://vakotrade-coinbox.cryptosrvc.com/graphql
Type: Query

Inputs

NameTypeRequired
quote_currency_id String required

Response

Returns a scalar value (e.g. a boolean flag or identifier).

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);

Try It

Authenticate at the top of the page to try this