...
Configuration (Menu item)
Code Block |
---|
path: "config" |
Blockchains (Sub menu item) Page names 1.Blockchains
Code Block Info: list with all availible blockchains path: "blockchains", component: "BlockchainList",
Methods useQuery
BlockchainsDocument
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)
Code Block Info: page with information about blockchain path: "/config/blockchains/:blockChainId",
Methods useQuery
BlockchainDocument
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
Code Block Info: list with all availible currencies path: "currencies", component: "CurrenciesListContainer",
Methods useQuery
CurrenciesDocument
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
UpdateCurrencyDocument
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)
Code Block Info: wrapper for currencies path: "/config/currencies/details/:id", component: "CurrencyDetailsLayout"
Methods useQuery
CurrencyMqDocument
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
Code Block Info: page with information about currencies path: "/config/currencies/details/:id", component: "CurrencyDetailsMain"
Methods useMutation
UpdateCurrencyDocument
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 } }
CurrencyAllUnstakingDocument
Code Block mutation CurrencyAllUnstaking( $currencyId: String! ) { currencyAllUnstaking( currencyId: $currencyId ) }
EditCurrencyIconLogoDocument
Code Block mutation EditCurrencyIconLogo($id: String, $file: Upload) { editCurrencyIconLogo(id: $id, file: $file) { id icon_url } }
4.Details edit
Code Block Info: page with edit functionality for curencies details path: "/config/currencies/details/:id/edit", component: "CurrencyDetailsEdit"
Methods useQuery
CurrencyMqDocument
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
CurrencyAllUnstakingDocument
Code Block mutation CurrencyAllUnstaking( $currencyId: String! ) { currencyAllUnstaking( currencyId: $currencyId ) }
CreateCurrencyDocument
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
Code Block Info: list with all availible payment interfaces path: "paymentInterfaces", component: "PaymentInterfacesList",
Methods useQuery
PaymentInterfacesDocument
Code Block query PaymentInterfaces { paymentInterfaces { id title multiCurrency invoiceBased logoUrl isCollectabled description blockchain { id chainId } } }
Payment interface Details
Code Block Info: Payment interface details page path: "/config/paymentInterfaces/details/:id", component: "PaymentInterfaceDetailsLayout"
Methods useQuery
PaymentInterfaceDocument
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
EditIconLogoGQL
Code Block mutation EditIconLogo($id: String, $file: Upload) { editIconLogo(id: $id, file: $file) { id } }
Markets (Sub menu item) Page names 1.Markets
Code Block Info: list with all availible markets path: "markets", component: "Markets",
Methods useQuery
MarketsListDocument
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
UpdateMarketDocument
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
AdminAllExchangeRatesDocument
Code Block subscription AdminAllExchangeRates($token: String) { adminAllRates(token: $token) { market rate ts sources { service_prefix rate ts } } }
Market details layout wrapper
Code Block Info: Market details wrapper component: "MarketDetailsLayout"
Methods useQuery
MarketDocument
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
Code Block Info: page with information about market path: "/config/markets/:id/:tab", component: "MarketDetailsMain"
Methods useMutation
UpdateRateSourceConfigDocument
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 ) }
UpdateMarketDocument
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
Code Block Info: page with market details edit functionality path: "/config/markets/:id/:tab", component: "MarketDetailsEdit"
Methods useQuery
CurrenciesDocument
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
CreateMarketDocument
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 } }
UpdateMarketDocument
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
Code Block Info: list with all availible users path: "", component: "UserList",
Methods useQuery
UsersDocument
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
Code Block Info: wrapper for user details page path: "/users/:id/:tab",
Methods useQuery
UserGeneralDocument
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
Code Block Info: main user details tab path: "/users/:id/:tab",
Methods useMutation
Reset2FaDocument
Code Block mutation Reset2FA( $id: String! ) { Reset2FA( id: $id ) }
CreateTaskDocument
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 ) }
EditUserKycDocument
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 ) }
EditUserStateDocument
Code Block mutation EditUserState( $id: String! $state: String! ) { EditUserState( id: $id state: $state ) }
4.User details balance tab
Code Block Info: balance user details tab path: "/users/:id/:tab",
Methods useQuery
AdminUserCurrenciesDocument
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 } } }
AdminUserRecipientsDocument
Code Block query AdminUserRecipients($userId: String!, $paymentInterfaceId: String, $currencyId: String) { adminUserRecipients(userId: $userId, paymentInterfaceId: $paymentInterfaceId, currencyId: $currencyId) { id paymentInterfaceId currencyId data description } }
CurrenciesDocument
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
AdminWithdrawDocument
Code Block mutation AdminWithdraw( $recipientId: String! $amount: Float! $includeFees: Boolean ) { adminWithdraw( recipientId: $recipientId amount: $amount includeFees: $includeFees ) }
AdminDepositDocument
Code Block mutation AdminDeposit( $currencyId: String! $paymentInterfaceId: String! $address: String! $amount: Float! ) { adminDeposit( currencyId: $currencyId paymentInterfaceId: $paymentInterfaceId address: $address amount: $amount ) }
CreateManualRecipientDocument
Code Block mutation CreateManualRecipient($userId: String!, $currencyId: String!) { createManualRecipient(userId: $userId, currencyId: $currencyId) { id } }
5.User details wallets tab
Code Block Info: balance user wallets tab path: "/users/:id/:tab",
Methods useQuery
UserCurrenciesWalletsDocument
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
Code Block Info: balance user wallets tab path: "/users/:id/:tab",
Methods useQuery
UserCurrenciesWalletsDocument
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
Code Block Info: recipients user tab path: "/users/:id/:tab",
Methods useQuery
AdminUserRecipientsDocument
Code Block query AdminUserRecipients($userId: String!, $paymentInterfaceId: String, $currencyId: String) { adminUserRecipients(userId: $userId, paymentInterfaceId: $paymentInterfaceId, currencyId: $currencyId) { id paymentInterfaceId currencyId data description } }
useMutation
AdminWithdrawDocument
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
Code Block Info: KYC wating page path: "kyc-waiting", component: "KYCWaiting",
Methods useQuery
KycWaitingUsersDocument
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
KycUpdateDocument
Code Block mutation KYCUpdate($id: String!, $type: String!) { kycUpdate(id: $id, type: $type) }
Soft banned (Sub menu item) Page names 1.Soft banned
Code Block Info: Soft banned page path: "softbanned", component: "SoftBannedUsers",
Methods useQuery
SoftBannedUsersDocument
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
Code Block Info: list with all availible operations path: "", component: "OperationsListContainer",
Methods useQuery
OperationFiltersDocument
Code Block query OperationFilters { operationFilters { types statuses { final error waiting } } }
CurrencyMqDocument
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 } }
OperationsDocument
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
Code Block Info: operations details page path: "/operations/:id", component: "OperationDetailsContainer",
Methods useQuery
OperationDocument
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
Code Block Info: list with all availible orders path: "orders", component: "Orders",
Methods useQuery
AdminOrdersDocument
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 } }
MarketsDocument
Code Block query Markets { markets { id enabled enable_trading base_currency_id quote_currency_id marketDynamics { startPrice amount24h lastPrice lowPrice highPrice } } }
2.Order details
Code Block Info: Order details page path: "/operations/orders/:id", component: "OrderDetails",
Methods useQuery
AdminOrderDocument
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
CancelOrderDocument
Code Block mutation CancelOrder($id: String!) { cancelOrder(id: $id) }
Trades (Sub menu item) Page names 1.Trades
Code Block Info: list with all availible trades path: "trades", component: "Trades",
Methods useQuery
AdminTradesDocument
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 } }
MarketsDocument
Code Block query Markets { markets { id enabled enable_trading base_currency_id quote_currency_id marketDynamics { startPrice amount24h lastPrice lowPrice highPrice } } }