Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(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
titleGet KYC Document Types
Code Block
query KYCDocumentTypes {
    KYCDocumentTypes
}

...

titleGet NonCustodial Currencies

...

You can know more about GraphQL in Marionette in this video

Queries:

Expand
titleGet KYC Document Types
Code Block
query KYCDocumentTypes {
    KYCDocumentTypes
}
Expand
titleGet 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
titleGet Markets
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
titleUser Orders
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
titleUser Trades History
Code Block
query GetUserTradesHistory($market: String) {
  userTrades(market: $market) {
    result {
      price
      amount
      createdAt
    }
  }
}

...

Expand
titleGet 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
titleGet User History
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
titleGet User Wallets
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
titleGet User Wallets
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
titleGet 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
titleGet withdraw payment interface for selected wallet

Code Block
query GetWithdrawWalletPaymentInterface($id: String!) {
  currency(id: $id) {
    withdrawPaymentInterfaces {
      type

precision

      paymentInterface {
   

advancedTradingBalance

     id
     

userBalanceEnable

   title
     

}

   logoUrl
     

rate

   subtitle
     

minBaseCurrencyAmount

 }
      currency 

minQuoteCurrencyAmount

{
        

commission_currency

id
        

buy_commission

name
        

buy_min_commission

icon_url
      }
  

buy_max_commission

    recipients {
   

sell_commission

     id
   

sell_min_commission

     data
   

sell_max_commission

     description
   

buy_commission

   }
     

buy_max_commission

 recipientSchema
      minWithdrawAmount

buy_min_commission

      maxWithdrawAmount
  

sell_commission

    withdrawFee
    

sell_max_commission

  minWithdrawFee
      

sell_min_commission

maxWithdrawFee
      maxWithdrawAmount24h
 

enable_custodial_exchange

     withdrawAmount24h
   

enabled

 }
  }
}

Expand
titleGet 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
titleWallet Kline
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
titleGet User Profile
Code Block
query GetUpdateUser($id: String) {
  user(id: $id) {
    id
    email
    enabled2fa
    role
    email_verified
    timestampphone_verified
    volumeprofile_verified
  } }
Expand
titleGet User Profile
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
titleGet list referrals for user
Code Block
query GetRefUser {
  refUser {
    valueid
    refCode
    referralsByLevel {
 scope     level
   }   count
    }
createdAt  }
}
Expand
titleGet list api keys for user
Code Block
query GetApiKeys {
  apiKeys updatedAt{
    id
   phones {description
    scope
    expires
  id  token
  }
}

Mutations:

Expand
titleSign In
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
titleSign With Google
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
titleSign InUp
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
titleLogout
Code Block
mutation Logout {
    enabled2fa
    token
    profiles {
      first_name
 logout
}
Expand
titleChange Password
Code Block
mutation ChangePassword($old_password: String!, $new_password: String!) {
    last_name
    }
  }changePassword(old_password: $old_password, new_password: $new_password)
}

Expand
titleSign 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
titleAdd User Phone
Code Block
mutation AddPhone($phone: String!) {
  email   }addPhone(phone: $phone)
}
Expand
titleSign 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
titleLogoutResend Email Confirmation
Code Block
mutation LogoutResendEmailConfirm($email:String!)
{
    logoutresendEmailConfirm(email:$email)
}
Expand
titleChange 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
titleUser 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
titleAdd User PhoneMove Funds To Advanced Trading
Code Block
mutation AddPhoneMoveToAdvancedTradingFunds($phone$currencyId: String!, $amount: Float!) {
  moveToAdvancedTrading(currencyId: $currencyId, addPhone(phoneamount: $phone$amount)
}
Expand
titleAdd 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
titleResend Email Confirmation
Code Block
mutation ResendEmailConfirm($email:String!)
{
  resendEmailConfirm(email:$email)
}
Expand
titleAdd User Document
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
titleMove Funds From Advanced Trading
Code Block
mutation MoveFromAdvancedTradingFunds($currencyId: String!, $amount: Float!) {
  moveFromAdvancedTrading(currencyId: $currencyId, amount: $amount)
}
Expand
titleMove 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
titleInitiate 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
titleCreate 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
titleInitiate 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
titleRecovery Password
Code Block
mutation RecoveryPassword($token: String!, $newPassword: String!) {
     inCurrencyIdrecoveryPassword(token: $inCurrencyId
    amount$token, newPassword: $amount
    slippage: $slippage
    beneficiaryId: $beneficiaryId
  $newPassword)
}
Expand
titleCancel Order
Code Block
mutation CancelOrderAction($id: String!) {
  cancelOrder(id: $id)
}

Expand
titleInitiate 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
titleRequest 2FA
Code Block
mutation Request2FA{
    beneficiaryId: $beneficiaryId
  request2FA
}

Expand
titleTurn On 2FA
Code Block
mutation TurnOn2FA($code: String!) {
  turnOn2FA(code:  address
    encodedAddress
    redirectUrl
  }$code)
}

