Versions Compared

Key

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

...

Configuration (Menu item)

Code Block
path: "config"

Blockchains (Sub menu item) Page names 1.Blockchains

  1. Code Block
    Info: list with all availible blockchains
    
    path: "blockchains",
    component: "BlockchainList",

Methods useQuery

  1. BlockchainsDocument

  1. Code Block
    query Blockchains {
       blockchains {
           id
           name
           description
           explorer_address
           explorer_transaction
           height
           latest_height
           createdAt
           updatedAt
           enabled
           wallet
           minConfirmations
           chainId
           currencyPaymentInterfaces {
               currency {
                   id
                   name
               }
               type
           }
           connectedBlockchainId
       }
    }

2.Details (Blockchain page)

  1. Code Block
    Info: page with information about blockchain
    path: "/config/blockchains/:blockChainId",

Methods useQuery

  1. BlockchainDocument

  1. Code Block
    query Blockchain($id: String!) {
       blockchain(id: $id) {
           id
           name
           description
           explorer_address
           explorer_transaction
           height
           latest_height
           createdAt
           updatedAt
           enabled
           chainId
           minConfirmations
           wallet
           currencyPaymentInterfaces {
               id
               currency {
                   id
                   name
               }
               type
           }
           connectedBlockchainId
       }
    }

Currencies (Sub menu item) Page names 1.Currencies

  1. Code Block
    Info: list with all availible currencies
    
    path: "currencies",
    component: "CurrenciesListContainer",

Methods useQuery

  1. CurrenciesDocument

  1. Code Block
    query Currencies($currencyName: String) {
       adminCurrencies(currencyName: $currencyName) {
           id
           name
           icon_url
           userBalanceEnable
           enabled
           hide
           position
           trading_commission_enabled
           currencyPaymentInterfaces {
               paymentInterfaceId
               paymentInterface {
                   id
                   title
               }
               type
               userDepositEnable
               currency {
                   id
               }
               enable
           }
           createdAt
           updatedAt
       }
    }

useMutation

  1. UpdateCurrencyDocument

  1. Code Block
    mutation UpdateCurrency(
       $id: String
       $name: String
       $icon_url: String
       $precision: Int
       $userBalanceEnable: Boolean
       $enabled: Boolean
       $position: Int
       $trading_commission_enabled: Boolean
       $lightBgColor1: String
       $lightBgColor2: String
       $darkBgColor1: String
       $darkBgColor2: String
       $lightTextColor: String
       $darkTextColor: String
       $hide: Boolean
       $staking_enabled: Boolean
       $staking_period: String
       $staking_apr: Float
       $min_staking_amount: Float
       $instant_unstaking: Boolean
       $currencyPaymentInterfaces: [CurrencyPaymentInterfaceInput]
    ) {
       updateCurrency(
           id: $id
           name: $name
           icon_url: $icon_url
           precision: $precision
           userBalanceEnable: $userBalanceEnable
           enabled: $enabled
           position: $position
           trading_commission_enabled: $trading_commission_enabled
           lightBgColor1: $lightBgColor1
           lightBgColor2: $lightBgColor2
           darkBgColor1: $darkBgColor1
           darkBgColor2: $darkBgColor2
           lightTextColor: $lightTextColor
           darkTextColor: $darkTextColor
           hide: $hide
           staking_enabled: $staking_enabled
           staking_period: $staking_period
           staking_apr: $staking_apr
           min_staking_amount: $min_staking_amount
           instant_unstaking: $instant_unstaking
           currencyPaymentInterfaces: $currencyPaymentInterfaces
       ) {
         id
       }
    }

2.Details layout (wrapper for details and edit currencies details)

  1. Code Block
    Info: wrapper for currencies
    path: "/config/currencies/details/:id",
    component: "CurrencyDetailsLayout"

Methods useQuery

  1. CurrencyMqDocument

  1. Code Block
    query CurrencyMQ($id: String!) {
       adminCurrency(id: $id) {
           id
           name
           icon_url
           precision
           position
           trading_commission_enabled
           lightBgColor1
           lightBgColor2
           darkBgColor1
           darkBgColor2
           lightTextColor
           darkTextColor
           userBalanceEnable
           enabled
           hide
           staking_enabled
           staking_period
           staking_apr
           last_staking_calc
           min_staking_amount
           instant_unstaking
           currencyPaymentInterfaces {
               paymentInterfaceId
               description
               type
               contractAddress
               gasLimit
               subunits
               minDepositAmount
               depositFee
               minDepositFee
               maxDepositFee
               userDepositEnable
               minDirectDepositAmount
               directDepositFee
               minDirectDepositFee
               maxDirectDepositFee
               userDirectDepositEnabled
               minWithdrawAmount
               maxWithdrawAmount
               maxWithdrawAmount24h
               maxWithdrawAmount72h
               withdrawFee
               minWithdrawFee
               maxWithdrawFee
               minCollectionAmount
               userWithdrawEnable
               isDonationEnabled
               enable
               createdAt
               updatedAt
           }
           createdAt
           updatedAt
       }
    }
    

3.Details main

  1. Code Block
    Info: page with information about currencies
    path: "/config/currencies/details/:id",
    component: "CurrencyDetailsMain"

