...
(Valid for UserApp version 1.45.0)
URL for Playground https://dev.wizwiz.io/graphql
1. Query for Public Order Book (ETH-USDT)
query {publicOrderBook(market:"ETH-USDT"){
sell{
amount
price
cumulativeAmount}
buy {
amount
price
cumulativeAmount
}
}
}
...
2. Query for Market Dynamics data:
query {marketDynamics (market:"ETH-USDT"){
marketId
startPrice
lastPrice
lowPrice
highPrice
change24
amount24h
}
}
...
3. Query for Public Trades History:
query { publicTrades(market: "ETH-USDT") {
result {
price
amount
createdAt
}
}
}
...
Queries:
Expand |
---|
title | Get KYC Document Types |
---|
|
Code Block |
---|
query KYCDocumentTypes {
KYCDocumentTypes
} |
|
...
Expand |
---|
|
Code Block |
---|
query GetUseOrders($market: String, $status: String, $page: Int, $limit: Int) {
userOrders(market: $market, status: $status, page: 1$page, limit: 1000$limit) {
result {
id
market
Market {
id
rate
enable_trading
quote_currency {
id
precision
icon_url
name
}
base_currency {
id
precision
icon_url
name
}
change24
trading_min_price
trading_max_price
trading_min_amount
trading_price_precision
trading_amount_precision
marketDynamics {
marketId
startPrice
amount24h
lastPrice
lowPrice
highPrice
}
}
type
side
status
executedAmount
executedVolume
user {
id
}
amount
price
executedAmount
executedVolume
status
createdAt
}
limit
total
}
} |
|
Expand |
---|
|
Code Block |
---|
query GetUserTradesHistory($market: String) {
userTrades(market: $market) {
result {
price
amount
createdAt
}
}
} |
|
...
Expand |
---|
title | Get User History By Id |
---|
|
Code Block |
---|
query GetUserHistoryById($currencyId: String!) {
history(
type: "move_to_advanced|move_from_advanced|custodial_withdrawal|custodial_deposit|exchange|deposit|staking_rewards|deposit_reward|trade_reward"
page: 1
limit: 54
currencyId: $currencyId
) {
result {
id id
createdAt
status
initiator_type
initiator_currency {
id
precision
icon_url
precision
}
initiator_payment_interface
{
title
}
initiator_payment_interface_id
initiator_amount
initiator_fee
result_currency {
id
precision
icon_url
position
}
result_payment_interface_id
result_amount
}
}
} |
|
Expand |
---|
|
Code Block |
---|
query GetUserHistory {
history(
type: "move_to_advanced|move_from_advanced|custodial_withdrawal|custodial_deposit|exchange|trading"
page: 1
limit: 5000
$currencyId: String
$limit: Int
$page: Int
$type: String
$from: String
$to: String
) {
history(
result { page: $page
id limit: $limit
createdAtcurrencyId: $currencyId
type: $type
status from: $from
initiator_type to: $to
) {
initiator_currencyresult {
id
id createdAt
status
precision initiator_type
iconinitiator_urlcurrency {
id
precision precision
currencyPaymentInterfaces { icon_url
precision
type currencyPaymentInterfaces {
type
paymentInterfaceId paymentInterfaceId
} }
} }
initiator_payment_interface
{
title
subtitle
}
initiator_payment_interface_id
initiator_amount
initiator_explorer_transaction
initiator_txid
result_txid
initiator_fee
result_currency {
id
precision
icon_url
position
}
result_payment_interface_id
result_amount
}
}
} |
|
Expand |
---|
|
Code Block |
---|
query GetUserWallets($id: String) {
user(id: $id) {
currencies {
id
name
icon_url
position
precision
enabled
lightBgColor1
lightBgColor2
darkBgColor1
balance darkBgColor2
lightTextColor
advancedTradingBalance staking_enabled
advancedTradingLockedBalance isUnstakingProcess
lightBgColor1 markets {
lightBgColor2 id
darkBgColor1 marketDynamics darkBgColor2{
lightTextColor marketId
currencyPaymentInterfaces { startPrice
userDepositEnable userDirectDepositEnabledamount24h
id lastPrice
type lowPrice
paymentInterface { highPrice
id }
title base_currency {
logoUrl id
subtitle name
} icon_url
currency { balance
id precision
icon_url advancedTradingBalance
} }userBalanceEnable
withdrawPaymentInterfaces { }
type quote_currency {
paymentInterface { id
id name
title icon_url
logoUrl balance
subtitle precision
} advancedTradingBalance
currency { userBalanceEnable
id }
name rate
icon_urlminBaseCurrencyAmount
}minQuoteCurrencyAmount
beneficiariescommission_currency
{ buy_commission
id buy_min_commission
data buy_max_commission
description sell_commission
} sell_min_commission
minWithdrawAmount sell_max_commission
maxWithdrawAmount buy_commission
withdrawFee buy_max_commission
minWithdrawFee buy_min_commission
maxWithdrawFee sell_commission
maxWithdrawAmount24h sell_max_commission
maxWithdrawAmount72h sell_min_commission
withdrawAmount24h enable_custodial_exchange
withdrawAmount72h enabled
} swapBaseToQuotePricePrecision
markets { swapQuoteToBasePricePrecision
id enable_trading
base_currency { trading_min_amount
id trading_price_precision
name
trading_amount_precision
}
icon_url }
}
} |
|
Expand |
---|
title | Get deposit payment interface for selected wallet |
---|
|
Code Block |
---|
query GetDepositWalletPaymentInterface($id: String!) {
balance currency(id: $id) {
currencyPaymentInterfaces {
precision userDepositEnable
advancedTradingBalance userDirectDepositEnabled
enable
userBalanceEnable id
} minDirectDepositAmount
quote_currency {type
paymentInterface {
id id
name title
icon_url logoUrl
balancesubtitle
}
precision currency {
advancedTradingBalance id
userBalanceEnable
icon_url
}
}
rate
}
} |
|
Expand |
---|
Get withdraw payment interface for selected wallet
Code Block |
---|
query GetWithdrawWalletPaymentInterface($id: String!) {
currency(id: $id) {
minBaseCurrencyAmount withdrawPaymentInterfaces {
minQuoteCurrencyAmount type
commission_currency paymentInterface {
buy_commission id
buy_min_commission title
buy_max_commission logoUrl
sell_commission subtitle
sell_min_commission}
currency {
sell_max_commission id
buy_commission name
buy_max_commission buy_min_commissionicon_url
}
sell_commission recipients {
sell_max_commission sell_min_commissionid
data
enable_custodial_exchange description
enabled }
swapBaseToQuotePricePrecision recipientSchema
swapQuoteToBasePricePrecision minWithdrawAmount
maxWithdrawAmount
enable_trading withdrawFee
trading_min_amount minWithdrawFee
trading_price_precision maxWithdrawFee
trading_amount_precisionmaxWithdrawAmount24h
}withdrawAmount24h
}
}
} |
|
Expand |
---|
title | Wallet Kline | Get currency for staking |
---|
|
|
Expand |
---|
Code Block |
---|
query WalletHistoryKline(
$marketGetStakingCurrency($id: String!) $interval: String!{
$timeFrom: Int!
$timeTo: Int!
stakingCurrency(id: $id) {
kline( id
market: $market staking_enabled
interval: $intervalstaking_period
timeFrom:staking_apr
$timeFrom last_staking_calc
timeTo: $timeTo )next_staking_calc
{ next_reward_amount
close locked_balance
low highactive_balance
timestampmin_staking_amount
volumeisUnstakingProcess
}
} |
|
Expand |
---|
title | Get User ProfileWallet Kline |
---|
|
Code Block |
---|
query GetUpdateUser($id:String) {WalletHistoryKline(
user(id$market: $id)String!
{ $interval: String!
$timeFrom: Int!
id $timeTo: Int!
) {
kline(
email enabled2famarket: $market
interval: $interval
role timeFrom: $timeFrom
timeTo: email_verified$timeTo
) {
phone_verifiedclose
low
profile_verified high
timestamp
documents{ volume
}
} |
|
Expand |
---|
|
Code Block |
---|
query GetUpdateUser($id: String) {
doc_type,
user(id: $id) {
id
email
doc_number, enabled2fa
role
docemail_expire,verified
phone_verified
profile_verified
url documents {
}, doc_type
state
doc_number
tokendoc_expire
url
labels { }
state
token
key labels {
key
value value
scope
}
} createdAt
updatedAt
createdAt phones {
updatedAt id
phone
phones { verified
}
id profiles {
first_name
phone last_name
birth
verified address
} postcode
profiles {city
country
}
first_name }
} |
|
Expand |
---|
title | Get list referrals for user |
---|
|
Code Block |
---|
query GetRefUser {
refUser {
last_name id
refCode
referralsByLevel {
birth level
addresscount
}
}
} |
|
Expand |
---|
title | Get list api keys for user |
---|
|
Code Block |
---|
query GetApiKeys {
postcode apiKeys {
id
citydescription
scope
expires
country }token
}
} |
|
Mutations:
Expand |
---|
|
Code Block |
---|
mutation SignIn($email: String, $password: String, $code: String) {
login(email: $email, password: $password, code: $code) {
id
enabled2fa
token
profiles {
first_name
last_name
}
}
} |
|
Expand |
---|
|
Code Block |
---|
mutation SignUpWithGoogle(
$token: String!
$code: String
$referralId: String
) {
signWithGoogle(
token: $token
code: $code
referralId: $referralId
){
token
id
email
}
} |
|
...
Expand |
---|
|
Code Block |
---|
mutation AddUserDocument($doc_type:String!,$doc_number:String!,$file:Upload!,$doc_expire:String!)
{
addDocument(doc_type:$doc_type,doc_number:$doc_number,file:$file,doc_expire:$doc_expire_expire:$doc_expire)
} |
|
Expand |
---|
title | Move Funds From Advanced Trading |
---|
|
Code Block |
---|
mutation MoveFromAdvancedTradingFunds($currencyId: String!, $amount: Float!) {
moveFromAdvancedTrading(currencyId: $currencyId, amount: $amount)
} |
|
Expand |
---|
title | Move Funds From To Advanced Trading |
---|
|
Code Block |
---|
mutation MoveFromAdvancedTradingFundsMoveToAdvancedTradingFunds($currencyId: String!, $amount: Float!) {
moveFromAdvancedTradingmoveToAdvancedTrading(currencyId: $currencyId, amount: $amount)
}
|
|
Expand |
---|
title | Move Funds To Advanced Trading |
---|
| Code Block |
mutation MoveToAdvancedTradingFunds($currencyId: String!, $amount: Float!) {
moveToAdvancedTrading(currencyId: $currencyId, amount: $amount)Create NonCustodial Recipient |
|
Code Block |
---|
mutation CreateNonCustodialRecipient(
$paymentInterfaceId: String!
$currencyId: String!
$data: String!
$description: String!
) {
createRecipient(
paymentInterfaceId: $paymentInterfaceId
currencyId: $currencyId
data: $data
description: $description
) {
id
}
}
|
|
Expand |
---|
title | Create NonCustodial RecipientInitiate NonCustodial Exchange (External) |
---|
|
Code Block |
---|
mutation CreateNonCustodialRecipientInitNonCustodial(
$paymentInterfaceId$provider: String!
$currencyId$inPaymentInterfaceId: String!
$data$inCurrencyId: String!
$description$amount: Float!
$slippage: Float!
$beneficiaryId: String!
) {
createRecipientinitNonCustodialExternalExchange(
paymentInterfaceIdprovider: $paymentInterfaceId$provider
currencyIdinPaymentInterfaceId: $currencyId$inPaymentInterfaceId
datainCurrencyId: $data$inCurrencyId
descriptionamount: $amount
$description )slippage: {$slippage
idbeneficiaryId: $beneficiaryId
})
}
|
|
Expand |
---|
title | Initiate NonCustodial Exchange (ExternalClassic) |
---|
|
Code Block |
---|
mutation InitNonCustodialInitNonCustodialClassic(
$provider$inPaymentInterfaceId: String!
$inPaymentInterfaceId$inCurrencyId: String!
$amount: Float!
$inCurrencyId$beneficiaryId: String!
) {
initNonCustodialExchange(
inPaymentInterfaceId: $inPaymentInterfaceId
$amount inCurrencyId: $inCurrencyId
Float! $slippageamount: Float!$amount
beneficiaryId: $beneficiaryId:
String! ) {
address
initNonCustodialExternalExchange( encodedAddress
provider: $providerredirectUrl
}
inPaymentInterfaceId: $inPaymentInterfaceId} |
|
Expand |
---|
|
Code Block |
---|
mutation AskChangePassword($email: String!) {
inCurrencyIdaskChangePassword(email: $inCurrencyId
amount: $amount$email)
} |
|
Expand |
---|
|
Code Block |
---|
mutation RecoveryPassword($token: String!, $newPassword: String!) {
slippagerecoveryPassword(token: $slippage$token, newPassword: $newPassword)
} |
|
Expand |
---|
|
Code Block |
---|
mutation beneficiaryId: $beneficiaryIdCancelOrderAction($id: String!) {
cancelOrder(id: $id)
}
|
|
Expand |
---|
title | Initiate NonCustodial Exchange (Classic)Create Order |
---|
|
Code Block |
---|
mutation InitNonCustodialClassic(CreateOrder(
$market: String!
$inPaymentInterfaceId$side: String!
$inCurrencyId$type: String!
$amount$price: Float!
$beneficiaryId$amount: StringFloat!
) {
initNonCustodialExchange(openOrder(
market: $market
inPaymentInterfaceIdside: $inPaymentInterfaceId$side
inCurrencyIdtype: $inCurrencyId$type
amountprice: $amount$price
beneficiaryIdamount: $beneficiaryId$amount
) {
addressid
encodedAddressstatus
}
redirectUrl} |
|
Expand |
---|
|
Code Block |
---|
mutation Request2FA{
}request2FA
} |
|
Expand |
---|
title | Ask Change PasswordTurn On 2FA |
---|
|
Code Block |
---|
mutation AskChangePasswordTurnOn2FA($email$code: String!) {
askChangePasswordturnOn2FA(emailcode: $email$code)
} |
|
Expand |
---|
title | Recovery PasswordVerify Email |
---|
|
Code Block |
---|
mutation RecoveryPasswordVerifyEmailToken($token: String!, $newPassword$isFront: String!Boolean) {
recoveryPasswordverifyEmail(token: $token, newPasswordisFront: $newPassword$isFront)
} |
|
Expand |
---|
title | Cancel OrderVerify User Phone |
---|
|
Code Block |
---|
mutation CancelOrderAction($id: VerifyUserPhoneNumber($phone:String!,$code:String!) {
cancelOrder(id: $idverifyPhone(phone:$phone,code:$code)
}
|
|
Expand |
---|
title | Create OrderRecipient (used in withdrawal) |
---|
|
Code Block |
---|
mutation CreateOrdercreateRecipient($paymentInterfaceId:String!, $currencyId: String!, $market$data: String!, $side$description: String!) {
$type: String! createRecipient(
$price: Float $amount: Float! ) {paymentInterfaceId: $paymentInterfaceId,
openOrder( market: $market currencyId: $currencyId,
side: $side typedata: $type$data,
price: $price description: $description
amount: $amount ) {
id id
status }
} |
|
Expand |
---|
title | Request 2FACreate Withdrawal |
---|
|
Code Block |
---|
mutation Request2FA{ CreateWithdrawal(
$recipient_id: String
$amount: Float
request2FA } |
|
Expand |
---|
|
Code Block |
---|
mutation TurnOn2FA($code: String!
$includeFees: Boolean
) {
turnOn2FA(code: $code)
} |
|
Expand |
---|
|
Code Block |
---|
mutation VerifyEmailToken($token: String!, $isFront: Boolean) {
verifyEmail(token: $token, isFront: $isFrontuserWithdraw(
recipientId: $recipient_id
amount: $amount
code: $code
includeFees: $includeFees
)
} |
|
Expand |
---|
title | Verify User PhoneConfirmation Connect Wallet (WalletConnect functionality) |
---|
|
Code Block |
---|
mutation VerifyUserPhoneNumberConfirmationConnectWallet($phone$paymentInterfaceId: String!,$code$address: String!){
verifyPhone(phone:$phone,code:$code)
connectWallet_v1(
paymentInterfaceId: $paymentInterfaceId,
address: $address) {
id
}
} |
|
Expand |
---|
title | Create Recipient (used in withdrawal)Generate Deposit Address |
---|
|
Code Block |
---|
mutation createRecipient($paymentInterfaceId:String!,GenerateDepositAddress(
$currencyId: String!,
$data$paymentInterfaceId: String!,
$description$isDonation: StringBoolean!
) {
generateWallet(
createRecipient( currencyId: $currencyId
paymentInterfaceId: $paymentInterfaceId,
isDonation: $isDonation
) {
id
type
paymentInterface {
id
currencyId: $currencyId, title
data: $data,logoUrl
subtitle
description: $description }
) { currency {
id
}
} |
|
Expand |
---|
|
Code Block |
---|
mutation CreateWithdrawal(
$recipient_id: String
$amount: Float
$code: String
$includeFees: Boolean
) {
userWithdraw( icon_url
}
deposit {
address
encodedAddress
recipientId: $recipient_id redirectUrl
amount: $amount depositCommission
code: $code minDepositCommission
includeFees: $includeFees )
} |
|
Expand |
---|
title | Confirmation Connect Wallet (WalletConnect functionality) |
---|
|
Code Block |
---|
mutation ConfirmationConnectWallet($paymentInterfaceId: String,$address: String!){
connectWallet_v1(
maxDepositCommission
minDepositAmount
paymentInterfaceId: $paymentInterfaceId, maxDepositAmount
address: $address) {}
}
id} |
|
Expand |
---|
title | get Url WalletConnect |
---|
|
Code Block |
---|
mutation getUrlWalletConnect{
}getWalletConnectURI_v1
} |
|
Expand |
---|
title | Generate Make Deposit AddressRequest |
---|
|
Code Block |
---|
mutation GenerateDepositAddressSendDepositRequest(
$currencyId$paymentInterfaceId: String!,$address: String!
$paymentInterfaceId,$currencyId: String!
$isDonation,$amount: BooleanFloat!
) {
generateWallet( userDirectDeposit(
currencyId: $currencyId paymentInterfaceId: $paymentInterfaceId
isDonation: $isDonation$paymentInterfaceId,
) { id
type
paymentInterface {
id: DIRECT_DEPOSIT,
title address: $address,
logoUrl currencyId: $currencyId,
subtitle } amount:$amount
currency { )
} |
|
Expand |
---|
title | Generate fiat address for select wallet |
---|
|
Code Block |
---|
mutation FiatGenerateWallet(
$currencyId: idString!
$paymentInterfaceId: String!
icon_url
$isDonation: Boolean!
) {
} generateWallet(
deposit {currencyId: $currencyId
paymentInterfaceId: address$paymentInterfaceId
isDonation: $isDonation
encodedAddress ) {
redirectUrl deposit {
depositCommission address
minDepositCommission encodedAddress
maxDepositCommission}
minDepositAmount
maxDepositAmount
}
}}
} |
|
Expand |
---|
title | Create stake operation for wallet |
---|
|
Code Block |
---|
mutation CreateCurrencyState($currencyId: String!, $amount: Float!) {
createStake(currencyId: $currencyId, amount: $amount)
} |
|
Expand |
---|
title | get Url WalletConnectCancel stake operation for wallet |
---|
|
Code Block |
---|
mutation getUrlWalletConnect{CancelCurrencyState($currencyId: String!) {
getWalletConnectURI_v1cancelStake(currencyId: $currencyId)
} |
|
Expand |
---|
title | Make Deposit RequestCreate api key for user |
---|
|
Code Block |
---|
mutation SendDepositRequest($paymentInterfaceIdCreateUserApiKey(
$description: String
$expires: Int!
$scope: String!,$address: String!,$currencyId
$otp_code: String!,$amount:
Float!) {
createApiKey(
userDirectDeposit( description: $description
paymentInterfaceId:$paymentInterfaceId,expires: $expires
scope: $scope
typeotp_code: DIRECT_DEPOSIT,
$otp_code
){
id
description
scope
address: $address, expires
token
currencyId: $currencyId,
amount:$amount
}
} |
|
Expand |
---|
title | Delete api key for user |
---|
|
Code Block |
---|
mutation DeleteApiKeyAction($id: String! $otp_code: String) {
deleteApiKey(id: $id otp_code: $otp_code)
} |
|
Subscriptions:
Expand |
---|
|
Code Block |
---|
subscription PublicTradesSubscription($market: String!){
publicTrades(market: $market) {
price
amount
createdAt
}
} |
|
...
Expand |
---|
|
Code Block |
---|
subscription GetPrivateTrades($market: String,$token: String!) {
privateTrades(
market: $market,
token: $token
){
id
amount
price
side
role
}
}
|
|
Expand |
---|
|
Code Block |
---|
subscription MarketRate($market: String!){,
marketRate(markettoken: $market){$token
){
id
market, amount
rate,price
side
ts role
}
}
} |
|
Expand |
---|
title | User BalanceMarket Rate |
---|
|
Code Block |
---|
subscription GetUserBalanceUpdatedMarketRate($token$market: String!){
{ userBalanceUpdatedmarketRate(tokenmarket:$token $market){
{ currencyIdmarket,
balance rate,
advancedTradingLockedBalance advancedTradingBalance ts
ts }
} |
|
Expand |
---|
title | getDetailsConnectionToWallet (WalletConnect functionality)User balance for all wallets |
---|
|
Code Block |
---|
subscription getDetailsConnectionToWalletUserAllBalance($token: String!) {
walletToConnect_v1userAllBalance(token: $token) {
currencyId
address balance
chainId lockedBalance
advancedTradingBalance
action advancedTradingLockedBalance
paymentInterface{ withdrawLockedBalance
stakingLockedBalance
id activeStakingBalance
ts
} }
} |
|