Expand
titleVerify Email
Code Block
mutation VerifyEmailToken($token: String!, $isFront: Boolean) {
  verifyEmail(token: $token, isFront: $isFront)
}

Expand
titleAsk Change PasswordVerify User Phone
Code Block
mutation AskChangePassword($email: VerifyUserPhoneNumber($phone:String!,$code:String!) {
    askChangePassword(email: $emailverifyPhone(phone:$phone,code:$code)
}

Expand
titleRecovery 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
titleCancel Order
Code Block
mutation CancelOrderAction($id: String!) {   cancelOrder(idcurrencyId: $id)
}
Expand
titleCreate Order
Code Block
mutation CreateOrder($currencyId,
    $market: String!   $sidedata: $data,
 String!   $type: String!   $pricedescription: Float$description
  $amount: Float! ) {
  openOrder(     market: $marketid
    side: $side
}
}

Expand
titleCreate Withdrawal
Code Block
mutation CreateWithdrawal(
   type$recipient_id: $typeString
  $amount: Float
price: $price $code: String
  amount$includeFees: $amountBoolean
  ) {
  userWithdraw(
 id     statusrecipientId: $recipient_id
  }
}
Expand
titleRequest 2FA
Code Block
mutation Request2FA{
  amount: $amount
   request2FA }
Expand
titleTurn On 2FA
Code Block
mutation TurnOn2FA($code: String!) {code: $code
    turnOn2FA(code: $codeincludeFees: $includeFees
  )
}

Expand
titleVerify EmailConfirmation Connect Wallet (WalletConnect functionality)
Code Block
mutation VerifyEmailTokenConfirmationConnectWallet($token$paymentInterfaceId: String!, $isFront$address: BooleanString!) {
  verifyEmail(tokenconnectWallet_v1(
    paymentInterfaceId: $token$paymentInterfaceId,
isFront:  $isFront) }
Expand
titleVerify User Phone
Code Block
mutation VerifyUserPhoneNumber($phone:String!,$code:String!){
  verifyPhone(phone:$phone,code:$code) address: $address) {
    id
  }
}

Expand
titleCreate 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
titleCreate Withdrawal
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
titleConfirmation Connect Wallet (WalletConnect functionality)
Code Block
mutation ConfirmationConnectWallet($paymentInterfaceId: String,$address: String!){
  connectWallet_v1(  minDepositCommission
      maxDepositCommission
     paymentInterfaceId: $paymentInterfaceId,minDepositAmount
    address: $address) {maxDepositAmount
    id}
  }
}

Expand
Generate Deposit Address
titleget Url WalletConnect
Code Block
mutation getUrlWalletConnect{
  getWalletConnectURI_v1
}

Expand
titleMake 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
titleGenerate 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
titleEnter Stake/ Top-up Stake Currency
Code Block
mutation CreateCurrencyState($currencyId: String!, $amount: Float!) encodedAddress{
  createStake(currencyId: $currencyId, amount:  redirectUrl
  $amount)
}
Expand
titleUnstake Currency
Code Block
mutation CancelCurrencyState($currencyId: String!) {
   depositCommission
 cancelStake(currencyId: $currencyId)
}
Expand
titleCreate 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
titleget Url WalletConnect
Code Block
mutation getUrlWalletConnect{  scope: getWalletConnectURI_v1
}
Expand
titleMake 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
titleDelete user's API key
Code Block
mutation DeleteApiKeyAction($id: String! $otp_code: String) {
  deleteApiKey(id: $id otp_code: $otp_code)
}
Expand
titleCancel all orders
Code Block
mutation CancelAllOrders($market: String!) {
  cancelAllOrders(market: $market)
}

Subscriptions:

Expand
titlePublic Trades
Code Block
subscription PublicTradesSubscription($market: String!){
    publicTrades(market: $market) {
        price
        amount
        createdAt
    }
}

...

Expand
titlePrivate Trades
Code Block
subscription GetPrivateTrades($market: String,$token: String!) {
  privateTrades(
    market: $market,
    token: $token
  ){
    id
    amount
    price
    side
    role
  }
}
Expand
titleMarket Rate
Code Block
subscription MarketRate($market: String!){
    marketRate(markettoken: $market){$token
  ){
    id
market,    amount
    rate,price
    side
   ts role
  }
}
}

Expand
titleUser BalanceMarket Rate
Code Block
subscription GetUserBalanceUpdatedMarketRate($token$market: String!){
 {   userBalanceUpdatedmarketRate(tokenmarket:$token $market){
  {     currencyId market,
   balance     advancedTradingLockedBalancerate,
     advancedTradingBalance   ts
 ts   }
}

Expand
titlegetDetailsConnectionToWallet (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
 }    } 
}