Methods useMutation

  1. UpdateCurrencyDocument

  1. Code Block
    mutation UpdateCurrency(
       $id: String
       $name: String
       $icon_url: String
       $precision: Int
       $userBalanceEnable: Boolean
       $enabled: Boolean
       $position: Int
       $trading_commission_enabled: Boolean
       $lightBgColor1: String
       $lightBgColor2: String
       $darkBgColor1: String
       $darkBgColor2: String
       $lightTextColor: String
       $darkTextColor: String
       $hide: Boolean
       $staking_enabled: Boolean
       $staking_period: String
       $staking_apr: Float
       $min_staking_amount: Float
       $instant_unstaking: Boolean
       $currencyPaymentInterfaces: [CurrencyPaymentInterfaceInput]
    ) {
       updateCurrency(
           id: $id
           name: $name
           icon_url: $icon_url
           precision: $precision
           userBalanceEnable: $userBalanceEnable
           enabled: $enabled
           position: $position
           trading_commission_enabled: $trading_commission_enabled
           lightBgColor1: $lightBgColor1
           lightBgColor2: $lightBgColor2
           darkBgColor1: $darkBgColor1
           darkBgColor2: $darkBgColor2
           lightTextColor: $lightTextColor
           darkTextColor: $darkTextColor
           hide: $hide
           staking_enabled: $staking_enabled
           staking_period: $staking_period
           staking_apr: $staking_apr
           min_staking_amount: $min_staking_amount
           instant_unstaking: $instant_unstaking
           currencyPaymentInterfaces: $currencyPaymentInterfaces
       ) {
           id
       }
    }
  1. CurrencyAllUnstakingDocument

  1. Code Block
    mutation CurrencyAllUnstaking(
       $currencyId: String!
    ) {
       currencyAllUnstaking(
           currencyId: $currencyId
       )
    }
  1. EditCurrencyIconLogoDocument

  1. Code Block
    mutation EditCurrencyIconLogo($id: String, $file: Upload) {
       editCurrencyIconLogo(id: $id, file: $file) {
           id
           icon_url
       }
    }

4.Details edit

  1. Code Block
    Info: page with edit functionality for curencies details
    path: "/config/currencies/details/:id/edit",
    component: "CurrencyDetailsEdit"

Methods useQuery

  1. CurrencyMqDocument

  1. Code Block
    query CurrencyMQ($id: String!) {
       adminCurrency(id: $id) {
           id
           name
           icon_url
           precision
           position
           trading_commission_enabled
           lightBgColor1
           lightBgColor2
           darkBgColor1
           darkBgColor2
           lightTextColor
           darkTextColor
           userBalanceEnable
           enabled
           hide
           staking_enabled
           staking_period
           staking_apr
           last_staking_calc
           min_staking_amount
           instant_unstaking
           currencyPaymentInterfaces {
               paymentInterfaceId
               description
               type
               contractAddress
               gasLimit
               subunits
               minDepositAmount
               depositFee
               minDepositFee
               maxDepositFee
               userDepositEnable
               minDirectDepositAmount
               directDepositFee
               minDirectDepositFee
               maxDirectDepositFee
               userDirectDepositEnabled
               minWithdrawAmount
               maxWithdrawAmount
               maxWithdrawAmount24h
               maxWithdrawAmount72h
               withdrawFee
               minWithdrawFee
               maxWithdrawFee
               minCollectionAmount
               userWithdrawEnable
               isDonationEnabled
               enable
               createdAt
               updatedAt
           }
           createdAt
           updatedAt
       }
    }
    

useMutation

  1. CurrencyAllUnstakingDocument

  1. Code Block
    mutation CurrencyAllUnstaking(
       $currencyId: String!
    ) {
       currencyAllUnstaking(
           currencyId: $currencyId
       )
    }
  1. CreateCurrencyDocument

  1. Code Block
    mutation CreateCurrency(
       $id: String
       $name: String
       $icon_url: String
       $precision: Int
       $userBalanceEnable: Boolean
       $enabled: Boolean
       $position: Int
       $trading_commission_enabled: Boolean
       $lightBgColor1: String
       $lightBgColor2: String
       $darkBgColor1: String
       $darkBgColor2: String
       $lightTextColor: String
       $darkTextColor: String
       $hide: Boolean
       $staking_enabled: Boolean
       $staking_period: String
       $staking_apr: Float
       $min_staking_amount: Float
       $instant_unstaking: Boolean
       $currencyPaymentInterfaces: [CurrencyPaymentInterfaceInput]
    ) {
       createCurrency(
           id: $id
           name: $name
           icon_url: $icon_url
           precision: $precision
           userBalanceEnable: $userBalanceEnable
           enabled: $enabled
           position: $position
           trading_commission_enabled: $trading_commission_enabled
           lightBgColor1: $lightBgColor1
           lightBgColor2: $lightBgColor2
           darkBgColor1: $darkBgColor1
           darkBgColor2: $darkBgColor2
           lightTextColor: $lightTextColor
           darkTextColor: $darkTextColor
           hide: $hide
           staking_enabled: $staking_enabled
           staking_period: $staking_period
           staking_apr: $staking_apr
           min_staking_amount: $min_staking_amount
           instant_unstaking: $instant_unstaking
           currencyPaymentInterfaces: $currencyPaymentInterfaces
       ) {
           id
       }
    }

Payment Interfaces (Sub menu item) Page names 1.Payment Interfaces

  1. Code Block
    Info: list with all availible  payment interfaces
    
    path: "paymentInterfaces",
    component: "PaymentInterfacesList",

Methods useQuery

  1. PaymentInterfacesDocument

  1. Code Block
    query PaymentInterfaces {
       paymentInterfaces {
           id
           title
           multiCurrency
           invoiceBased
           logoUrl
           isCollectabled
           description
           blockchain {
               id
               chainId
           }
       }
    }
  1. Payment interface Details

  1. Code Block
    Info: Payment interface details page
    path: "/config/paymentInterfaces/details/:id",
    component: "PaymentInterfaceDetailsLayout"

Methods useQuery

  1. PaymentInterfaceDocument

  1. Code Block
    query PaymentInterface($id: String) {
       paymentInterface(id: $id) {
           id
           title
           subtitle
           multiCurrency
           invoiceBased
           logoUrl
           isCollectabled
           description
           blockchain {
               id
               name
               description
               explorer_address
               explorer_transaction
               height
               latest_height
               minConfirmations
               enabled
               wallet
               chainId
               createdAt
               updatedAt
           }
           currencyPaymentInterfaces {
               id
               enable
               currency {
                   id
                   name
                   enabled
               }
           }
           createdAt
           updatedAt
       }
    }

