Versions Compared

Key

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

...

(Valid for UserApp version 1.5.13)

URL for Playground https://dev.wizwiz.io/graphql

You can know more about GraphQL in Marionette in this video

Queries:

Expand
titleGet KYC Document Types
Code Block
query KYCDocumentTypes {
    KYCDocumentTypes
}

...

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
titleGet User Wallets
Code Block
query GetUserWallets($id: String) {
  user(id: $id) {
    currencies {
      id
      name
      icon_url
      position
      precision
      enabled
      lightBgColor1
      lightBgColor2
      darkBgColor1
      darkBgColor2
      lightTextColor
      staking_enabled
      isUnstakingProcess
      isFavorite
      markets {
        id
        marketDynamics {
          marketId
          startPrice
          amount24h
          lastPrice
          lowPrice
          highPrice
        }
        base_currency {
          id
          name
          icon_url
          balance
          precision
          advancedTradingBalance
          userBalanceEnable
        }
        quote_currency {
          id
          name
          icon_url
          balance
          precision
          advancedTradingBalance
          userBalanceEnable
        }
        rate
        isFavorite
        minBaseCurrencyAmount
        minQuoteCurrencyAmount
        commission_currency
        buy_commission
        buy_min_commission
        buy_max_commission
        sell_commission
        sell_min_commission
        sell_max_commission
        buy_commission
        buy_max_commission
        buy_min_commission
        sell_commission
        sell_max_commission
        sell_min_commission
        enable_custodial_exchange
        enabled
        swapBaseToQuotePricePrecision
        swapQuoteToBasePricePrecision
        enable_trading
        trading_min_amount
        trading_price_precision
        trading_amount_precision
      }
    }
  }
}

...

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

...