...
(Valid for UserApp version 1.45.03)
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
} |
|
...
title | Get NonCustodial Currencies |
---|
...
You can know more about GraphQL in Marionette in this video
Queries:
Expand |
---|
title | Get KYC Document Types |
---|
|
Code Block |
---|
query KYCDocumentTypes {
KYCDocumentTypes
} |
|
Expand |
---|
title | Get NonCustodial Currencies |
---|
|
Code Block |
---|
query GetNonCustodialCurrencies {
currencies {
id
name
precision
icon_url
markets(nonCustodialExchangeEnabled: true) {
id
rate
commission_currency
base_currency_id
minBaseCurrencyAmount
base_currency {
id
name
precision
icon_url
userBalanceEnable
currencyPaymentInterfaces(userWithdrawEnabled: true) {
type
paymentInterface {
id
title
subtitle
logoUrl
}
}
}
quote_currency {
id
name
precision
icon_url
userBalanceEnable
currencyPaymentInterfaces(userWithdrawEnabled: true) {
type
paymentInterface {
id
title
subtitle
logoUrl
}
}
}
quote_currency_id
minQuoteCurrencyAmount
rate
buy_commission
buy_max_commission
buy_min_commission
sell_commission
sell_max_commission
sell_min_commission
enable_non_custodial_exchange
swapBaseToQuotePricePrecision
swapQuoteToBasePricePrecision
}
currencyPaymentInterfaces(userDepositEnabled: true) {
paymentInterfaceId
type
paymentInterface {
id
title
logoUrl
subtitle
blockchain {
id
name
description
explorer_address
chainId
wallet
}
}
userDepositEnable
userWithdrawEnable
}
}
} |
|
...
Expand |
---|
|
Code Block |
---|
query GetMarkets {
markets {
id
rate
enable_trading
quote_currency {
id
precision
icon_url
name
userBalanceEnable
}
base_currency {
id
precision
icon_url
name
userBalanceEnable
}
change24
isFavorite
trading_min_price
trading_max_price
trading_min_amount
trading_price_precision
trading_amount_precision
trading_position
marketDynamics{
marketId
startPrice
amount24h
lastPrice
lowPrice
highPrice
}
}
} |
|
...
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(query GetUserHistory(
$currencyId: String
$limit: Int
$page: Int
$type: String
$from: String
$to: String
) {
history(
page: $page
limit: $limit
currencyId: $currencyId
type: "move_to_advanced|move_from_advanced|custodial_withdrawal|custodial_deposit|exchange|trading"$type
pagefrom: 1$from
limitto: 5000$to
) {
result {
id
createdAt
createdAt status
status initiator_type
initiator_typecurrency {
id
initiator_currency { precision
id icon_url
precision
currencyPaymentInterfaces icon_url{
type
precision paymentInterfaceId
}
currencyPaymentInterfaces { }
initiator_payment_interface {
type title
subtitle
paymentInterfaceId }
initiator_payment_interface_id
} initiator_amount
} initiator_explorer_transaction
initiator_payment_interfacetxid
result_txid
{ initiator_fee
title result_currency {
subtitleid
}precision
initiator_payment_interface_idicon_url
position
initiator_amount }
initiatorresult_payment_explorerinterface_transactionid
result_amount
initiator_txid }
}
} |
|
Expand |
---|
|
Code Block |
---|
query result_txid
GetUserWallets($id: String) {
user(id: $id) {
initiator_fee currencies {
result_currency {id
name
id icon_url
position
precision precision
icon_url enabled
lightBgColor1
position lightBgColor2
darkBgColor1
} darkBgColor2
result_payment_interface_id lightTextColor
resultstaking_amountenabled
} isUnstakingProcess
} } |
|
Expand |
---|
|
Code Block |
---|
query GetUserWallets($id: String) { isFavorite
user(id: $id) { markets currencies {
id id
name icon_url marketDynamics {
position marketId
precision enabled startPrice
balance advancedTradingBalanceamount24h
advancedTradingLockedBalance lastPrice
lightBgColor1 lightBgColor2 lowPrice
darkBgColor1 highPrice
darkBgColor2 lightTextColor}
currencyPaymentInterfaces { base_currency {
userDepositEnable id
userDirectDepositEnabled name
id icon_url
type paymentInterface {balance
idprecision
titleadvancedTradingBalance
logoUrluserBalanceEnable
}
subtitle quote_currency {
} currency {id
idname
icon_url
balance
} }precision
withdrawPaymentInterfaces { advancedTradingBalance
type userBalanceEnable
paymentInterface { }
id rate
titleisFavorite
minBaseCurrencyAmount
logoUrl minQuoteCurrencyAmount
subtitle commission_currency
} buy_commission
currency { buy_min_commission
id buy_max_commission
namesell_commission
icon_urlsell_min_commission
}sell_max_commission
beneficiariesbuy_commission
{ buy_max_commission
id buy_min_commission
data sell_commission
description sell_max_commission
} sell_min_commission
minWithdrawAmount enable_custodial_exchange
maxWithdrawAmount enabled
withdrawFee swapBaseToQuotePricePrecision
minWithdrawFee swapQuoteToBasePricePrecision
maxWithdrawFee enable_trading
maxWithdrawAmount24h trading_min_amount
maxWithdrawAmount72h trading_price_precision
withdrawAmount24h trading_amount_precision
withdrawAmount72h
}
}
}
} |
|
Expand |
---|
title | Get deposit payment interface for selected wallet |
---|
|
Code Block |
---|
query marketsGetDepositWalletPaymentInterface($id: String!) {
currency(id: $id) {
id currencyPaymentInterfaces {
base_currencyuserDepositEnable
{ userDirectDepositEnabled
id enable
id
name minDirectDepositAmount
icon_url type
paymentInterface {
balance id
precision title
advancedTradingBalance logoUrl
userBalanceEnable subtitle
}
quote_currency {
id
id icon_url
name }
}
icon_url
balance
}
} |
|
Expand |
---|
title | Get withdraw payment interface for selected wallet |
---|
|
Code Block |
---|
query GetWithdrawWalletPaymentInterface($id: String!) {
currency(id: $id) {
withdrawPaymentInterfaces {
type
| precisionadvancedTradingBalanceuserBalanceEnable}rateminBaseCurrencyAmountminQuoteCurrencyAmountcommission_currencybuy_commissionbuy_min_commissionbuy_max_commissionsell_commissionsell_min_commissionsell_max_commissionbuy_commissionbuy_max_commission recipientSchema
minWithdrawAmount
| buy_min_commissionsell_commissionsell_max_commissionsell_min_commissionmaxWithdrawFee
maxWithdrawAmount24h
| enable_custodial_exchangeenabled |
Expand |
---|
title | Get currency for staking |
---|
|
Code Block |
---|
query GetStakingCurrency($id: String!) {
swapBaseToQuotePricePrecision stakingCurrency(id: $id) {
id
swapQuoteToBasePricePrecision staking_enabled
enablestaking_tradingperiod
staking_apr
tradinglast_minstaking_amountcalc
next_staking_calc
tradingnext_pricereward_precisionamount
locked_balance
trading_amount_precision active_balance
}min_staking_amount
}isUnstakingProcess
}
} |
|
Expand |
---|
|
Code Block |
---|
query WalletHistoryKline(
$market: String!
$interval: String!
$timeFrom: Int!
$timeTo: Int!
) {
kline(
market: $market
interval: $interval
timeFrom: $timeFrom
timeTo: $timeTo
) {
close
low
high
timestamp
volume
}
} |
|
Expand |
---|
|
Code Block |
---|
query GetUpdateUser($id: String) {
user(id: $id) {
id
email
enabled2fa
role
email_verified
timestampphone_verified
volumeprofile_verified
} } |
|
Expand |
---|
|
Code Block |
---|
query GetUpdateUser($id:String) documents {
user(id: $id) {doc_type
doc_number
id doc_expire
email url
}
enabled2fa state
roletoken
labels {
email_verified key
phone_verified value
profile_verifiedscope
}
documents{ createdAt
updatedAt
phones {
doc_type, id
doc_number,phone
verified
}
doc_expire, profiles {
url first_name
last_name
}, birth
state address
token postcode
labelscity
{ country
}
key }
} |
|
Expand |
---|
title | Get list referrals for user |
---|
|
Code Block |
---|
query GetRefUser {
refUser {
valueid
refCode
referralsByLevel {
scope level
} count
}
createdAt }
} |
|
Expand |
---|
title | Get list api keys for user |
---|
|
Code Block |
---|
query GetApiKeys {
apiKeys updatedAt{
id
phones {description
scope
expires
id token
}
} |
|
Mutations:
Expand |
---|
|
Code Block |
---|
mutation SignIn($email: String, $password: String, $code: String) phone{
login(email: $email, password: $password, code: $code) {
verified id
enabled2fa
} token
profiles {
first_name
last_name
}
}
} |
|
Expand |
---|
|
Code Block |
---|
mutation SignUpWithGoogle(
birth$token: String!
$code: String
$referralId: String
) {
address signWithGoogle(
postcode token: $token
code: $code
city referralId: $referralId
){
token
country id
email
} }
} |
|
...
Expand |
---|
|
Code Block |
---|
mutation SignInSignUp($email: String!, $password: String!, $referralId: String, $code$locale: String){
{ loginsignup(email: $email, password: $password, codereferralId: $code) {
id$referralId, locale: $locale )
} |
|
Expand |
---|
|
Code Block |
---|
mutation Logout {
enabled2fa
token
profiles {
first_name
logout
} |
|
Expand |
---|
|
Code Block |
---|
mutation ChangePassword($old_password: String!, $new_password: String!) {
last_name
}
}changePassword(old_password: $old_password, new_password: $new_password)
} |
|
Expand |
---|
title | Sign With GoogleUser Exchange |
---|
|
Code Block |
---|
mutation SignUpWithGoogleUserExchange(
$token $currencyFrom: String!,
$referralId$currencyTo: String!,
$amount: Float!,
){
{ signWithGoogleuserExchange(
tokenfromCurrencyId: $token
$currencyFrom,
toCurrencyId: $currencyTo,
referralId: $referralId ){ amount: $amount
token )
id
} |
|
Expand |
---|
|
Code Block |
---|
mutation AddPhone($phone: String!) {
email }addPhone(phone: $phone)
} |
|
Expand |
---|
title | Sign UpAdd User Profile |
---|
|
Code Block |
---|
mutation SignUpAddProfile($email$first_name: String!, $password$last_name: String!,$birth: String!, $referralId$address: String!,$city: String!, $locale$country: String!,$postcode: String!) {
addProfile(first_name: $first_name, last_name: signup(email$last_name, birth: $email$birth,address: password$address,city: $password$city, referralIdcountry: $referralId$country, localepostcode: $locale $postcode)
} |
|
Expand |
---|
title | LogoutResend Email Confirmation |
---|
|
Code Block |
---|
mutation LogoutResendEmailConfirm($email:String!)
{
logoutresendEmailConfirm(email:$email)
} |
|
Expand |
---|
title | Change PasswordAdd User Document |
---|
|
Code Block |
---|
mutation ChangePassword($old_password: String!, $new_password: AddUserDocument($doc_type:String!,$doc_number:String!,$file:Upload!,$doc_expire:String!)
{
changePassword(old_password: $old_password, new_password: $new_passwordaddDocument(doc_type:$doc_type,doc_number:$doc_number,file:$file,doc_expire:$doc_expire)
} |
|
Expand |
---|
title | User ExchangeMove Funds From Advanced Trading |
---|
|
Code Block |
---|
mutation UserExchange(
$currencyFromMoveFromAdvancedTradingFunds($currencyId: String!,
$currencyTo: String!,
$amount: Float!,) ){
userExchange(
fromCurrencyId: $currencyFrom,
toCurrencyId: $currencyTo,
moveFromAdvancedTrading(currencyId: $currencyId, amount: $amount
)
} |
|
Expand |
---|
title | Add User PhoneMove Funds To Advanced Trading |
---|
|
Code Block |
---|
mutation AddPhoneMoveToAdvancedTradingFunds($phone$currencyId: String!, $amount: Float!) {
moveToAdvancedTrading(currencyId: $currencyId, addPhone(phoneamount: $phone$amount)
}
|
|
Expand |
---|
title | Add User ProfileCreate NonCustodial Recipient |
---|
|
Code Block |
---|
mutation AddProfile($first_nameCreateNonCustodialRecipient(
$paymentInterfaceId: String!,$last_name
$currencyId: String!,$birth
$data: String!,$address
$description: String!,$city: String!,$country: String!,$postcode: String!) {
addProfile(first_name: $first_name, last_name: $last_name, birth: $birth,address: $address,city: $city,country: $country, postcode: $postcode)
} |
|
Expand |
---|
title | Resend Email Confirmation |
---|
|
Code Block |
---|
mutation ResendEmailConfirm($email:String!)
{
resendEmailConfirm(email:$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)
} |
|
Expand |
---|
title | Move Funds From Advanced Trading |
---|
|
Code Block |
---|
mutation MoveFromAdvancedTradingFunds($currencyId: String!, $amount: Float!) {
moveFromAdvancedTrading(currencyId: $currencyId, amount: $amount)
} |
|
Expand |
---|
title | Move Funds To Advanced Trading |
---|
|
Code Block |
---|
mutation MoveToAdvancedTradingFunds($currencyId: String!, $amount: Float!) {
moveToAdvancedTrading(currencyId: $currencyId, amount: $amount
) {
createRecipient(
paymentInterfaceId: $paymentInterfaceId
currencyId: $currencyId
data: $data
description: $description
) {
id
}
}
|
|
Expand |
---|
title | Initiate NonCustodial Exchange (External) |
---|
|
Code Block |
---|
mutation InitNonCustodial(
$provider: String!
$inPaymentInterfaceId: String!
$inCurrencyId: String!
$amount: Float!
$slippage: Float!
$beneficiaryId: String!
) {
initNonCustodialExternalExchange(
provider: $provider
inPaymentInterfaceId: $inPaymentInterfaceId
inCurrencyId: $inCurrencyId
amount: $amount
slippage: $slippage
beneficiaryId: $beneficiaryId
)
}
|
|
Expand |
---|
title | Create NonCustodial RecipientInitiate NonCustodial Exchange (Classic) |
---|
|
Code Block |
---|
mutation CreateNonCustodialRecipientInitNonCustodialClassic(
$paymentInterfaceId$inPaymentInterfaceId: String!
$currencyId$inCurrencyId: String!
$data$amount: StringFloat!
$description$beneficiaryId: String!
) {
createRecipientinitNonCustodialExchange(
paymentInterfaceIdinPaymentInterfaceId: $paymentInterfaceId$inPaymentInterfaceId
currencyIdinCurrencyId: $currencyId$inCurrencyId
dataamount: $data$amount
descriptionbeneficiaryId: $description$beneficiaryId
) {
address
encodedAddress
idredirectUrl
}
}
|
|
Expand |
---|
title | Initiate NonCustodial Exchange (External)Ask Change Password |
---|
|
Code Block |
---|
mutation InitNonCustodial(
$provider: String!
$inPaymentInterfaceId: String!
$inCurrencyId: String!
$amount: Float!
$slippage: Float!
$beneficiaryId AskChangePassword($email: String!
) {
initNonCustodialExternalExchange( askChangePassword(email: $email)
provider: $provider
inPaymentInterfaceId: $inPaymentInterfaceId} |
|
Expand |
---|
|
Code Block |
---|
mutation RecoveryPassword($token: String!, $newPassword: String!) {
inCurrencyIdrecoveryPassword(token: $inCurrencyId
amount$token, newPassword: $amount
slippage: $slippage
beneficiaryId: $beneficiaryId
$newPassword)
} |
|
Expand |
---|
|
Code Block |
---|
mutation CancelOrderAction($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
side: $side
inPaymentInterfaceId type: $inPaymentInterfaceId$type
inCurrencyIdprice: $inCurrencyId$price
amount: $amount
) {
id
status
}
} |
|
Expand |
---|
|
Code Block |
---|
mutation Request2FA{
beneficiaryId: $beneficiaryId
request2FA
} |
|
Expand |
---|
|
Code Block |
---|
mutation TurnOn2FA($code: String!) {
turnOn2FA(code: address
encodedAddress
redirectUrl
}$code)
} |
|
Expand |
---|
|
Code Block |
---|
mutation VerifyEmailToken($token: String!, $isFront: Boolean) {
verifyEmail(token: $token, isFront: $isFront)
} |
|
Expand |
---|
title | Ask Change PasswordVerify User Phone |
---|
|
Code Block |
---|
mutation AskChangePassword($email: VerifyUserPhoneNumber($phone:String!,$code:String!) {
askChangePassword(email: $emailverifyPhone(phone:$phone,code:$code)
} |
|
Expand |
---|
title | Recovery PasswordCreate Recipient (used in withdrawal) |
---|
|
Code Block |
---|
mutation RecoveryPassword($tokencreateRecipient($paymentInterfaceId:String!, $currencyId: String!, $data: String!, $newPassword$description: String!) {
recoveryPassword(tokencreateRecipient(
paymentInterfaceId: $token$paymentInterfaceId,
newPassword: $newPassword) } |
|
Expand |
---|
|
Code Block |
---|
mutation CancelOrderAction($id: String!) { cancelOrder(idcurrencyId: $id)
}
|
|
Expand |
---|
|
Code Block |
---|
mutation CreateOrder($currencyId,
$market: String! $sidedata: $data,
String! $type: String! $pricedescription: Float$description
$amount: Float! ) {
openOrder( market: $marketid
side: $side
}
} |
|
Expand |
---|
|
Code Block |
---|
mutation CreateWithdrawal(
type$recipient_id: $typeString
$amount: Float
price: $price $code: String
amount$includeFees: $amountBoolean
) {
userWithdraw(
id statusrecipientId: $recipient_id
}
} |
|
Expand |
---|
|
Code Block |
---|
mutation Request2FA{
amount: $amount
request2FA } |
|
Expand |
---|
|
Code Block |
---|
mutation TurnOn2FA($code: String!) {code: $code
turnOn2FA(code: $codeincludeFees: $includeFees
)
} |
|
Expand |
---|
title | Verify EmailConfirmation Connect Wallet (WalletConnect functionality) |
---|
|
Code Block |
---|
mutation VerifyEmailTokenConfirmationConnectWallet($token$paymentInterfaceId: String!, $isFront$address: BooleanString!) {
verifyEmail(tokenconnectWallet_v1(
paymentInterfaceId: $token$paymentInterfaceId,
isFront: $isFront) } |
|
Expand |
---|
|
Code Block |
---|
mutation VerifyUserPhoneNumber($phone:String!,$code:String!){
verifyPhone(phone:$phone,code:$code) 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,
$paymentInterfaceId
isDonation: $isDonation
) {
id
type
paymentInterface {
currencyId:id
$currencyId, title
data: $data, logoUrl
description: $descriptionsubtitle
)}
{ currency {
id id
} } |
|
Expand |
---|
|
Code Block |
---|
mutation CreateWithdrawal( $recipienticon_id:url
String $amount: Float}
$code: String deposit {
$includeFees: Boolean ) { userWithdraw(address
recipientId: $recipient_id encodedAddress
amount: $amount redirectUrl
code: $code depositCommission
includeFees: $includeFees )
} |
|
Expand |
---|
title | Confirmation Connect Wallet (WalletConnect functionality) |
---|
|
Code Block |
---|
mutation ConfirmationConnectWallet($paymentInterfaceId: String,$address: String!){
connectWallet_v1( minDepositCommission
maxDepositCommission
paymentInterfaceId: $paymentInterfaceId,minDepositAmount
address: $address) {maxDepositAmount
id}
}
} |
|
Expand |
---|
title | Generate Deposit Address | get Url WalletConnect |
---|
|
Code Block |
---|
mutation getUrlWalletConnect{
getWalletConnectURI_v1
} |
|
Expand |
---|
title | Make Deposit Request |
---|
|
Code Block |
---|
mutation GenerateDepositAddress(SendDepositRequest($paymentInterfaceId: String!,$address: String!,$currencyId: String!,$amount: Float!){
$currencyId: String!userDirectDeposit(
$paymentInterfaceId: String! $isDonation: Boolean!
) { paymentInterfaceId:$paymentInterfaceId,
generateWallet( currencyIdtype: $currencyIdDIRECT_DEPOSIT,
paymentInterfaceId: $paymentInterfaceId address: $address,
isDonation: $isDonation ) { currencyId: $currencyId,
id type amount:$amount
paymentInterface { )
} |
|
Expand |
---|
title | Generate fiat address for selected wallet |
---|
|
Code Block |
---|
mutation FiatGenerateWallet(
id$currencyId: String!
$paymentInterfaceId: String!
title $isDonation: Boolean!
) {
logoUrlgenerateWallet(
currencyId: subtitle$currencyId
}paymentInterfaceId: $paymentInterfaceId
currency {isDonation: $isDonation
) {
id deposit {
icon_url address
} deposit {encodedAddress
}
address }
} |
|
Expand |
---|
title | Enter Stake/ Top-up Stake Currency |
---|
|
Code Block |
---|
mutation CreateCurrencyState($currencyId: String!, $amount: Float!) encodedAddress{
createStake(currencyId: $currencyId, amount: redirectUrl
$amount)
} |
|
Expand |
---|
|
Code Block |
---|
mutation CancelCurrencyState($currencyId: String!) {
depositCommission
cancelStake(currencyId: $currencyId)
} |
|
Expand |
---|
title | Create API key for user |
---|
|
Code Block |
---|
mutation CreateUserApiKey(
$description: String
minDepositCommission $expires: Int!
$scope: maxDepositCommissionString
$otp_code: String
) {
minDepositAmount createApiKey(
maxDepositAmountdescription: $description
} expires: $expires
} } |
|
Expand |
---|
title | get Url WalletConnect |
---|
|
Code Block |
---|
mutation getUrlWalletConnect{ scope: getWalletConnectURI_v1
} |
|
Expand |
---|
title | Make Deposit Request |
---|
|
Code Block |
---|
mutation SendDepositRequest($paymentInterfaceId: String!,$address: String!,$currencyId: String!,$amount: Float!){
userDirectDeposit(
$scope
otp_code: $otp_code
){
id
description
paymentInterfaceId:$paymentInterfaceId, scope
type: DIRECT_DEPOSIT,expires
token
}
address: $address,
currencyId: $currencyId,
amount:$amount
} |
|
Expand |
---|
title | Delete user's API key |
---|
|
Code Block |
---|
mutation DeleteApiKeyAction($id: String! $otp_code: String) {
deleteApiKey(id: $id otp_code: $otp_code)
} |
|
Expand |
---|
|
Code Block |
---|
mutation CancelAllOrders($market: String!) {
cancelAllOrders(market: $market)
} |
|
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){
{ currencyId market,
balance advancedTradingLockedBalancerate,
advancedTradingBalance ts
ts }
} |
|
Expand |
---|
title | getDetailsConnectionToWallet (WalletConnect functionality)User's balances 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
} }
} |
|