useMutation

  1. EditIconLogoGQL

  1. Code Block
    mutation EditIconLogo($id: String, $file: Upload) {
           editIconLogo(id: $id, file: $file) {
               id
           }
       }

Markets (Sub menu item) Page names 1.Markets

  1. Code Block
    Info: list with all availible markets
    
    path: "markets",
    component: "Markets",

Methods useQuery

  1. MarketsListDocument

  1. Code Block
    query MarketsList {
       markets {
           id
           enabled
           rate
           quote_currency {
               precision
           }
           enable_custodial_exchange
           enable_non_custodial_exchange
           enable_trading
           # enable_swap_out
           # enable_swap_in
           trading_bot_enabled
           marketDynamics {
               lastPrice
           }
           swapBaseToQuotePricePrecision
           trading_price_precision
       }
    }
    

useMutation

  1. UpdateMarketDocument

  1. Code Block
    mutation UpdateMarket(
       $id: String
       $enabled: Boolean
       $minBaseCurrencyAmount: Float
       $minQuoteCurrencyAmount: Float
       $buy_commission: Float
       $buy_min_commission: Float
       $buy_max_commission: Float
       $sell_commission: Float
       $sell_min_commission: Float
       $sell_max_commission: Float
       $commission_currency: String
       # $enable_swap_in: Boolean
       # $enable_swap_out: Boolean
       $enable_custodial_exchange: Boolean
       $enable_non_custodial_exchange: Boolean
       $enable_trading: Boolean
       $trading_amount_precision: Int
       $trading_price_precision: Int
       $trading_min_price: Float
       $trading_max_price: Float
       $trading_min_amount: Float
       $trading_position: Int
       $trading_maker_fee: Float
       $trading_taker_fee: Float
       $trading_bot_enabled: Boolean
       $trading_bot_settings: String
       $marketOwnerId: String
       $buyLimitEnabled: Boolean
       $sellLimitEnabled: Boolean
       $buyMarketEnabled: Boolean
       $sellMarketEnabled: Boolean
       $buyTradeCancellable: Boolean
       $sellTradeCancellable: Boolean
       $swapQuoteToBasePricePrecision: Int
       $swapBaseToQuotePricePrecision: Int
    ) {
       updateMarket(
           id: $id
           enabled: $enabled
           minBaseCurrencyAmount: $minBaseCurrencyAmount
           minQuoteCurrencyAmount: $minQuoteCurrencyAmount
           buy_commission: $buy_commission
           buy_min_commission: $buy_min_commission
           buy_max_commission: $buy_max_commission
           sell_commission: $sell_commission
           sell_min_commission: $sell_min_commission
           sell_max_commission: $sell_max_commission
           commission_currency: $commission_currency
           # enable_swap_in: $enable_swap_in
           # enable_swap_in: $enable_swap_out
           enable_custodial_exchange: $enable_custodial_exchange
           enable_non_custodial_exchange: $enable_non_custodial_exchange
           enable_trading: $enable_trading
           trading_amount_precision: $trading_amount_precision
           trading_price_precision: $trading_price_precision
           trading_min_price: $trading_min_price
           trading_max_price: $trading_max_price
           trading_min_amount: $trading_min_amount
           trading_position: $trading_position
           trading_maker_fee: $trading_maker_fee
           trading_taker_fee: $trading_taker_fee
           trading_bot_enabled: $trading_bot_enabled
           trading_bot_settings: $trading_bot_settings
           marketOwnerId: $marketOwnerId
           buyLimitEnabled: $buyLimitEnabled
           sellLimitEnabled: $sellLimitEnabled
           buyMarketEnabled: $buyMarketEnabled
           sellMarketEnabled: $sellMarketEnabled
           buyTradeCancellable: $buyTradeCancellable
           sellTradeCancellable: $sellTradeCancellable
           swapQuoteToBasePricePrecision: $swapQuoteToBasePricePrecision
           swapBaseToQuotePricePrecision: $swapBaseToQuotePricePrecision
       ) {
           id
       }
    }

useSubscription

  1. AdminAllExchangeRatesDocument

  1. Code Block
       subscription AdminAllExchangeRates($token: String) {
           adminAllRates(token: $token) {
               market
               rate
               ts
               sources {
                   service_prefix
                   rate
                   ts
               }
           }
       }
  1. Market details layout wrapper

  1. Code Block
    Info: Market details wrapper
    component: "MarketDetailsLayout"

Methods useQuery

  1. MarketDocument

  1. Code Block
    query Market($id: String) {
       market(id: $id) {
           id
           rate
           enabled
           quote_currency_id
           base_currency_id
           minBaseCurrencyAmount
           minQuoteCurrencyAmount
           base_currency {
               id
               name
               enabled
           }
           quote_currency {
               id
               name
               enabled
           }
           rate_sources {
               service_prefix
               secondary_service_prefix
               intermediary_currency
               market
               online
               enabled
           }
           change24
           buy_commission
           buy_min_commission
           buy_max_commission
           sell_commission
           sell_min_commission
           sell_max_commission
           commission_currency
           enable_custodial_exchange
           enable_non_custodial_exchange
           enable_trading
           trading_amount_precision
           trading_price_precision
           trading_min_price
           trading_max_price
           trading_min_amount
           trading_position
           trading_maker_fee
           trading_taker_fee
           trading_bot_enabled
           trading_bot_settings
           # enable_swap_out
           # enable_swap_in
           swapQuoteToBasePricePrecision
           swapBaseToQuotePricePrecision
           marketOwnerId
           buyLimitEnabled
           sellLimitEnabled
           buyMarketEnabled
           sellMarketEnabled
           buyTradeCancellable
           sellTradeCancellable
       }
    }

3.Market details main

  1. Code Block
    Info: page with information about market
    path: "/config/markets/:id/:tab",
    component: "MarketDetailsMain"

Methods useMutation

  1. UpdateRateSourceConfigDocument

  1. Code Block
    mutation UpdateRateSourceConfig(
           $market: String!
           $service_prefix: String!
           $secondary_service_prefix: String
           $intermediary_currency: String
           $enabled: Boolean
       ) {
           updateRateSourceConfig(
               market: $market
               service_prefix: $service_prefix
               secondary_service_prefix: $secondary_service_prefix
               intermediary_currency: $intermediary_currency
               enabled: $enabled
           )
       }
  1. UpdateMarketDocument

  1. Code Block
    mutation UpdateMarket(>>>>
       $id: String
       $enabled: Boolean
       $minBaseCurrencyAmount: Float
       $minQuoteCurrencyAmount: Float
       $buy_commission: Float
       $buy_min_commission: Float
       $buy_max_commission: Float
       $sell_commission: Float
       $sell_min_commission: Float
       $sell_max_commission: Float
       $commission_currency: String
       # $enable_swap_in: Boolean
       # $enable_swap_out: Boolean
       $enable_custodial_exchange: Boolean
       $enable_non_custodial_exchange: Boolean
       $enable_trading: Boolean
       $trading_amount_precision: Int
       $trading_price_precision: Int
       $trading_min_price: Float
       $trading_max_price: Float
       $trading_min_amount: Float
       $trading_position: Int
       $trading_maker_fee: Float
       $trading_taker_fee: Float
       $trading_bot_enabled: Boolean
       $trading_bot_settings: String
       $marketOwnerId: String
       $buyLimitEnabled: Boolean
       $sellLimitEnabled: Boolean
       $buyMarketEnabled: Boolean
       $sellMarketEnabled: Boolean
       $buyTradeCancellable: Boolean
       $sellTradeCancellable: Boolean
       $swapQuoteToBasePricePrecision: Int
       $swapBaseToQuotePricePrecision: Int
    ) {
       updateMarket(
           id: $id
           enabled: $enabled
           minBaseCurrencyAmount: $minBaseCurrencyAmount
           minQuoteCurrencyAmount: $minQuoteCurrencyAmount
           buy_commission: $buy_commission
           buy_min_commission: $buy_min_commission
           buy_max_commission: $buy_max_commission
           sell_commission: $sell_commission
           sell_min_commission: $sell_min_commission
           sell_max_commission: $sell_max_commission
           commission_currency: $commission_currency
           # enable_swap_in: $enable_swap_in
           # enable_swap_in: $enable_swap_out
           enable_custodial_exchange: $enable_custodial_exchange
           enable_non_custodial_exchange: $enable_non_custodial_exchange
           enable_trading: $enable_trading
           trading_amount_precision: $trading_amount_precision
           trading_price_precision: $trading_price_precision
           trading_min_price: $trading_min_price
           trading_max_price: $trading_max_price
           trading_min_amount: $trading_min_amount
           trading_position: $trading_position
           trading_maker_fee: $trading_maker_fee
           trading_taker_fee: $trading_taker_fee
           trading_bot_enabled: $trading_bot_enabled
           trading_bot_settings: $trading_bot_settings
           marketOwnerId: $marketOwnerId
           buyLimitEnabled: $buyLimitEnabled
           sellLimitEnabled: $sellLimitEnabled
           buyMarketEnabled: $buyMarketEnabled
           sellMarketEnabled: $sellMarketEnabled
           buyTradeCancellable: $buyTradeCancellable
           sellTradeCancellable: $sellTradeCancellable
           swapQuoteToBasePricePrecision: $swapQuoteToBasePricePrecision
           swapBaseToQuotePricePrecision: $swapBaseToQuotePricePrecision
       ) {
           id
       }
    }

3.Markets details edit

  1. Code Block
    Info: page with market details edit functionality
    path: "/config/markets/:id/:tab",
    component: "MarketDetailsEdit"

Methods useQuery

  1. CurrenciesDocument

  1. Code Block
    query Currencies($currencyName: String) {
       adminCurrencies(currencyName: $currencyName) {
           id
           name
           icon_url
           userBalanceEnable
           enabled
           hide
           position
           trading_commission_enabled
           currencyPaymentInterfaces {
               paymentInterfaceId
               paymentInterface {
                   id
                   title
               }
               type
               userDepositEnable
               currency {
                   id
               }
               enable
           }
           createdAt
           updatedAt
       }
    }

useMutation

  1. CreateMarketDocument

  1. Code Block
    mutation CreateMarket(
       $enabled: Boolean
       $quote_currency_id: String
       $base_currency_id: String
       $minBaseCurrencyAmount: Float
       $minQuoteCurrencyAmount: Float
       $buy_commission: Float
       $buy_min_commission: Float
       $buy_max_commission: Float
       $sell_commission: Float
       $sell_min_commission: Float
       $sell_max_commission: Float
       $swapQuoteToBasePricePrecision: Int
       $swapBaseToQuotePricePrecision: Int
       $commission_currency: String
       $enable_custodial_exchange: Boolean
       $enable_non_custodial_exchange: Boolean
       $enable_trading: Boolean
       $trading_amount_precision: Int
       $trading_price_precision: Int
       $trading_min_price: Float
       $trading_max_price: Float
       $trading_min_amount: Float
       $trading_position: Int
       $trading_maker_fee: Float
       $trading_taker_fee: Float
       # $enable_swap_out: Boolean
       # $enable_swap_in: Boolean
       $marketOwnerId: String
       $buyLimitEnabled: Boolean
       $sellLimitEnabled: Boolean
       $buyMarketEnabled: Boolean
       $sellMarketEnabled: Boolean
       $buyTradeCancellable: Boolean
       $sellTradeCancellable: Boolean
    ) {
       createMarket(
           enabled: $enabled
           quote_currency_id: $quote_currency_id
           base_currency_id: $base_currency_id
           minBaseCurrencyAmount: $minBaseCurrencyAmount
           minQuoteCurrencyAmount: $minQuoteCurrencyAmount
           buy_commission: $buy_commission
           buy_min_commission: $buy_min_commission
           buy_max_commission: $buy_max_commission
           sell_commission: $sell_commission
           sell_min_commission: $sell_min_commission
           sell_max_commission: $sell_max_commission
           commission_currency: $commission_currency
           swapQuoteToBasePricePrecision: $swapQuoteToBasePricePrecision
           swapBaseToQuotePricePrecision: $swapBaseToQuotePricePrecision
           enable_custodial_exchange: $enable_custodial_exchange
           enable_non_custodial_exchange: $enable_non_custodial_exchange
           enable_trading: $enable_trading
           trading_amount_precision: $trading_amount_precision
           trading_price_precision: $trading_price_precision
           trading_min_price: $trading_min_price
           trading_max_price: $trading_max_price
           trading_min_amount: $trading_min_amount
           trading_position: $trading_position
           trading_maker_fee: $trading_maker_fee
           trading_taker_fee: $trading_taker_fee
           # enable_swap_in: $enable_swap_in
           # enable_swap_out: $enable_swap_out
           marketOwnerId: $marketOwnerId
           buyLimitEnabled: $buyLimitEnabled
           sellLimitEnabled: $sellLimitEnabled
           buyMarketEnabled: $buyMarketEnabled
           sellMarketEnabled: $sellMarketEnabled
           buyTradeCancellable: $buyTradeCancellable
           sellTradeCancellable: $sellTradeCancellable
       ) {
           id
       }
    }
  1. UpdateMarketDocument

  1. Code Block
    mutation UpdateMarket(
       $id: String
       $enabled: Boolean
       $minBaseCurrencyAmount: Float
       $minQuoteCurrencyAmount: Float
       $buy_commission: Float
       $buy_min_commission: Float
       $buy_max_commission: Float
       $sell_commission: Float
       $sell_min_commission: Float
       $sell_max_commission: Float
       $commission_currency: String
       # $enable_swap_in: Boolean
       # $enable_swap_out: Boolean
       $enable_custodial_exchange: Boolean
       $enable_non_custodial_exchange: Boolean
       $enable_trading: Boolean
       $trading_amount_precision: Int
       $trading_price_precision: Int
       $trading_min_price: Float
       $trading_max_price: Float
       $trading_min_amount: Float
       $trading_position: Int
       $trading_maker_fee: Float
       $trading_taker_fee: Float
       $trading_bot_enabled: Boolean
       $trading_bot_settings: String
       $marketOwnerId: String
       $buyLimitEnabled: Boolean
       $sellLimitEnabled: Boolean
       $buyMarketEnabled: Boolean
       $sellMarketEnabled: Boolean
       $buyTradeCancellable: Boolean
       $sellTradeCancellable: Boolean
       $swapQuoteToBasePricePrecision: Int
       $swapBaseToQuotePricePrecision: Int
    ) {
       updateMarket(
           id: $id
           enabled: $enabled
           minBaseCurrencyAmount: $minBaseCurrencyAmount
           minQuoteCurrencyAmount: $minQuoteCurrencyAmount
           buy_commission: $buy_commission
           buy_min_commission: $buy_min_commission
           buy_max_commission: $buy_max_commission
           sell_commission: $sell_commission
           sell_min_commission: $sell_min_commission
           sell_max_commission: $sell_max_commission
           commission_currency: $commission_currency
           # enable_swap_in: $enable_swap_in
           # enable_swap_in: $enable_swap_out
           enable_custodial_exchange: $enable_custodial_exchange
           enable_non_custodial_exchange: $enable_non_custodial_exchange
           enable_trading: $enable_trading
           trading_amount_precision: $trading_amount_precision
           trading_price_precision: $trading_price_precision
           trading_min_price: $trading_min_price
           trading_max_price: $trading_max_price
           trading_min_amount: $trading_min_amount
           trading_position: $trading_position
           trading_maker_fee: $trading_maker_fee
           trading_taker_fee: $trading_taker_fee
           trading_bot_enabled: $trading_bot_enabled
           trading_bot_settings: $trading_bot_settings
           marketOwnerId: $marketOwnerId
           buyLimitEnabled: $buyLimitEnabled
           sellLimitEnabled: $sellLimitEnabled
           buyMarketEnabled: $buyMarketEnabled
           sellMarketEnabled: $sellMarketEnabled
           buyTradeCancellable: $buyTradeCancellable
           sellTradeCancellable: $sellTradeCancellable
           swapQuoteToBasePricePrecision: $swapQuoteToBasePricePrecision
           swapBaseToQuotePricePrecision: $swapBaseToQuotePricePrecision
       ) {
           id
       }
    }

...

Users (Menu item)

Code Block
path: "users"

Users (Sub menu item) Page names 1.Users

  1. Code Block
    Info: list with all availible users
    path: "",
    component: "UserList",

Methods useQuery

  1. UsersDocument

  1. Code Block
    query Users(
           $email: String
           $role: String
           $state: String
           $label: String
           $page: Int
           $limit: Int
       ) {
           users(
               email: $email
               role: $role
               state: $state
               label: $label
               page: $page
               limit: $limit
           ) {
               page
               limit
               total
               result {
                   id
                   email
                   sessionsCount
                   profiles {
                       last_name
                       first_name
                       country
                       state
                   }
                   labels {
                       key
                       value
                   }
                   role
                   state
                   createdAt
                   withdrawAllwaysNeedApprove
               }
           }
       }
    

2.User details wrapper

  1. Code Block
    Info: wrapper for user details page
    path: "/users/:id/:tab",

Methods useQuery

  1. UserGeneralDocument

  1. Code Block
    query UserGeneral($id: String) {
       user(id: $id) {
           id
           email
           role
           state
           enabled2fa
           email_verified
           phone_verified
           profile_verified
           profiles {
               id
               last_name
               first_name
               country
               city
               address
               postcode
               birth
               state
               createdAt
               updatedAt
           }
           documents {
               doc_type
               doc_number
               doc_expire
               url
           }
           phones {
               id
               phone
               verified
               createdAt
               updatedAt
           }
           withdrawAllwaysNeedApprove
           createdAt
           updatedAt
       }
    }

3.User details main tab

  1. Code Block
    Info: main user details tab
    path: "/users/:id/:tab",

Methods useMutation

  1. Reset2FaDocument

  1. Code Block
    mutation Reset2FA(
       $id: String!
    ) {
       Reset2FA(
           id: $id
       )
    }
  1. CreateTaskDocument

  1. Code Block
    mutation CreateTask(
       $assigneeUserId: String
       $assigneeRole: String
       $taskType: String
       $taskTitle: String
       $taskDescription: String
       $taskComponent: String
       $taskData: String
    ) {
       createTask(
           assigneeUserId: $assigneeUserId
           assigneeRole: $assigneeRole
           taskType: $taskType
           taskTitle: $taskTitle
           taskDescription: $taskDescription
           taskComponent: $taskComponent
           taskData: $taskData
       )
    }
  1. EditUserKycDocument

  1. Code Block
    mutation EditUserKYC(
       $id: String!
       $email_verified: Boolean
       $phone_verified: Boolean
       $profile_verified: Boolean
    ) {
       EditUserKYC(
           id: $id
           email_verified: $email_verified
           phone_verified: $phone_verified
           profile_verified: $profile_verified
       )
    }
  1. EditUserStateDocument

  1. Code Block
    mutation EditUserState(
       $id: String!
       $state: String!
    ) {
       EditUserState(
           id: $id
           state: $state
       )
    }

4.User details balance tab

  1. Code Block
    Info: balance user details tab
    path: "/users/:id/:tab",

Methods useQuery

  1. AdminUserCurrenciesDocument

  1. Code Block
    query AdminUserCurrencies($userId: String!) {
       adminUserCurrencies(userId: $userId) {
           id
           name
           icon_url
           precision
           userBalanceEnable
           balance
           advancedTradingLockedBalance
           advancedTradingBalance
           withdrawLockedBalance
           lockedBalance
           enabled
           depositWallets {
               paymentInterface {
                   id
               }
               currency {
                   currencyPaymentInterfaces {
                       type
                   }
               }
               address
           }
           
       }
    }
  1. AdminUserRecipientsDocument

  1. Code Block
    query AdminUserRecipients($userId: String!, $paymentInterfaceId: String, $currencyId: String) {
       adminUserRecipients(userId: $userId, paymentInterfaceId: $paymentInterfaceId, currencyId: $currencyId) {
           id
           paymentInterfaceId
           currencyId
           data
           description
       }
    }
  1. CurrenciesDocument

  1. Code Block
    query Currencies($currencyName: String) {
       adminCurrencies(currencyName: $currencyName) {
           id
           name
           icon_url
           userBalanceEnable
           enabled
           hide
           position
           trading_commission_enabled
           currencyPaymentInterfaces {
               paymentInterfaceId
               paymentInterface {
                   id
                   title
               }
               type
               userDepositEnable
               currency {
                   id
               }
               enable
           }
           createdAt
           updatedAt
       }
    }

useMutation

  1. AdminWithdrawDocument

  1. Code Block
    mutation AdminWithdraw(
       $recipientId: String!
       $amount: Float!
       $includeFees: Boolean
    ) {
       adminWithdraw(
           recipientId: $recipientId
           amount: $amount
           includeFees: $includeFees
       )
    }
  1. AdminDepositDocument

  1. Code Block
    mutation AdminDeposit(
       $currencyId: String!
       $paymentInterfaceId: String!
       $address: String!
       $amount: Float!
    ) {
       adminDeposit(
           currencyId: $currencyId
           paymentInterfaceId: $paymentInterfaceId
           address: $address
           amount: $amount
       )
    }
  1. CreateManualRecipientDocument

  1. Code Block
    mutation CreateManualRecipient($userId: String!, $currencyId: String!) {
       createManualRecipient(userId: $userId, currencyId: $currencyId) {
           id
       }
    }

5.User details wallets tab

  1. Code Block
    Info: balance user wallets tab
    path: "/users/:id/:tab",

Methods useQuery

  1. UserCurrenciesWalletsDocument

  1. Code Block
    query UserCurrenciesWallets($userId: String!) {
       adminUserCurrencies(userId: $userId) {
           userId
           userBalanceEnable
           id
           icon_url
           name
           donationWallets {
               id
               isExternal
               isVerified
               paymentInterface {
                   blockchain {
                       explorer_address
                   }
                   id
                   logoUrl
               }
               deposit {
                   address
                   encodedAddress
               }
           }
           depositWallets {
               id
               isExternal
               isVerified
               paymentInterface {
                   id
                   logoUrl
                   blockchain {
                       explorer_address
                   }
               }
               deposit {
                   address
                   encodedAddress
               }
           }
       }
    }

6.User details external wallets tab

  1. Code Block
    Info: balance user wallets tab
    path: "/users/:id/:tab",

Methods useQuery

  1. UserCurrenciesWalletsDocument

  1. Code Block
    query UserCurrenciesWallets($userId: String!) {
       adminUserCurrencies(userId: $userId) {
           userId
           userBalanceEnable
           id
           icon_url
           name
           donationWallets {
               id
               isExternal
               isVerified
               paymentInterface {
                   blockchain {
                       explorer_address
                   }
                   id
                   logoUrl
               }
               deposit {
                   address
                   encodedAddress
               }
           }
           depositWallets {
               id
               isExternal
               isVerified
               paymentInterface {
                   id
                   logoUrl
                   blockchain {
                       explorer_address
                   }
               }
               deposit {
                   address
                   encodedAddress
               }
           }
       }
    }

7.User details recipients tab

  1. Code Block
    Info: recipients user tab
    path: "/users/:id/:tab",

Methods useQuery

  1. AdminUserRecipientsDocument

  1. Code Block
    query AdminUserRecipients($userId: String!, $paymentInterfaceId: String, $currencyId: String) {
       adminUserRecipients(userId: $userId, paymentInterfaceId: $paymentInterfaceId, currencyId: $currencyId) {
           id
           paymentInterfaceId
           currencyId
           data
           description
       }
    }

useMutation

  1. AdminWithdrawDocument

  1. Code Block
    mutation AdminWithdraw(
       $recipientId: String!
       $amount: Float!
       $includeFees: Boolean
    ) {
       adminWithdraw(
           recipientId: $recipientId
           amount: $amount
           includeFees: $includeFees
       )
    }

KYC waiting (Sub menu item) Page names 1.KYC waiting

  1. Code Block
    Info: KYC wating page
    path: "kyc-waiting",
    component: "KYCWaiting",

Methods useQuery

  1. KycWaitingUsersDocument

  1. Code Block
    query KycWaitingUsers {
           kycWaitingUsers {
               id
               email
               state
               labels {
                   key
                   value
               }
               profiles {
                   id
                   last_name
                   first_name
                   country
                   city
                   address
                   postcode
                   birth
                   state
                   createdAt
                   updatedAt
               }
               documents {
                   doc_type
                   doc_number
                   doc_expire
                   url
               }
               createdAt
               updatedAt
           }
       }

useMutation

  1. KycUpdateDocument

  1. Code Block
    mutation KYCUpdate($id: String!, $type: String!) {
         kycUpdate(id: $id, type: $type)
     }

Soft banned (Sub menu item) Page names 1.Soft banned

  1. Code Block
    Info: Soft banned page
    path: "softbanned",
    component: "SoftBannedUsers",

Methods useQuery

  1. SoftBannedUsersDocument

  1. Code Block
    query SoftBannedUsers(
       $email: String
       $page: Int
       $limit: Int
    ) {
       softBannedUsers(
           email: $email
           page: $page
           limit: $limit
       ) {
           total
           page
           limit
           result {
               id
               email
               state
               createdAt
               withdrawAllwaysNeedApprove
           }
       }
    }

...

Operations (Menu item)

Code Block
path: "operations"

Operations (Sub menu item) Page names 1.Operations

  1. Code Block
    Info: list with all availible operations
    path: "",
    component: "OperationsListContainer",

Methods useQuery

  1. OperationFiltersDocument

  1. Code Block
    query OperationFilters {
       operationFilters {
           types
           statuses {
               final
               error
               waiting
           }
       }
    }
  1. CurrencyMqDocument

  1. Code Block
    query CurrencyMQ($id: String!) {
       adminCurrency(id: $id) {
           id
           name
           icon_url
           precision
           position
           trading_commission_enabled
           lightBgColor1
           lightBgColor2
           darkBgColor1
           darkBgColor2
           lightTextColor
           darkTextColor
           userBalanceEnable
           enabled
           hide
           staking_enabled
           staking_period
           staking_apr
           last_staking_calc
           min_staking_amount
           instant_unstaking
           currencyPaymentInterfaces {
               paymentInterfaceId
               description
               type
               contractAddress
               gasLimit
               subunits
               minDepositAmount
               depositFee
               minDepositFee
               maxDepositFee
               userDepositEnable
               minDirectDepositAmount
               directDepositFee
               minDirectDepositFee
               maxDirectDepositFee
               userDirectDepositEnabled
               minWithdrawAmount
               maxWithdrawAmount
               maxWithdrawAmount24h
               maxWithdrawAmount72h
               withdrawFee
               minWithdrawFee
               maxWithdrawFee
               minCollectionAmount
               userWithdrawEnable
               isDonationEnabled
               enable
               createdAt
               updatedAt
           }
           createdAt
           updatedAt
       }
    }
  1. OperationsDocument

  1. Code Block
    query Operations(
       $page: Int
       $limit: Int
       $type: String
       $isPending: Boolean
       $from: String
       $to: String
       $txid: String
       $status: String
       $withChildren: Boolean
       $initiator_currency_id: String
       $result_currency_id: String
       $email: String
    ) {
       operations(
           page: $page
           limit: $limit
           type: $type
           from: $from
           to: $to
           txid: $txid
           isPending: $isPending
           status: $status
           withChildren: $withChildren
           initiator_currency_id: $initiator_currency_id
           result_currency_id: $result_currency_id
           email: $email
       ) {
           page
           limit
           total
           result {
               id
               initiator_type
               initiator_currency_id
               user {
                   id
                   email
                   state
               }
               initiator_amount
               result_currency_id
               result_amount
               description
               status
               createdAt
               updatedAt
           }
       }
    }

2.Operations details

  1. Code Block
    Info: operations details page
    path: "/operations/:id",
    component: "OperationDetailsContainer",

Methods useQuery

  1. OperationDocument

  1. Code Block
    query Operation($id: String) {
       operation(id: $id) {
           id
           parent_id
           initiator_type
           initiator_txid
           initiator_payment_interface_id
           initiator_explorer_transaction
           initiator_currency_id
           initiator_wallet_id
           initiator_amount
           result_txid
           result_payment_interface_id
           result_explorer_transaction
           result_currency_id
           result_recipient_id
           result_recipient_address
           user {
               id
               email
               state
           }
           result_user_id
           result_user {
               id
               email
               state
           }
           result_amount
           outstanding_payment_interface_id
           outstanding_explorer_transaction
           outstanding_txid
           auxiliary_payment_interface_id
           auxiliary_explorer_transaction
           auxiliary_txid
           auxiliary_gas_price
           description
           status
           createdAt
           updatedAt
           ledgerRecords {
               id
               accountNumber
               currencyId
               counterparty
               debit
               credit
               description
               createdAt
               updatedAt
           }
           children {
               id
               initiator_type
               initiator_txid
               initiator_payment_interface_id
               initiator_explorer_transaction
               initiator_currency_id
               initiator_wallet_id
               initiator_amount
               result_txid
               result_payment_interface_id
               result_explorer_transaction
               result_currency_id
               result_recipient_id
               user {
                   id
                   email
                   state
               }
               result_amount
               outstanding_payment_interface_id
               outstanding_explorer_transaction
               outstanding_txid
               auxiliary_payment_interface_id
               auxiliary_explorer_transaction
               auxiliary_txid
               auxiliary_gas_price
               description
               status
               createdAt
               updatedAt
               ledgerRecords {
                   id
                   accountNumber
                   currencyId
                   counterparty
                   debit
                   credit
                   description
                   createdAt
                   updatedAt
               }
           }
       }
    }

orders (Sub menu item) Page names 1.Orders

  1. Code Block
    Info: list with all availible orders
    path: "orders",
    component: "Orders",

Methods useQuery

  1. AdminOrdersDocument

  1. Code Block
    query AdminOrders(
       $market: String
       $email: String
       $from: String
       $to: String
       $type: String
       $side: String
       $status: String
       $limit: Int
       $page: Int
    ) {
       adminOrders(
           market: $market
           email: $email
           from: $from
           to: $to
           type: $type
           side: $side
           status: $status
           limit: $limit
           page: $page
       ) {
           result {
               id
               market
               Market {
                   id
                   trading_amount_precision
                   trading_price_precision
                   base_currency {
                       id
                       name
                       precision
                   }
                   quote_currency {
                       id
                       name
                       precision
                   }
               }
               side
               type
               user {
                   id
                   email
                   state
               }
               amount
               price
               executedAmount
               executedVolume
               status
               createdAt
               updatedAt
           }
           page
           limit
           total
       }
    }
  1. MarketsDocument

  1. Code Block
    query Markets {
       markets {
           id
           enabled
           enable_trading
           base_currency_id
           quote_currency_id
           marketDynamics {
               startPrice
               amount24h
               lastPrice
               lowPrice
               highPrice
           }
       }
    }

2.Order details

  1. Code Block
    Info: Order details page
    path: "/operations/orders/:id",
    component: "OrderDetails",

Methods useQuery

  1. AdminOrderDocument

  1. Code Block
    query AdminOrders(
       $market: String
       $email: String
       $from: String
       $to: String
       $type: String
       $side: String
       $status: String
       $limit: Int
       $page: Int
    ) {
       adminOrders(
           market: $market
           email: $email
           from: $from
           to: $to
           type: $type
           side: $side
           status: $status
           limit: $limit
           page: $page
       ) {
           result {
               id
               market
               Market {
                   id
                   trading_amount_precision
                   trading_price_precision
                   base_currency {
                       id
                       name
                       precision
                   }
                   quote_currency {
                       id
                       name
                       precision
                   }
               }
               side
               type
               user {
                   id
                   email
                   state
               }
               amount
               price
               executedAmount
               executedVolume
               status
               createdAt
               updatedAt
           }
           page
           limit
           total
       }
    }

useMutation

  1. CancelOrderDocument

  1. Code Block
    mutation CancelOrder($id: String!) {
       cancelOrder(id: $id)
    }

Trades (Sub menu item) Page names 1.Trades

  1. Code Block
    Info: list with all availible trades
    path: "trades",
    component: "Trades",

Methods useQuery

  1. AdminTradesDocument

  1. Code Block
    query AdminTrades(
       $market: String
       $buyUserEmail: String
       $sellUserEmail: String
       $from: String
       $to: String
       $limit: Int
       $page: Int
    ) {
       adminTrades(
           market: $market
           buyUserEmail: $buyUserEmail
           sellUserEmail: $sellUserEmail
           from: $from
           to: $to
           limit: $limit
           page: $page
       ) {
           result {
               id
               market
               Market {
                   id
                   trading_amount_precision
                   trading_price_precision
                   base_currency {
                       id
                       name
                       precision
                   }
                   quote_currency {
                       id
                       name
                       precision
                   }
               }
               buyUserId
               buyUser {
                   email
               }
               sellUserId
               sellUser {
                   email
               }
               buyOrderId
               buyOrder {
                   market
                   side
                   type
                   user {
                       id
                       email
                   }
                   amount
                   status
               }
               sellOrderId
               sellOrder {
                   market
                   side
                   type
                   user {
                       id
                       email
                   }
                   amount
                   status
               }
               amount
               price
               volume
               makerOrderSide
               maker_fee
               taker_fee
               createdAt
               updatedAt
           }
           page
           limit
           total
       }
    }
  1. MarketsDocument

  1. Code Block
    query Markets {
       markets {
           id
           enabled
           enable_trading
           base_currency_id
           quote_currency_id
           marketDynamics {
               startPrice
               amount24h
               lastPrice
               lowPrice
               highPrice
           }
       }
    }