diff --git a/package.json b/package.json index ff3fd36..5d9a0a1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "rm -rf ./dist && tsc", "test": "jest", - "gen-types": "npx no-brainer-sdk@latest https://vakotrade.cryptosrvc-dev.com/graphql ./src/index.ts" + "gen-types": "npx no-brainer-sdk@1.0.11 https://vakotrade.cryptosrvc-dev.com/graphql ./src/index.ts" }, "keywords": [], "author": "Pawel-Kica", diff --git a/src/index.ts b/src/index.ts index 6233ba8..328f11c 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ -import { gql, GraphQLClient, RequestDocument } from 'graphql-request'; +import { gql, GraphQLClient, RequestDocument, Variables } from 'graphql-request'; +import { RequestConfig } from 'graphql-request/build/esm/types' export enum ToggleSwitch { on = 'on', @@ -42,6 +43,7 @@ payment_manual_approval_required = 'payment_manual_approval_required', crypto_address_added = 'crypto_address_added', manual_balance_update = 'manual_balance_update', mfa_enabled = 'mfa_enabled', +strategy_rule_violation = 'strategy_rule_violation', kyt_pending = 'kyt_pending', kyt_pending_aml = 'kyt_pending_aml', kyt_approved = 'kyt_approved', @@ -53,21 +55,60 @@ payment_fee_created = 'payment_fee_created', payment_fee_updated = 'payment_fee_updated', payment_fee_deleted = 'payment_fee_deleted', account_transaction = 'account_transaction', -strategy_rule_violation = 'strategy_rule_violation', vault_deposit = 'vault_deposit', vault_withdrawal = 'vault_withdrawal', vault_lock_expired = 'vault_lock_expired', vault_expired = 'vault_expired', vault_deactivated = 'vault_deactivated', vault_interests_accrued = 'vault_interests_accrued', +vault_account_created = 'vault_account_created', +vault_request_created = 'vault_request_created', referral_rewarded = 'referral_rewarded', +referral_one_time_rewarded = 'referral_one_time_rewarded', +referral_cashback_rewarded = 'referral_cashback_rewarded', +referral_commission_rewarded = 'referral_commission_rewarded', +referral_rebate_rewarded = 'referral_rebate_rewarded', margin_call = 'margin_call', margin_liquidation = 'margin_liquidation', derivatives_order_open = 'derivatives_order_open', derivatives_order_completed = 'derivatives_order_completed', derivatives_order_partially_filled = 'derivatives_order_partially_filled', derivatives_order_cancelled = 'derivatives_order_cancelled', -derivatives_order_rejected = 'derivatives_order_rejected' +derivatives_order_rejected = 'derivatives_order_rejected', +derivatives_trading_volume_updated = 'derivatives_trading_volume_updated', +api_key_expiration = 'api_key_expiration', +forgot_password_email = 'forgot_password_email', +webhook_disabled = 'webhook_disabled', +trading_grid_created = 'trading_grid_created', +otc_order_new = 'otc_order_new', +otc_order_completed = 'otc_order_completed', +otc_order_rejected = 'otc_order_rejected', +otc_order_cancelled = 'otc_order_cancelled', +voucher_created = 'voucher_created', +voucher_claimed = 'voucher_claimed', +voucher_updated = 'voucher_updated', +voucher_already_used = 'voucher_already_used', +voucher_code_not_found = 'voucher_code_not_found', +travel_rule_verification_required = 'travel_rule_verification_required', +admin_created = 'admin_created' +} + +export enum SearchLimitsEntity { +default = 'default', +accounts = 'accounts', +closed_orders = 'closed_orders', +payments = 'payments', +trades = 'trades' +} + +export enum TimeInterval { +second = 'second', +minute = 'minute', +hour = 'hour', +day = 'day', +week = 'week', +month = 'month', +year = 'year' } export enum OrderTimeInForce { @@ -108,18 +149,6 @@ crypto = 'crypto', fiat = 'fiat' } -export enum CryptoAddressTagType { -destination_tag = 'destination_tag', -memo_id = 'memo_id', -note = 'note', -tag = 'tag' -} - -export enum Role { -admin = 'admin', -trader = 'trader' -} - export enum UserKycStatus { incomplete = 'incomplete', rejected = 'rejected', @@ -128,15 +157,21 @@ submitted = 'submitted', not_started = 'not_started' } +export enum CryptoAddressTagType { +destination_tag = 'destination_tag', +memo_id = 'memo_id', +note = 'note', +tag = 'tag' +} + export enum KycType { individual = 'individual', corporate = 'corporate' } -export enum ToggleMfaPool { -optional = 'optional', -on = 'on', -off = 'off' +export enum FeeCalculationType { +sum = 'sum', +max = 'max' } export enum AccountTransactionClass { @@ -146,7 +181,8 @@ payment = 'payment', reward = 'reward', conversion = 'conversion', manual = 'manual', -referral_reward = 'referral_reward' +referral_reward = 'referral_reward', +wallet_transfer = 'wallet_transfer' } export enum AccountTransactionType { @@ -154,76 +190,15 @@ debit = 'debit', credit = 'credit' } -export enum FeeCalculationType { -sum = 'sum', -max = 'max' +export enum WalletType { +MAIN = 'MAIN', +PERSONAL = 'PERSONAL', +BOT = 'BOT' } -export enum HedgingOrderStatus { -new = 'new', +export enum PTSTargetAccount { pending = 'pending', -completed = 'completed', -cancelled = 'cancelled', -rejected = 'rejected' -} - -export enum InstrumentHistoryPeriodicity { -minute = 'minute', -minute5 = 'minute5', -minute10 = 'minute10', -minute15 = 'minute15', -minute30 = 'minute30', -hour = 'hour', -hour4 = 'hour4', -hour8 = 'hour8', -day = 'day', -week = 'week', -month = 'month' -} - -export enum InstrumentStrategyHedgingOrderPrice { -tob = 'tob', -vwap = 'vwap' -} - -export enum OnMinSpreadViolation { -allow = 'allow', -discard_crossed_layers = 'discard_crossed_layers', -discard_entire_book = 'discard_entire_book', -adjust_crossed_layers = 'adjust_crossed_layers' -} - -export enum DayOfWeek { -sun = 'sun', -mon = 'mon', -tue = 'tue', -wed = 'wed', -thu = 'thu', -fri = 'fri', -sat = 'sat' -} - -export enum InstrumentStrategyAlertTrigger { -orderbook_min_total_volume_violation = 'orderbook_min_total_volume_violation', -orderbook_min_ask_volume_violation = 'orderbook_min_ask_volume_violation', -orderbook_min_bid_volume_violation = 'orderbook_min_bid_volume_violation', -orderbook_max_spread_violation = 'orderbook_max_spread_violation', -orderbook_update_interval_violation = 'orderbook_update_interval_violation' -} - -export enum UploadDocumentType { -profile_picture = 'profile_picture', -passport = 'passport', -national_identity = 'national_identity', -driver_license = 'driver_license', -birth_certificate = 'birth_certificate', -bank_statement = 'bank_statement', -utility_bill = 'utility_bill', -proof_of_residence = 'proof_of_residence', -proof_of_id_front = 'proof_of_id_front', -proof_of_id_back = 'proof_of_id_back', -company_registration = 'company_registration', -memorandum_of_association = 'memorandum_of_association' +settlement = 'settlement' } export enum ApiKeyTypes { @@ -324,12 +299,20 @@ deposit_addresses_crypto = 'deposit_addresses_crypto', update_payment_approval_status = 'update_payment_approval_status', reprocess_payment = 'reprocess_payment', system_settings = 'system_settings', +system_settings_unsensitive = 'system_settings_unsensitive', system_logs = 'system_logs', +create_system_log_config = 'create_system_log_config', +update_system_log_config = 'update_system_log_config', +delete_system_log_config = 'delete_system_log_config', update_system_settings = 'update_system_settings', +update_unsensitive_system_setting = 'update_unsensitive_system_setting', upload_user_document = 'upload_user_document', users = 'users', update_user = 'update_user', create_user = 'create_user', +wallets = 'wallets', +create_wallet = 'create_wallet', +update_wallet = 'update_wallet', permissions_share = 'permissions_share', create_permissions_share = 'create_permissions_share', delete_permissions_share = 'delete_permissions_share', @@ -342,7 +325,8 @@ webhooks = 'webhooks', create_webhook = 'create_webhook', update_webhook = 'update_webhook', delete_webhook = 'delete_webhook', -update_maintenance_mode = 'update_maintenance_mode', +update_maintenance_mode = 'maintenance', +update_withdrawals_freeze = 'update_withdrawals_freeze', update_geo_restrictions = 'update_geo_restrictions', liquidity_report = 'liquidity_report', daily_balances_report = 'daily_balances_report', @@ -378,6 +362,7 @@ create_instrument_strategy_rule = 'create_instrument_strategy_rule', update_instrument_strategy_rule = 'update_instrument_strategy_rule', delete_instrument_strategy_rule = 'delete_instrument_strategy_rule', instruments_strategies_alerts = 'instruments_strategies_alerts', +update_instruments_strategies_alerts = 'update_instruments_strategies_alerts', vaults = 'vaults', create_vault = 'create_vault', update_vault = 'update_vault', @@ -394,6 +379,7 @@ trigger_vaults_interests_calculation = 'trigger_vaults_interests_calculation', trigger_vaults_locks_withdrawals = 'trigger_vaults_locks_withdrawals', trigger_expired_vaults_processing = 'trigger_expired_vaults_processing', trigger_delayed_vaults_trx_processing = 'trigger_delayed_vaults_trx_processing', +trigger_sync_external_apy = 'trigger_sync_external_apy', estimate_vault_interests = 'estimate_vault_interests', vaults_transactions_requests = 'vaults_transactions_requests', update_vault_transaction_request = 'update_vault_transaction_request', @@ -403,10 +389,12 @@ create_referral = 'create_referral', claim_referral = 'claim_referral', referrals_history = 'referrals_history', referrals_transactions_info = 'referrals_transactions_info', +create_referral_transaction_info = 'create_referral_transaction_info', referral_rewards = 'referral_rewards', create_referral_reward = 'create_referral_reward', update_referral_reward = 'update_referral_reward', delete_referral_reward = 'delete_referral_reward', +trigger_referral_rebate_rotation = 'trigger_referral_rebate_rotation', reschedule_delayed_referral_transactions = 'reschedule_delayed_referral_transactions', analytics_dashboard = 'analytics_dashboard', aggregate_dashboard = 'aggregate_dashboard', @@ -456,12 +444,117 @@ update_derivatives_trading_limit = 'update_derivatives_trading_limit', delete_derivatives_trading_limit = 'delete_derivatives_trading_limit', crypto_pay_payments = 'crypto_pay_payments', update_crypto_pay_payment = 'update_crypto_pay_payment', -derivatives_funding_history = 'derivatives_funding_history' +vouchers = 'vouchers', +voucher_codes = 'voucher_codes', +create_voucher = 'create_voucher', +update_voucher = 'update_voucher', +delete_voucher = 'delete_voucher', +derivatives_funding_history = 'derivatives_funding_history', +yield_adapters = 'yield_adapters', +create_yield_adapter = 'create_yield_adapter', +update_yield_adapter = 'update_yield_adapter', +delete_yield_adapter = 'delete_yield_adapter', +yield_transactions = 'yield_transactions', +vaults_strategies = 'vaults_strategies', +create_vault_strategy = 'create_vault_strategy', +update_vault_strategy = 'update_vault_strategy', +delete_vault_strategy = 'delete_vault_strategy', +otc_orders = 'otc_orders', +otc_create_order = 'otc_create_order', +otc_update_order = 'otc_update_order', +otc_hedging_orders = 'otc_hedging_orders', +otc_create_hedging_order = 'otc_create_hedging_order', +otc_update_hedging_order = 'otc_update_hedging_order', +otc_hedging_balances = 'otc_hedging_balances' +} + +export enum Role { +admin = 'admin', +trader = 'trader' +} + +export enum ToggleMfaPool { +optional = 'optional', +on = 'on', +off = 'off' +} + +export enum HedgingOrderStatus { +new = 'new', +pending = 'pending', +completed = 'completed', +cancelled = 'cancelled', +rejected = 'rejected' +} + +export enum InstrumentHistoryPeriodicity { +minute = 'minute', +minute5 = 'minute5', +minute10 = 'minute10', +minute15 = 'minute15', +minute30 = 'minute30', +hour = 'hour', +hour4 = 'hour4', +hour8 = 'hour8', +day = 'day', +week = 'week', +month = 'month' +} + +export enum InstrumentStrategyHedgingOrderPrice { +tob = 'tob', +vwap = 'vwap' +} + +export enum OnMinSpreadViolation { +allow = 'allow', +discard_crossed_layers = 'discard_crossed_layers', +discard_entire_book = 'discard_entire_book', +adjust_crossed_layers = 'adjust_crossed_layers' +} + +export enum DayOfWeek { +sun = 'sun', +mon = 'mon', +tue = 'tue', +wed = 'wed', +thu = 'thu', +fri = 'fri', +sat = 'sat' +} + +export enum InstrumentStrategyAlertTrigger { +orderbook_min_total_volume_violation = 'orderbook_min_total_volume_violation', +orderbook_min_ask_volume_violation = 'orderbook_min_ask_volume_violation', +orderbook_min_bid_volume_violation = 'orderbook_min_bid_volume_violation', +orderbook_max_spread_violation = 'orderbook_max_spread_violation', +orderbook_update_interval_violation = 'orderbook_update_interval_violation' +} + +export enum PTSUserStatus { +active = 'active', +requires_funding = 'requires_funding' +} + +export enum UploadDocumentType { +profile_picture = 'profile_picture', +passport = 'passport', +national_identity = 'national_identity', +driver_license = 'driver_license', +birth_certificate = 'birth_certificate', +bank_statement = 'bank_statement', +utility_bill = 'utility_bill', +proof_of_residence = 'proof_of_residence', +proof_of_id_front = 'proof_of_id_front', +proof_of_id_back = 'proof_of_id_back', +company_registration = 'company_registration', +memorandum_of_association = 'memorandum_of_association' } export enum KytProvider { elliptic = 'elliptic', -scorechain = 'scorechain' +scorechain = 'scorechain', +sumsub = 'sumsub' } export enum KytAnalysisTarget { @@ -531,6 +624,11 @@ approved = 'approved', rejected = 'rejected' } +export enum VaultLockStrategy { +aggregated = 'aggregated', +independent = 'independent' +} + export enum VaultRateType { flexible = 'flexible', fixed = 'fixed' @@ -550,12 +648,26 @@ manual = 'manual' } export enum VaultTransactionRequestStatus { +processing = 'processing', pending = 'pending', approved = 'approved', rejected = 'rejected', cancelled = 'cancelled' } +export enum YieldTransactionType { +deposit = 'deposit', +withdrawal = 'withdrawal' +} + +export enum YieldTransactionStatus { +new = 'new', +pending = 'pending', +completed = 'completed', +rejected = 'rejected', +cancelled = 'cancelled' +} + export enum TradginGridMode { arithmetic = 'arithmetic', geometric = 'geometric' @@ -586,13 +698,43 @@ stopped = 'stopped', errored = 'errored' } +export enum VoucherStatus { +active = 'active', +inactive = 'inactive', +expired = 'expired', +deleted = 'deleted' +} + +export enum VoucherCodeStatus { +pending = 'pending', +processing = 'processing', +completed = 'completed', +failed = 'failed', +cancelled = 'cancelled' +} + +export enum OtcOrderStatus { +new = 'new', +pending = 'pending', +completed = 'completed', +cancelled = 'cancelled', +rejected = 'rejected' +} + +export enum OtcOrderSide { +sell = 'sell', +buy = 'buy' +} + export enum KycProvider { SUM_AND_SUBSTANCE = 'SUM_AND_SUBSTANCE', BANK_ID = 'BANK_ID', MANUAL = 'MANUAL', SIGNICAT = 'SIGNICAT', UBBLE = 'UBBLE', -TRULIOO = 'TRULIOO' +TRULIOO = 'TRULIOO', +ZEROHASH = 'ZEROHASH', +GUDANG = 'GUDANG' } export enum KycProviderEnv { @@ -605,6 +747,11 @@ android = 'android', ios = 'ios' } +export enum SpotMargin { +spot = 'spot', +margin = 'margin' +} + export enum QueryEnum { version = 'version', open_orders = 'open_orders', @@ -628,14 +775,16 @@ total_users = 'total_users', user = 'user', account_transactions = 'account_transactions', accounts_balances = 'accounts_balances', +account_aggregated_users_balance = 'account_aggregated_users_balance', accounts = 'accounts', +collateral_state = 'collateral_state', limits_groups = 'limits_groups', fees_groups = 'fees_groups', payments_fees = 'payments_fees', trading_fees = 'trading_fees', payments_routes = 'payments_routes', -crypto_networks = 'crypto_networks', psp_services = 'psp_services', +crypto_networks = 'crypto_networks', payments_limits = 'payments_limits', api_keys = 'api_keys', cognito_pools = 'cognito_pools', @@ -649,9 +798,13 @@ geo_restrictions = 'geo_restrictions', trader_mfa_provider = 'trader_mfa_provider', admin_mfa_provider = 'admin_mfa_provider', is_margin_trading_enabled = 'is_margin_trading_enabled', +mcp_enabled = 'mcp_enabled', +mcp_parameters = 'mcp_parameters', products_enabled = 'products_enabled', +amls_status = 'amls_status', user_products_enabled = 'user_products_enabled', elliptic_filters = 'elliptic_filters', +search_limits = 'search_limits', accounts_portfolio_report = 'accounts_portfolio_report', orders_summary_report = 'orders_summary_report', conversions_summary_report = 'conversions_summary_report', @@ -681,8 +834,6 @@ currency_prices = 'currency_prices', convert_currency_amount = 'convert_currency_amount', ip_whitelist = 'ip_whitelist', hedging_accounts = 'hedging_accounts', -margin_account_transactions = 'margin_account_transactions', -margin_users_free_balances = 'margin_users_free_balances', admin_properties = 'admin_properties', admin_mfa_status = 'admin_mfa_status', elliptic_screenings = 'elliptic_screenings', @@ -722,6 +873,7 @@ system_logs = 'system_logs', logs_config = 'logs_config', whoami = 'whoami', is_trading_allowed = 'is_trading_allowed', +enabled_vaults = 'enabled_vaults', referrals_transactions_info = 'referrals_transactions_info', license = 'license', referral_rewards = 'referral_rewards', @@ -731,9 +883,25 @@ trading_grid_levels = 'trading_grid_levels', user_fees_config = 'user_fees_config', estimate_payment_notional_fee = 'estimate_payment_notional_fee', cash_holdings_report = 'cash_holdings_report', +totalValueOfCryptoAssetsInUSD = 'totalValueOfCryptoAssetsInUSD', +totalValueOfCryptoAssetsInEUR = 'totalValueOfCryptoAssetsInEUR', +total_assets_value = 'total_assets_value', trade_tiers = 'trade_tiers', -trade_volumes = 'trade_volumes', +tier_fees = 'tier_fees', +trades_rolling_volumes = 'trades_rolling_volumes', wallets = 'wallets', +wallet_transfers = 'wallet_transfers', +vouchers = 'vouchers', +voucher_codes = 'voucher_codes', +yield_adapters = 'yield_adapters', +yield_transactions = 'yield_transactions', +vaults_strategies = 'vaults_strategies', +pts_account_transactions = 'pts_account_transactions', +trading_view_templates = 'trading_view_templates', +otc_orders = 'otc_orders', +admin_otc_orders = 'admin_otc_orders', +otc_hedging_orders = 'otc_hedging_orders', +otc_hedging_balances = 'otc_hedging_balances', user_ip_geo_history = 'user_ip_geo_history', user_ip_geo_history_overview = 'user_ip_geo_history_overview', user_ip_geo_history_detail = 'user_ip_geo_history_detail' @@ -769,7 +937,8 @@ subject = 'subject' export enum TradingVolumeType { daily = 'daily', weekly = 'weekly', -monthly = 'monthly' +monthly = 'monthly', +total = 'total' } export enum PortfolioHistoryInterval { @@ -800,6 +969,7 @@ checkout = 'checkout', restrictions_check = 'restrictions_check', register_trader_local = 'register_trader_local', trader_signin_local = 'trader_signin_local', +reset_local_password = 'reset_local_password', create_admins = 'create_admins', delete_admin = 'delete_admin', admin_signin_local = 'admin_signin_local', @@ -807,7 +977,10 @@ create_local_admin = 'create_local_admin', create_instrument = 'create_instrument', update_instrument = 'update_instrument', delete_instrument = 'delete_instrument', -fill_instrument = 'fill_instrument', +migrate_price_history_to_timescaledb = 'migrate_price_history_to_timescaledb', +enable_continuous_aggregate_policies = 'enable_continuous_aggregate_policies', +disable_continuous_aggregate_policies = 'disable_continuous_aggregate_policies', +restore_price_bars = 'restore_price_bars', create_currency = 'create_currency', update_currency = 'update_currency', delete_currency = 'delete_currency', @@ -829,6 +1002,8 @@ update_user_password = 'update_user_password', update_user = 'update_user', create_user = 'create_user', update_anti_phishing_code = 'update_anti_phishing_code', +update_mfa_for_withdraw = 'update_mfa_for_withdraw', +resettle_pts = 'resettle_pts', create_account_transaction = 'create_account_transaction', create_limit_group = 'create_limit_group', update_limit_group = 'update_limit_group', @@ -846,6 +1021,9 @@ create_payment_session = 'create_payment_session', create_payment_route = 'create_payment_route', delete_payment_route = 'delete_payment_route', update_payment_route = 'update_payment_route', +create_crypto_network = 'create_crypto_network', +update_crypto_network = 'update_crypto_network', +delete_crypto_network = 'delete_crypto_network', create_payment_limit = 'create_payment_limit', update_payment_limit = 'update_payment_limit', delete_payment_limit = 'delete_payment_limit', @@ -867,10 +1045,12 @@ trigger_reject_hedging_remote_order_job = 'trigger_reject_hedging_remote_order_j update_system_setting = 'update_system_setting', update_system_settings = 'update_system_settings', update_maintenance_mode = 'update_maintenance_mode', +update_withdrawals_freeze = 'update_withdrawals_freeze', update_notifications_settings = 'update_notifications_settings', update_default_notifications = 'update_default_notifications', update_delayed_mutations = 'update_delayed_mutations', update_geo_restrictions = 'update_geo_restrictions', +travel_rule_country_list = 'travel_rule_country_list', update_elliptic_filters = 'update_elliptic_filters', update_admin_permissions = 'update_admin_permissions', create_kyc_manual_request = 'create_kyc_manual_request', @@ -896,6 +1076,7 @@ verify_user_mfa_token = 'verify_user_mfa_token', verify_admin_mfa_token = 'verify_admin_mfa_token', send_test_email = 'send_test_email', send_test_push = 'send_test_push', +send_forgot_password_email = 'send_forgot_password_email', create_kyc_user_data = 'create_kyc_user_data', update_kyc_user_data = 'update_kyc_user_data', delete_kyc_user_data = 'delete_kyc_user_data', @@ -913,8 +1094,6 @@ create_ip_whitelist_items = 'create_ip_whitelist_items', update_ip_whitelist_item = 'update_ip_whitelist_item', delete_ip_whitelist_item = 'delete_ip_whitelist_item', update_hedging_account = 'update_hedging_account', -send_margin_trade_notif = 'send_margin_trade_notif', -create_margin_account_transaction = 'create_margin_account_transaction', update_admin_properties = 'update_admin_properties', create_upload = 'create_upload', complete_upload = 'complete_upload', @@ -922,6 +1101,7 @@ update_elliptic_risk_threshold = 'update_elliptic_risk_threshold', update_scorechain_minimal_risk_score = 'update_scorechain_minimal_risk_score', update_payment_kyt_status = 'update_payment_kyt_status', reprocess_kyt_payment = 'reprocess_kyt_payment', +get_payment_kyt_url = 'get_payment_kyt_url', create_instrument_strategy_rule = 'create_instrument_strategy_rule', update_instrument_strategy_rule = 'update_instrument_strategy_rule', delete_instrument_strategy_rule = 'delete_instrument_strategy_rule', @@ -953,12 +1133,14 @@ create_system_config_log = 'create_system_config_log', update_system_config_log = 'update_system_config_log', delete_system_config_log = 'delete_system_config_log', reset_demo_balances = 'reset_demo_balances', +create_referral_transaction_info = 'create_referral_transaction_info', reschedule_delayed_referral_transactions = 'reschedule_delayed_referral_transactions', activate_license = 'activate_license', renew_license = 'renew_license', create_referral_reward = 'create_referral_reward', update_referral_reward = 'update_referral_reward', delete_referral_reward = 'delete_referral_reward', +trigger_referral_rebate_rotation = 'trigger_referral_rebate_rotation', start_trading_grid = 'start_trading_grid', stop_trading_grid = 'stop_trading_grid', update_trading_grid = 'update_trading_grid', @@ -968,14 +1150,35 @@ update_withdrawal_notional_fee = 'update_withdrawal_notional_fee', create_trade_tier = 'create_trade_tier', update_trade_tier = 'update_trade_tier', delete_trade_tier = 'delete_trade_tier', -delete_trades_volume = 'delete_trades_volume', +create_tier_fee = 'create_tier_fee', +update_tier_fee = 'update_tier_fee', +delete_tier_fee = 'delete_tier_fee', +delete_trades_rolling_volume = 'delete_trades_rolling_volume', +recalculate_trades_rolling_volume = 'recalculate_trades_rolling_volume', create_wallet = 'create_wallet', -eventus_upload_life_cycle_data_for_date = 'eventus_upload_life_cycle_data_for_date' -} - -export enum CounterpartyType { -vasp = 'vasp', -unhosted_wallet = 'unhosted_wallet' +update_wallet = 'update_wallet', +create_wallet_transfer = 'create_wallet_transfer', +eventus_upload_life_cycle_data_for_date = 'eventus_upload_life_cycle_data_for_date', +create_voucher = 'create_voucher', +update_voucher = 'update_voucher', +delete_voucher = 'delete_voucher', +claim_voucher = 'claim_voucher', +create_yield_adapter = 'create_yield_adapter', +update_yield_adapter = 'update_yield_adapter', +delete_yield_adapter = 'delete_yield_adapter', +create_vault_strategy = 'create_vault_strategy', +update_vault_strategy = 'update_vault_strategy', +delete_vault_strategy = 'delete_vault_strategy', +trigger_sync_external_apy = 'trigger_sync_external_apy', +upload_trading_view_template = 'upload_trading_view_template', +complete_upload_trading_view_template = 'complete_upload_trading_view_template', +update_trading_view_template = 'update_trading_view_template', +delete_trading_view_template = 'delete_trading_view_template', +createOtcOrder = 'createOtcOrder', +updateOtcOrder = 'updateOtcOrder', +send_otc_notification = 'send_otc_notification', +createOtcHedgingOrder = 'createOtcHedgingOrder', +updateOtcHedgingOrder = 'updateOtcHedgingOrder' } export enum SyncConfigMode { @@ -1052,11 +1255,18 @@ title?: string; body: string; class: UserUpdateNotificationClass; reference_nr?: string; +code?: string; +vars?: JSONObject; +} + +export interface JSONObject{ +JSONObject?: JSONObject; } export interface Setting{ name: string; value?: string; +sensitive?: ToggleSwitch; } export interface NotificationOptions{ @@ -1115,6 +1325,17 @@ export interface Int{ Int?: number; } +export interface SearchLimitsResponse{ +entity: SearchLimitsEntity; +default_time_frame_value: number; +default_time_frame_unit: TimeInterval; +max_time_frame_value: number; +max_time_frame_unit: TimeInterval; +max_user_time_frame_value: number; +max_user_time_frame_unit: TimeInterval; +page_limit: number; +} + export interface Order{ serial_id: number; order_id: string; @@ -1147,6 +1368,7 @@ total?: number; created_at_iso: string; updated_at_iso: string; expires_at_iso?: string; +wallet_id?: string; } export interface InstrumentPriceHistory{ @@ -1206,18 +1428,79 @@ name: string; is_active: ToggleSwitch; payment_routes: PaymentRoute[]; rates?: CurrencyPrice; +disabled: ToggleSwitch; } -export interface CurrencyPrice{ -base_currency_id: string; -quote_currency_id: string; -ask: number; -bid: number; -source: string; -updated_at: string; +export interface LimitGroup{ +serial_id?: number; +limit_group_id: string; +name?: string; +description?: string; +kyc_status?: UserKycStatus; +meta?: string; +payment_limits: PaymentLimit[]; +trading_limits: TradingLimit[]; +disabled_instruments: string[]; +disabled_currencies: string[]; +disabled_payment_routes: string[]; +aggregated_payment_limit?: AggregatedPaymentLimit; } -export interface ClientCustomProperty{ +export interface PaymentLimit{ +serial_id?: number; +limit_group_id: string; +currency_id: string; +deposit_enabled: ToggleSwitch; +deposit_min_amount: number; +deposit_daily_limit: number; +deposit_weekly_limit: number; +deposit_monthly_limit: number; +deposit_auto_approval_amount: number; +withdrawal_enabled: ToggleSwitch; +withdrawal_min_amount: number; +withdrawal_daily_limit: number; +withdrawal_weekly_limit: number; +withdrawal_monthly_limit: number; +withdrawal_auto_approval_amount: number; +notion_currency?: string; +deposit_auto_reject: ToggleSwitch; +withdrawal_auto_reject: ToggleSwitch; +limit_group: LimitGroup; +} + +export interface TradingLimit{ +serial_id?: number; +limit_group_id: string; +instrument_id: string; +daily_limit: number; +weekly_limit: number; +monthly_limit: number; +notion_currency?: string; +limit_group: LimitGroup; +} + +export interface CurrencyPrice{ +base_currency_id: string; +quote_currency_id: string; +ask: number; +bid: number; +source: string; +updated_at: string; +} + +export interface AggregatedPaymentLimit{ +serial_id?: number; +limit_group_id: string; +currency_id: string; +withdrawal_daily_limit: number; +withdrawal_weekly_limit: number; +withdrawal_monthly_limit: number; +is_active: ToggleSwitch; +auto_reject: ToggleSwitch; +limit_group: LimitGroup; +} + +export interface ClientCustomProperty{ property: string; value: string; } @@ -1233,6 +1516,7 @@ network?: string; psp_service_id?: string; reference?: string; address_type?: string; +travel_rule_enabled: ToggleSwitch; created_at: string; updated_at: string; created_at_iso: string; @@ -1341,10 +1625,14 @@ parent_user?: User; created_at_iso: string; updated_at_iso?: string; trading_volumes: UsersTradingVolume[]; -role?: Role; is_referral_claim_available: boolean; -trades_volume: number; -trade_tier: TradeTier; +trades_volume?: number; +trade_tier?: TradeTier; +volume_to_next_tier?: number; +is_travel_rule_enabled: boolean; +exposure: FindExposureResult; +active_balances: AccountActiveBalancesModel[]; +pts_info?: PTSUser; } export interface Boolean{ @@ -1358,60 +1646,66 @@ kyc_value: string; updated_at: string; } -export interface AdminProperty{ -admin_id: string; -name: string; -value: string; +export interface UsersTradingVolume{ +user_id: string; +instrument_id: string; +daily_volume: number; +weekly_volume: number; +monthly_volume: number; +last_daily_volume: number; +last_weekly_volume: number; +last_monthly_volume: number; +total_volume: number; updated_at: string; +instrument: Instrument; +notion_daily_volume?: number; +notion_weekly_volume?: number; +notion_monthly_volume?: number; } -export interface AdminEventsLog{ -action: string; -actor_id?: string; -actor_ip?: string; -context: string; -action_at: string; -ts_iso: string; -} - -export interface Admin{ -admin_id: string; -name: string; -updated_by?: string; +export interface TradeRollingVolume{ +serial_id: number; +user_id: string; +volume: number; created_at: string; -updated_at: string; -password_hash?: string; -last_login_at?: string; -last_login_ip?: string; -mfa_status?: string; } -export interface PermissionShare{ -user_id: string; -role_id: Role; -subject: string; -shared_by: string; -shared_at: string; -shared_at_iso: string; +export interface FeeGroup{ +serial_id?: number; +fee_group_id: string; +name?: string; +description?: string; +beneficiary_user_id: string; +kyc_status?: UserKycStatus; +meta?: string; +calendar_month_timeframe?: string; +trading_fees: TradingFee[]; +payment_fees: PaymentFee[]; } -export interface PermissionPreset{ -name: string; -subjects: string[]; -created_at: string; -updated_at: string; -created_by: string; -updated_by?: string; +export interface PaymentFee{ +serial_id?: number; +payment_route_id?: string; +currency_id: string; +fee_group_id: string; +withdrawal_progressive_fee?: number; +withdrawal_flat_fee?: number; +deposit_progressive_fee?: number; +deposit_flat_fee?: number; +calculation_type?: FeeCalculationType; +fee_group: FeeGroup; +payment_route?: PaymentRoute; } -export interface CognitoPool{ +export interface TradingFee{ serial_id?: number; -name: string; -cognito_pool_id: string; -role: Role; -jwks: string; -is_active: ToggleSwitch; -mfa_status: ToggleMfaPool; +instrument_id: string; +fee_group_id: string; +maker_progressive: number; +taker_progressive: number; +maker_flat: number; +taker_flat: number; +fee_group: FeeGroup; } export interface AccountTransaction{ @@ -1442,6 +1736,10 @@ user?: User; trade?: Trade; payment?: Payment; conversion?: Conversion; +wallet_id?: string; +wallet_transfer?: WalletTransfer; +from_wallet_id?: string; +to_wallet_id?: string; } export interface Account{ @@ -1463,6 +1761,8 @@ user_id: string; name: string; description?: string; created_at: string; +is_active: string; +type?: WalletType; } export interface AccountTransactionNotionalValue{ @@ -1471,6 +1771,27 @@ currency_id: string; amount: number; } +export interface PTSAccount{ +account_id: string; +pending_balance: number; +settlement_balance: number; +} + +export interface PTSAccountTransaction{ +serial_id?: number; +pts_transaction_id: string; +account_id?: string; +amount: number; +post_balance: number; +target_account: PTSTargetAccount; +type: AccountTransactionType; +comment?: string; +created_at: string; +created_at_iso: string; +account?: PTSAccount; +currency_id?: string; +} + export interface AccountsResult{ serial_id?: number; account_id: string; @@ -1486,22 +1807,100 @@ username?: string; created_at_iso: string; updated_at_iso: string; balance_quoted?: number; +pts_balances?: PTSAccount; } export interface AccountBalance{ -account_id: string; currency_id: string; total_balance: number; exposed_balance: number; free_balance: number; currency: Currency; margin_exposure: number; +wallet_id?: string; +pending_balance?: number; +settlement_balance?: number; free_balance_quoted?: number; } -export interface ExposureItem{ +export interface ApiKey{ +serial_id: number; +api_key_id: string; +name?: string; +secret_hash: string; +expires_at: string; +created_at: string; +is_active: ToggleSwitch; +type: ApiKeyTypes; +trader_id?: string; +created_by: string; +hmac_required: ToggleSwitch; +created_at_iso: string; +expires_at_iso?: string; +permissions: Permission[]; +ip_address: string[]; +} + +export interface CreateApiKeyResult{ +api_key_id: string; +expires_at: string; +api_key_secret: string; +} + +export interface PermissionShare{ +user_id: string; +role_id: Role; +subject: string; +shared_by: string; +shared_at: string; +shared_at_iso: string; +} + +export interface Admin{ +admin_id: string; +name: string; +updated_by?: string; +created_at: string; +updated_at: string; +password_hash?: string; +last_login_at?: string; +last_login_ip?: string; +mfa_status?: ToggleSwitch; +} + +export interface CognitoPool{ +serial_id?: number; +name: string; +cognito_pool_id: string; +role: Role; +jwks: string; +is_active: ToggleSwitch; +mfa_status: ToggleMfaPool; +} + +export interface IpWhitelistItem{ +serial_id: number; +ip_address: string; +ip_whitelist_id: string; +email?: string; +note?: string; +updated_at?: string; +created_at: string; +created_at_iso: string; +updated_at_iso: string; +} + +export interface WalletTransfer{ +serial_id: number; +transfer_id: string; +user_id: string; +from_wallet_id: string; +to_wallet_id: string; currency_id: string; amount: number; +created_at: string; +from_post_balance: number; +to_post_balance: number; } export interface HedgingAccount{ @@ -1530,77 +1929,11 @@ fees_sync_enabled: ToggleSwitch; created_at_iso: string; } -export interface FeeGroup{ -serial_id?: number; -fee_group_id: string; -name?: string; -description?: string; -beneficiary_user_id: string; -kyc_status?: UserKycStatus; -meta?: string; -trading_fees: TradingFee[]; -payment_fees: PaymentFee[]; -} - -export interface PaymentFee{ -serial_id?: number; -payment_route_id?: string; -currency_id: string; -fee_group_id: string; -withdrawal_progressive_fee?: number; -withdrawal_flat_fee?: number; -deposit_progressive_fee?: number; -deposit_flat_fee?: number; -calculation_type?: FeeCalculationType; -fee_group: FeeGroup; -payment_route?: PaymentRoute; -} - -export interface LimitGroup{ -serial_id?: number; -limit_group_id: string; -name?: string; -description?: string; -kyc_status?: UserKycStatus; -meta?: string; -payment_limits: PaymentLimit[]; -trading_limits: TradingLimit[]; -disabled_instruments: string[]; -disabled_currencies: string[]; -disabled_payment_routes: string[]; -aggregated_payment_limit?: AggregatedPaymentLimit; -} - -export interface PaymentLimit{ -serial_id?: number; -limit_group_id: string; -currency_id: string; -deposit_enabled: ToggleSwitch; -deposit_min_amount: number; -deposit_daily_limit: number; -deposit_weekly_limit: number; -deposit_monthly_limit: number; -deposit_auto_approval_amount: number; -withdrawal_enabled: ToggleSwitch; -withdrawal_min_amount: number; -withdrawal_daily_limit: number; -withdrawal_weekly_limit: number; -withdrawal_monthly_limit: number; -withdrawal_auto_approval_amount: number; -notion_currency?: string; -auto_pending: ToggleSwitch; -limit_group: LimitGroup; -} - -export interface TradingLimit{ -serial_id?: number; -limit_group_id: string; -instrument_id: string; -daily_limit: number; -weekly_limit: number; -monthly_limit: number; -notion_currency?: string; -limit_group: LimitGroup; +export interface AdminProperty{ +admin_id: string; +name: string; +value: string; +updated_at: string; } export interface HedgingOrder{ @@ -1624,6 +1957,7 @@ expires_at?: string; version: number; created_at_iso: string; updated_at_iso: string; +average_price?: number; instrument: Instrument; } @@ -1647,6 +1981,7 @@ meta?: string; price_bars: InstrumentPriceHistory[]; recent_price_bar?: InstrumentPriceHistory; base_currency: Currency; +current_issues: JSONObject[]; quote_currency: Currency; trading_fees?: TradingFee; price?: InstrumentPrice; @@ -1697,7 +2032,8 @@ on_min_spread_violation?: OnMinSpreadViolation; maximum_publish_quantity: number; allow_negative_markup?: ToggleSwitch; updated_at_iso: string; -hedge_balance: number; +hedge_balance?: number; +current_issues: JSONObject[]; } export interface InstrumentsStrategiesSchedule{ @@ -1740,6 +2076,44 @@ disable_hedging_if_violated: ToggleSwitch; instrument_strategy: InstrumentStrategy; } +export interface AccountActiveBalancesModel{ +user_id: string; +currency_id: string; +serial_id: string; +account_id: string; +balance: number; +wallet_id?: string; +created_at: string; +updated_at: string; +} + +export interface PTSUser{ +user_id: string; +pts_status: PTSUserStatus; +credit_limit: number; +credit_utilized: number; +net_equity: number; +} + +export interface AccountAggregatedBalance{ +user_id: string; +currency_id: string; +balance: number; +updated_at: string; +email?: string; +updated_at_iso: string; +balance_quoted?: number; +} + +export interface AdminEventsLog{ +action: string; +actor_id?: string; +actor_ip?: string; +context: string; +action_at: string; +ts_iso: string; +} + export interface Upload{ upload_id: string; user_id: string; @@ -1760,35 +2134,18 @@ upload_id: string; upload_url: string; } -export interface ApiKey{ -serial_id: number; -api_key_id: string; -name?: string; -secret_hash: string; -expires_at: string; -created_at: string; -is_active: ToggleSwitch; -type: ApiKeyTypes; -trader_id?: string; -created_by: string; -hmac_required: ToggleSwitch; -created_at_iso: string; -expires_at_iso?: string; -permissions: Permission[]; -ip_address: string[]; -} - -export interface CreateApiKeyResult{ -api_key_id: string; -expires_at: string; -api_key_secret: string; -} - export interface SignInResult{ jwt: string; expires_at: number; } +export interface IpBlacklistItem{ +ip_address: string; +updated_at: string; +reason?: string; +updated_at_iso: string; +} + export interface TimelineEvent{ user_id: string; event_name: NotificationTrigger; @@ -1799,61 +2156,21 @@ instrument?: Instrument; export interface UserIpGeoHistory{ date_ts: string; -user_id: string; -ip_address: string; -country?: string; -region?: string; -lat: number; -lon: number; -user_agent?: string; -} - -export interface UserIpGeoHistoryOverview{ -users: number; -country?: string; -region?: string; -lat: number; -lon: number; -} - -export interface IpWhitelistItem{ -serial_id: number; -ip_address: string; -ip_whitelist_id: string; -email?: string; -note?: string; -updated_at?: string; -created_at: string; -created_at_iso: string; -updated_at_iso: string; -} - -export interface TradingFee{ -serial_id?: number; -instrument_id: string; -fee_group_id: string; -maker_progressive: number; -taker_progressive: number; -maker_flat: number; -taker_flat: number; -fee_group: FeeGroup; +user_id: string; +ip_address: string; +country?: string; +region?: string; +lat: number; +lon: number; +user_agent?: string; } -export interface UsersTradingVolume{ -user_id: string; -instrument_id: string; -daily_volume: number; -weekly_volume: number; -monthly_volume: number; -last_daily_volume: number; -last_weekly_volume: number; -last_monthly_volume: number; -total_volume: number; -updated_at: string; -instrument: Instrument; -notion_daily_volume?: number; -notion_weekly_volume?: number; -notion_monthly_volume?: number; +export interface UserIpGeoHistoryOverview{ +users: number; +country?: string; +region?: string; +lat?: number; +lon?: number; } export interface Trade{ @@ -1873,34 +2190,17 @@ created_at_iso: string; user?: User; instrument?: Instrument; order?: Order; +wallet_id?: string; } -export interface AggregatedPaymentLimit{ -serial_id?: number; -limit_group_id: string; -currency_id: string; -withdrawal_daily_limit: number; -withdrawal_weekly_limit: number; -withdrawal_monthly_limit: number; -is_active: ToggleSwitch; -limit_group: LimitGroup; -} - -export interface TradesVolume{ -serial_id: number; -user_id: string; -volume: number; -created_at: string; -} - -export interface TradeTier{ -serial_id: number; +export interface TierFee{ +tier_fee_id: string; tier_id: string; -fee_group_id: string; -name: string; +instrument_id: string; maker_progressive: number; taker_progressive: number; -threshold: number; +maker_flat: number; +taker_flat: number; } export interface KytScreening{ @@ -1908,13 +2208,13 @@ serial_id?: number; screening_id?: string; provider: KytProvider; payment_id: string; +report_id: string; risk_score?: number; error_message?: string; analysis_target?: KytAnalysisTarget; analysed_at: string; created_at: string; updated_at: string; -pdf_report_url: string; evaluation_detail: EllipticEvaluationSource[]; } @@ -1924,6 +2224,24 @@ rule_name?: string; risk_score: number; } +export interface LimitsStatusStructure{ +limit?: number; +filled?: number; +remaining?: number; +} + +export interface LimitsStatusPeriods{ +currency_id?: string; +daily: LimitsStatusStructure; +weekly: LimitsStatusStructure; +monthly: LimitsStatusStructure; +} + +export interface LimitsStatus{ +payments: LimitsStatusPeriods; +aggregated?: LimitsStatusPeriods; +} + export interface Payment{ payment_id: string; payment_route_id: string; @@ -1937,8 +2255,6 @@ psp_service_id?: string; psp_event_bridge_event_id?: string; crypto_transaction_id?: string; crypto_address?: string; -crypto_address_tag_type?: CryptoAddressTagType; -crypto_address_tag_value?: string; crypto_network?: string; crypto_source_address?: string; crypto_network_fee_preference?: CryptoNetworkFeePreference; @@ -1977,38 +2293,17 @@ manual_transaction_date?: string; internal_transfer_cross_reference?: string; payment_route?: PaymentRoute; manual_transaction_date_iso?: string; +comment?: string; account_transactions: AccountTransaction[]; -fiat_bank_name?: string; -fiat_bank_address?: string; -fiat_bank_bic?: string; -fiat_beneficiary_name?: string; -fiat_beneficiary_account_number?: string; -fiat_beneficiary_address_line_1?: string; -fiat_beneficiary_address_line_2?: string; -fiat_routing_number?: string; -fiat_reference?: string; -fiat_notes?: string; -fiat_transfer_type?: string; -fiat_bank_country?: string; -fiat_bank_region?: string; -fiat_bank_city?: string; -fiat_bank_postal_code?: string; -fiat_beneficiary_country?: string; -fiat_beneficiary_region?: string; -fiat_beneficiary_city?: string; -fiat_beneficiary_postal_code?: string; -intermediary_bank_name?: string; -intermediary_iban?: string; -intermediary_country?: string; -intermediary_street_address?: string; -intermediary_city?: string; -intermediary_region?: string; -intermediary_bic?: string; travel_rule_response?: string; +travel_rule_message?: string; properties: PaymentProperty[]; screenings: KytScreening[]; reference?: string; crypto_address_reference?: string; +crypto_address_tag_type?: string; +crypto_address_tag_value?: string; +wallet_id?: string; } export interface PaymentProperty{ @@ -2050,23 +2345,6 @@ crypto_network: string; crypto_network_name: string; } -export interface LimitsStatusStructure{ -limit?: number; -filled?: number; -remaining?: number; -} - -export interface LimitsStatusPeriods{ -daily: LimitsStatusStructure; -weekly: LimitsStatusStructure; -monthly: LimitsStatusStructure; -} - -export interface LimitsStatus{ -payments: LimitsStatusPeriods; -aggregated?: LimitsStatusPeriods; -} - export interface ConversionQuotesRisks{ target_currency_amount_unexecuted: number; source_currency_amount_unexecuted: number; @@ -2126,6 +2404,7 @@ user: User; created_at_iso: string; updated_at_iso: string; instrument?: Instrument; +wallet_id?: string; } export interface EstimateOrderFee{ @@ -2150,6 +2429,15 @@ expires_at_iso: string; current_time_iso: string; } +export interface PermissionPreset{ +name: string; +subjects: string[]; +created_at: string; +updated_at: string; +created_by: string; +updated_by?: string; +} + export interface ReferralTransactionInfo{ serial_id?: number; referral_transaction_id: string; @@ -2242,6 +2530,7 @@ min_withdrawal_amount: number; min_deposit_amount: number; cut_off_time_seconds: number; lock_in_period_seconds?: number; +lock_strategy: VaultLockStrategy; effective_date_from: string; effective_date_to?: string; rate_type: VaultRateType; @@ -2260,6 +2549,8 @@ effective_date_from_iso: string; effective_date_to_iso?: string; created_at_iso: string; updated_at_iso?: string; +has_strategy: ToggleSwitch; +level5_apy?: number; } export interface VaultTransaction{ @@ -2267,6 +2558,7 @@ serial_id?: number; vault_id: string; user_id: string; vault_transaction_id: string; +idempotency_key?: string; vault_account_id: string; account_transaction_id?: string; amount: number; @@ -2277,6 +2569,7 @@ transaction_class: VaultsTransactionClass; comment?: string; is_delayed?: ToggleSwitch; delayed_until?: string; +lock_id?: string; created_by?: string; created_at: string; delayed_until_iso?: string; @@ -2284,6 +2577,8 @@ vault?: Vault; user?: User; created_at_iso: string; currency?: Currency; +wallet_id?: string; +apy?: number; } export interface VaultAccount{ @@ -2295,6 +2590,7 @@ balance: number; version: number; created_at: string; updated_at: string; +wallet_id: string; vault?: Vault; user?: User; balance_quoted?: number; @@ -2318,13 +2614,52 @@ status: VaultTransactionRequestStatus; approval_reason?: string; approved_by?: string; approved_at?: string; +lock_id?: string; created_at: string; updated_at: string; username: string; +email: string; vault: Vault; created_at_iso: string; updated_at_iso: string; approved_at_iso?: string; +wallet_id?: string; +apy?: number; +} + +export interface VaultStrategy{ +serial_id: number; +vault_strategy_id: string; +vault_id: string; +yield_adapter_id: string; +yield_sync: ToggleSwitch; +yield_margin_percent: number; +funding_sync: ToggleSwitch; +external_vault_id?: string; +meta?: string; +funding_error_attempts_threshold?: number; +funding_error_attempts_count?: number; +disable_vault_on_error_attempts_threshold_exceeded?: ToggleSwitch; +reject_request_on_funding_failure?: ToggleSwitch; +version?: number; +error_message?: string; +created_at: string; +updated_at: string; +created_at_iso: string; +updated_at_iso: string; +vault?: Vault; +} + +export interface YieldAdapter{ +serial_id: number; +yield_adapter_id: string; +service_url: string; +service_api_key: string; +sync: ToggleSwitch; +created_at: string; +updated_at: string; +created_at_iso: string; +updated_at_iso: string; } export interface VaultTransactionEarned{ @@ -2336,7 +2671,9 @@ total_earned_quoted: string; today_earned: string; today_earned_quoted: string; days_30_earned: string; +days_30_earned_quoted: string; days_7_earned: string; +days_7_earned_quoted: string; } export interface VaultTransactionCalculatedEarned{ @@ -2347,6 +2684,28 @@ vaults_transactions_7d_total_sum: number; vaults_transactions_30d_total_sum: number; } +export interface YieldTransaction{ +serial_id?: number; +yield_transaction_id: string; +external_transaction_id?: string; +type: YieldTransactionType; +status: YieldTransactionStatus; +amount: number; +yield_adapter_id: string; +vault_transaction_request_id: string; +vault_transaction_id?: string; +meta?: string; +version: number; +error_message?: string; +created_at: string; +updated_at: string; +created_at_iso: string; +updated_at_iso: string; +yield_adapter: YieldAdapter; +vault_transaction_request: VaultTransactionRequest; +vault_transaction?: VaultTransaction; +} + export interface Referral{ serial_id: number; referral_id: string; @@ -2382,6 +2741,7 @@ min_staked_vault_currency_id?: string; min_traded_volume_required: ToggleSwitch; min_traded_volume?: number; min_traded_volume_currency_id?: string; +min_traded_volume_includes_margin: ToggleSwitch; created_at: string; updated_at: string; created_at_iso: string; @@ -2418,6 +2778,13 @@ note?: string; created_at?: string; } +export interface TotalAssetsValue{ +currency_id: string; +total_crypto_value: number; +balance: number; +total_staked_value: number; +} + export interface TradingGrid{ serial_id?: number; trading_grid_id: string; @@ -2465,6 +2832,86 @@ updated_at: string; version: number; } +export interface TradeTier{ +tier_id: string; +name: string; +fee_group_id: string; +threshold: number; +} + +export interface Voucher{ +voucher_id: string; +name: string; +description?: string; +value: number; +currency_id: string; +status: VoucherStatus; +total_usage_limit: number; +user_usage_limit: number; +current_usage_count: number; +expiry_date: string; +registration_date_from?: string; +registration_date_to?: string; +kyc_statuses: UserKycStatus[]; +limit_group_id?: string; +tag?: string; +created_by?: string; +created_at: string; +updated_at: string; +voucher_codes: VoucherCode[]; +created_at_iso?: string; +updated_at_iso?: string; +expiry_date_iso?: string; +registration_date_from_iso?: string; +registration_date_to_iso?: string; +} + +export interface VoucherCode{ +serial_id: number; +voucher_id: string; +code: string; +user_id?: string; +status: VoucherCodeStatus; +error_message?: string; +claimed_at?: string; +created_at: string; +} + +export interface OtcOrder{ +order_id: string; +user_id: string; +instrument_id: string; +price: number; +quantity: number; +status: OtcOrderStatus; +side: OtcOrderSide; +created_at: string; +updated_at: string; +message?: string; +notes?: string; +} + +export interface OtcHedgingBalance{ +instrument_id: string; +balance: number; +created_at: string; +updated_at: string; +} + +export interface OtcHedgingOrder{ +order_id: string; +user_id: string; +instrument_id: string; +price: number; +quantity: number; +status: OtcOrderStatus; +side: OtcOrderSide; +created_at: string; +updated_at: string; +message?: string; +notes?: string; +} + export interface Country{ name: string; code: string; @@ -2486,16 +2933,16 @@ uri: string; qr: string; } -export interface IpBlacklistItem{ -ip_address: string; -updated_at: string; +export interface WithdrawalsFreezeModel{ +enabled: ToggleSwitch; reason?: string; -updated_at_iso: string; +expires_at?: string; } export interface HealthcheckResult{ maintenance_message?: string; maintenance_mode?: boolean; +withdrawals_freeze?: WithdrawalsFreezeModel; } export interface SsoSettingsItem{ @@ -2533,7 +2980,7 @@ date_ts: string; date_ts_iso: string; } -export interface AccountsPortfolioReportItem{ +export interface AccountsPortfolioItem{ currency_id: string; balance: number; } @@ -2581,7 +3028,7 @@ export interface LiquidityReportResult{ broker: LiquidityReportBrokerAccountBalanceReportItem[]; payments: LiquidityReportPaymentRouteReportItem[]; hedging: LiquidityReportStrategyHedgingBalanceReportItem[]; -accounts: AccountsPortfolioReportItem[]; +accounts: AccountsPortfolioItem[]; fireblocks_rolling_limits?: FireblocksRollingLimits; } @@ -2607,6 +3054,7 @@ export interface ProductsEnabled{ derivatives: string; vaults: string; referrals: string; +crypto_pay: string; } export interface EllipticFilterConfig{ @@ -2620,6 +3068,17 @@ elliptic_address_cooldown_filter_enabled: ToggleSwitch; elliptic_address_cooldown_validity_days: number; } +export interface AmlsStatus{ +elliptic_aml: string; +sumsub_aml: string; +scorechain_aml: string; +} + +export interface McpParameters{ +mcp_url: string; +mcp_client_id: string; +} + export interface FiatDepositDetails{ fiat_bank_name?: string; fiat_bank_address?: string; @@ -2650,6 +3109,13 @@ id: string; name: string; } +export interface CollateralState{ +current_collateral: number; +threshold_amount: number; +threshold_percent: number; +withdrawals_allowed: ToggleSwitch; +} + export interface CreateAccountTransactionResult{ parent_transaction_id: string; account_transactions: AccountTransaction[]; @@ -2663,6 +3129,7 @@ payment?: Payment; conversion?: Conversion; notification?: UserUpdateNotification; healthcheck?: HealthcheckResult; +vault_transaction?: VaultTransaction; } export interface PushToken{ @@ -2670,6 +3137,16 @@ platform: Platform; token: string; } +export interface ExposureItem{ +currency_id: string; +amount: number; +wallet_id?: string; +} + +export interface FindExposureResult{ +items: ExposureItem[]; +} + export interface AmlScreeningCluster{ name: string; category: string; @@ -2697,7 +3174,9 @@ chainanalysis?: AmlScreeningChainAnalysis; export interface MarginUserFreeBalanceItem{ user_id: string; +wallet_id: string; free_balance: number; +currency_id: string; } export interface GeoData{ @@ -2729,7 +3208,8 @@ slack_webhooks: string[]; export interface VaultRequestResponse{ status: string; message: string; -data?: VaultTransaction; +transaction?: VaultTransaction; +request?: VaultTransactionRequest; } export interface VaultTransactionTodayEarned{ @@ -2816,17 +3296,56 @@ export interface SimulationDetails{ trades: TradeDetails[]; } -export interface EstimateTradingGridResult{ -total_profit: number; -profit_percentage: number; -floating_pnl: number; -annualized_yield: number; -simulation_details: SimulationDetails; +export interface EstimateTradingGridResult{ +total_profit: number; +profit_percentage: number; +floating_pnl: number; +annualized_yield: number; +simulation_details: SimulationDetails; +} + +export interface WalletsResult{ +wallets: Wallet[]; +personal_wallets_limit: number; +} + +export interface TradingViewTemplateModel{ +serial_id: number; +template_id: string; +template_name: string; +template_type: SpotMargin; +instrument_id: string; +url: string; +update_url?: string; +created_at?: string; +updated_at?: string; +touched_at?: string; +periodicity?: InstrumentHistoryPeriodicity; +created_at_iso?: string; +updated_at_iso?: string; +touched_at_iso?: string; +} + +export interface UpdateTradingViewTemplateModel{ +serial_id: number; +template_id: string; +template_name: string; +template_type: SpotMargin; +instrument_id: string; +update_url: string; +created_at?: string; +updated_at?: string; +touched_at?: string; +periodicity?: InstrumentHistoryPeriodicity; +} + +export interface TradingViewTemplateUploadResult{ +template_id: string; +upload_url: string; } export interface RegionBlacklistItemInput{ code: string; -list: BlacklistItemInput[]; } export interface BlacklistItemInput{ @@ -2861,14 +3380,13 @@ fiat_beneficiary_address_line_2?: string; export interface KycPreferenceInput{ provider?: KycProvider; provider_url?: string; -type?: KycType; provider_env?: KycProviderEnv; provider_secret_key: string; enabled: boolean; } -export type QueryType = 'version'|'open_orders'|'closed_orders'|'estimate_order'|'trades'|'sso_settings'|'healthcheck'|'admins'|'instruments'|'instrument_price_bars'|'currencies'|'payments'|'deposit_address_crypto'|'deposit_addresses_crypto'|'conversions'|'conversion_quotes'|'conversion_quotes_risks'|'users'|'total_users'|'user'|'account_transactions'|'accounts_balances'|'accounts'|'limits_groups'|'fees_groups'|'payments_fees'|'trading_fees'|'payments_routes'|'crypto_networks'|'psp_services'|'payments_limits'|'api_keys'|'cognito_pools'|'instruments_strategies'|'hedging_orders'|'system_settings'|'notification_settings'|'default_notifications'|'delayed_mutations'|'geo_restrictions'|'trader_mfa_provider'|'admin_mfa_provider'|'is_margin_trading_enabled'|'products_enabled'|'user_products_enabled'|'elliptic_filters'|'accounts_portfolio_report'|'orders_summary_report'|'conversions_summary_report'|'liquidity_report'|'daily_balances_report'|'open_exposure_report'|'permissions'|'permissions_subjects'|'all_permission_subjects'|'permissions_share'|'kyc_preferences'|'vasps_list'|'webhooks'|'hedging_adapter_ids'|'hedging_adapters'|'timeline'|'trading_limits'|'trading_volumes'|'countries'|'provinces'|'delayed_requests'|'kyc_user_data'|'permission_presets'|'instruments_strategies_schedule'|'currencies_prices'|'currency_prices'|'convert_currency_amount'|'ip_whitelist'|'hedging_accounts'|'margin_account_transactions'|'margin_users_free_balances'|'admin_properties'|'admin_mfa_status'|'elliptic_screenings'|'elliptic_risk_threshold'|'scorechain_screenings'|'scorechain_minimal_risk_score'|'instruments_strategies_rules'|'instruments_strategies_alerts'|'instruments_strategies_alerts_settings'|'vaults'|'vaults_average_user_apy'|'estimate_vault_interests'|'vaults_accounts'|'vaults_total_user_balance_quoted'|'vaults_transactions'|'vaults_transactions_total_sum'|'portfolio_history'|'profits_dashboard'|'conversions_dashboard'|'volume_dashboard'|'deposits_dashboard'|'withdrawals_dashboard'|'summary_dashboard'|'unified_transactions'|'unified_transactions_lps'|'vaults_transactions_requests'|'referrals'|'aggregated_payments_limits'|'audit_trail_log'|'my_audit_trail_log'|'admin_events_log'|'referrals_history'|'referred_users_count'|'referrer_total_reward_quoted'|'blacklist_items'|'system_logs'|'logs_config'|'whoami'|'is_trading_allowed'|'referrals_transactions_info'|'license'|'referral_rewards'|'required_actions'|'trading_grids'|'trading_grid_levels'|'user_fees_config'|'estimate_payment_notional_fee'|'cash_holdings_report'|'trade_tiers'|'trade_volumes'|'wallets'|'user_ip_geo_history'|'user_ip_geo_history_overview'|'user_ip_geo_history_detail' +export type QueryType = 'version'|'open_orders'|'closed_orders'|'estimate_order'|'trades'|'sso_settings'|'healthcheck'|'admins'|'instruments'|'instrument_price_bars'|'currencies'|'payments'|'deposit_address_crypto'|'deposit_addresses_crypto'|'conversions'|'conversion_quotes'|'conversion_quotes_risks'|'users'|'total_users'|'user'|'account_transactions'|'accounts_balances'|'account_aggregated_users_balance'|'accounts'|'collateral_state'|'limits_groups'|'fees_groups'|'payments_fees'|'trading_fees'|'payments_routes'|'psp_services'|'crypto_networks'|'payments_limits'|'api_keys'|'cognito_pools'|'instruments_strategies'|'hedging_orders'|'system_settings'|'notification_settings'|'default_notifications'|'delayed_mutations'|'geo_restrictions'|'trader_mfa_provider'|'admin_mfa_provider'|'is_margin_trading_enabled'|'mcp_enabled'|'mcp_parameters'|'products_enabled'|'amls_status'|'user_products_enabled'|'elliptic_filters'|'search_limits'|'accounts_portfolio_report'|'orders_summary_report'|'conversions_summary_report'|'liquidity_report'|'daily_balances_report'|'open_exposure_report'|'permissions'|'permissions_subjects'|'all_permission_subjects'|'permissions_share'|'kyc_preferences'|'vasps_list'|'webhooks'|'hedging_adapter_ids'|'hedging_adapters'|'timeline'|'trading_limits'|'trading_volumes'|'countries'|'provinces'|'delayed_requests'|'kyc_user_data'|'permission_presets'|'instruments_strategies_schedule'|'currencies_prices'|'currency_prices'|'convert_currency_amount'|'ip_whitelist'|'hedging_accounts'|'admin_properties'|'admin_mfa_status'|'elliptic_screenings'|'elliptic_risk_threshold'|'scorechain_screenings'|'scorechain_minimal_risk_score'|'instruments_strategies_rules'|'instruments_strategies_alerts'|'instruments_strategies_alerts_settings'|'vaults'|'vaults_average_user_apy'|'estimate_vault_interests'|'vaults_accounts'|'vaults_total_user_balance_quoted'|'vaults_transactions'|'vaults_transactions_total_sum'|'portfolio_history'|'profits_dashboard'|'conversions_dashboard'|'volume_dashboard'|'deposits_dashboard'|'withdrawals_dashboard'|'summary_dashboard'|'unified_transactions'|'unified_transactions_lps'|'vaults_transactions_requests'|'referrals'|'aggregated_payments_limits'|'audit_trail_log'|'my_audit_trail_log'|'admin_events_log'|'referrals_history'|'referred_users_count'|'referrer_total_reward_quoted'|'blacklist_items'|'system_logs'|'logs_config'|'whoami'|'is_trading_allowed'|'enabled_vaults'|'referrals_transactions_info'|'license'|'referral_rewards'|'required_actions'|'trading_grids'|'trading_grid_levels'|'user_fees_config'|'estimate_payment_notional_fee'|'cash_holdings_report'|'totalValueOfCryptoAssetsInUSD'|'totalValueOfCryptoAssetsInEUR'|'total_assets_value'|'trade_tiers'|'tier_fees'|'trades_rolling_volumes'|'wallets'|'wallet_transfers'|'vouchers'|'voucher_codes'|'yield_adapters'|'yield_transactions'|'vaults_strategies'|'pts_account_transactions'|'trading_view_templates'|'otc_orders'|'admin_otc_orders'|'otc_hedging_orders'|'otc_hedging_balances'|'user_ip_geo_history'|'user_ip_geo_history_overview'|'user_ip_geo_history_detail' export interface PagerInput{ limit?: number; @@ -2886,18 +3404,32 @@ serial_id_to?: number; } -export type MutationType = 'restart_system'|'create_order'|'update_open_order'|'cancel_multiple_orders'|'cancel_order'|'cancel_all_orders'|'service_signin'|'checkin'|'checkout'|'restrictions_check'|'register_trader_local'|'trader_signin_local'|'create_admins'|'delete_admin'|'admin_signin_local'|'create_local_admin'|'create_instrument'|'update_instrument'|'delete_instrument'|'fill_instrument'|'create_currency'|'update_currency'|'delete_currency'|'validate_address_crypto'|'reprocess_payment'|'update_payment_approval_status'|'create_withdrawal_crypto'|'create_withdrawal_fiat'|'create_payment_manual'|'create_conversion_order'|'create_conversion_quote'|'update_user_fee_group'|'update_user_limit_group'|'delete_user'|'add_push_token'|'clear_push_tokens'|'change_user_password'|'update_user_password'|'update_user'|'create_user'|'update_anti_phishing_code'|'create_account_transaction'|'create_limit_group'|'update_limit_group'|'delete_limit_group'|'create_fee_group'|'update_fee_group'|'delete_fee_group'|'estimate_payment_fee'|'estimate_network_fee'|'update_payment_fee'|'create_trading_fee'|'update_trading_fee'|'delete_trading_fee'|'create_payment_session'|'create_payment_route'|'delete_payment_route'|'update_payment_route'|'create_payment_limit'|'update_payment_limit'|'delete_payment_limit'|'create_api_key'|'update_api_key'|'delete_api_key'|'update_service_api_key'|'create_cognito_pool'|'update_cognito_pool'|'delete_cognito_pool'|'create_instrument_strategy'|'update_instrument_strategy'|'update_instrument_strategy_hedge_balance'|'operate_instrument_strategy_hedge_balance'|'delete_instrument_strategy'|'trigger_create_hedging_remote_order_job'|'trigger_complete_hedging_remote_order_job'|'trigger_reject_hedging_remote_order_job'|'update_system_setting'|'update_system_settings'|'update_maintenance_mode'|'update_notifications_settings'|'update_default_notifications'|'update_delayed_mutations'|'update_geo_restrictions'|'update_elliptic_filters'|'update_admin_permissions'|'create_kyc_manual_request'|'create_kyc_session'|'update_kyc_preferences'|'create_webhook'|'update_webhook'|'delete_webhook'|'emit_event'|'create_hedging_adapter'|'update_hedging_adapter'|'delete_hedging_adapter'|'create_trading_limit'|'update_trading_limit'|'delete_trading_limit'|'update_delayed_request'|'delete_delayed_request'|'create_user_mfa_secret'|'create_admin_mfa_secret'|'update_user_mfa_status'|'update_admin_mfa_status'|'verify_user_mfa_token'|'verify_admin_mfa_token'|'send_test_email'|'send_test_push'|'create_kyc_user_data'|'update_kyc_user_data'|'delete_kyc_user_data'|'create_permission_preset'|'update_permission_preset'|'delete_permission_preset'|'create_instruments_strategies_schedule'|'update_instruments_strategies_schedule'|'delete_instruments_strategies_schedule'|'create_currency_price'|'update_currency_price'|'delete_currency_price'|'set_currency_price'|'create_ip_whitelist_items'|'update_ip_whitelist_item'|'delete_ip_whitelist_item'|'update_hedging_account'|'send_margin_trade_notif'|'create_margin_account_transaction'|'update_admin_properties'|'create_upload'|'complete_upload'|'update_elliptic_risk_threshold'|'update_scorechain_minimal_risk_score'|'update_payment_kyt_status'|'reprocess_kyt_payment'|'create_instrument_strategy_rule'|'update_instrument_strategy_rule'|'delete_instrument_strategy_rule'|'update_instruments_strategies_alerts_settings'|'create_vault'|'update_vault'|'trigger_vaults_interests_calculation'|'trigger_vaults_locks_withdrawals'|'trigger_expired_vaults_processing'|'trigger_delayed_vaults_trx_processing'|'create_vault_withdrawal'|'create_vault_deposit'|'create_vault_transaction'|'create_vault_manual_transactions'|'update_vault_transaction_request'|'cancel_vault_transaction_request'|'create_referral'|'claim_referral'|'calculate_payments_limits'|'create_aggregated_payment_limit'|'update_aggregated_payment_limit'|'delete_aggregated_payment_limit'|'sync_config'|'create_ip_blacklist_item'|'create_ip_blacklist_items'|'update_ip_blacklist_item'|'remove_ip_blacklist_item'|'create_system_config_log'|'update_system_config_log'|'delete_system_config_log'|'reset_demo_balances'|'reschedule_delayed_referral_transactions'|'activate_license'|'renew_license'|'create_referral_reward'|'update_referral_reward'|'delete_referral_reward'|'start_trading_grid'|'stop_trading_grid'|'update_trading_grid'|'estimate_trading_grid'|'user_switch_fee_group'|'update_withdrawal_notional_fee'|'create_trade_tier'|'update_trade_tier'|'delete_trade_tier'|'delete_trades_volume'|'create_wallet'|'eventus_upload_life_cycle_data_for_date' +export type MutationType = 'restart_system'|'create_order'|'update_open_order'|'cancel_multiple_orders'|'cancel_order'|'cancel_all_orders'|'service_signin'|'checkin'|'checkout'|'restrictions_check'|'register_trader_local'|'trader_signin_local'|'reset_local_password'|'create_admins'|'delete_admin'|'admin_signin_local'|'create_local_admin'|'create_instrument'|'update_instrument'|'delete_instrument'|'migrate_price_history_to_timescaledb'|'enable_continuous_aggregate_policies'|'disable_continuous_aggregate_policies'|'restore_price_bars'|'create_currency'|'update_currency'|'delete_currency'|'validate_address_crypto'|'reprocess_payment'|'update_payment_approval_status'|'create_withdrawal_crypto'|'create_withdrawal_fiat'|'create_payment_manual'|'create_conversion_order'|'create_conversion_quote'|'update_user_fee_group'|'update_user_limit_group'|'delete_user'|'add_push_token'|'clear_push_tokens'|'change_user_password'|'update_user_password'|'update_user'|'create_user'|'update_anti_phishing_code'|'update_mfa_for_withdraw'|'resettle_pts'|'create_account_transaction'|'create_limit_group'|'update_limit_group'|'delete_limit_group'|'create_fee_group'|'update_fee_group'|'delete_fee_group'|'estimate_payment_fee'|'estimate_network_fee'|'update_payment_fee'|'create_trading_fee'|'update_trading_fee'|'delete_trading_fee'|'create_payment_session'|'create_payment_route'|'delete_payment_route'|'update_payment_route'|'create_crypto_network'|'update_crypto_network'|'delete_crypto_network'|'create_payment_limit'|'update_payment_limit'|'delete_payment_limit'|'create_api_key'|'update_api_key'|'delete_api_key'|'update_service_api_key'|'create_cognito_pool'|'update_cognito_pool'|'delete_cognito_pool'|'create_instrument_strategy'|'update_instrument_strategy'|'update_instrument_strategy_hedge_balance'|'operate_instrument_strategy_hedge_balance'|'delete_instrument_strategy'|'trigger_create_hedging_remote_order_job'|'trigger_complete_hedging_remote_order_job'|'trigger_reject_hedging_remote_order_job'|'update_system_setting'|'update_system_settings'|'update_maintenance_mode'|'update_withdrawals_freeze'|'update_notifications_settings'|'update_default_notifications'|'update_delayed_mutations'|'update_geo_restrictions'|'travel_rule_country_list'|'update_elliptic_filters'|'update_admin_permissions'|'create_kyc_manual_request'|'create_kyc_session'|'update_kyc_preferences'|'create_webhook'|'update_webhook'|'delete_webhook'|'emit_event'|'create_hedging_adapter'|'update_hedging_adapter'|'delete_hedging_adapter'|'create_trading_limit'|'update_trading_limit'|'delete_trading_limit'|'update_delayed_request'|'delete_delayed_request'|'create_user_mfa_secret'|'create_admin_mfa_secret'|'update_user_mfa_status'|'update_admin_mfa_status'|'verify_user_mfa_token'|'verify_admin_mfa_token'|'send_test_email'|'send_test_push'|'send_forgot_password_email'|'create_kyc_user_data'|'update_kyc_user_data'|'delete_kyc_user_data'|'create_permission_preset'|'update_permission_preset'|'delete_permission_preset'|'create_instruments_strategies_schedule'|'update_instruments_strategies_schedule'|'delete_instruments_strategies_schedule'|'create_currency_price'|'update_currency_price'|'delete_currency_price'|'set_currency_price'|'create_ip_whitelist_items'|'update_ip_whitelist_item'|'delete_ip_whitelist_item'|'update_hedging_account'|'update_admin_properties'|'create_upload'|'complete_upload'|'update_elliptic_risk_threshold'|'update_scorechain_minimal_risk_score'|'update_payment_kyt_status'|'reprocess_kyt_payment'|'get_payment_kyt_url'|'create_instrument_strategy_rule'|'update_instrument_strategy_rule'|'delete_instrument_strategy_rule'|'update_instruments_strategies_alerts_settings'|'create_vault'|'update_vault'|'trigger_vaults_interests_calculation'|'trigger_vaults_locks_withdrawals'|'trigger_expired_vaults_processing'|'trigger_delayed_vaults_trx_processing'|'create_vault_withdrawal'|'create_vault_deposit'|'create_vault_transaction'|'create_vault_manual_transactions'|'update_vault_transaction_request'|'cancel_vault_transaction_request'|'create_referral'|'claim_referral'|'calculate_payments_limits'|'create_aggregated_payment_limit'|'update_aggregated_payment_limit'|'delete_aggregated_payment_limit'|'sync_config'|'create_ip_blacklist_item'|'create_ip_blacklist_items'|'update_ip_blacklist_item'|'remove_ip_blacklist_item'|'create_system_config_log'|'update_system_config_log'|'delete_system_config_log'|'reset_demo_balances'|'create_referral_transaction_info'|'reschedule_delayed_referral_transactions'|'activate_license'|'renew_license'|'create_referral_reward'|'update_referral_reward'|'delete_referral_reward'|'trigger_referral_rebate_rotation'|'start_trading_grid'|'stop_trading_grid'|'update_trading_grid'|'estimate_trading_grid'|'user_switch_fee_group'|'update_withdrawal_notional_fee'|'create_trade_tier'|'update_trade_tier'|'delete_trade_tier'|'create_tier_fee'|'update_tier_fee'|'delete_tier_fee'|'delete_trades_rolling_volume'|'recalculate_trades_rolling_volume'|'create_wallet'|'update_wallet'|'create_wallet_transfer'|'eventus_upload_life_cycle_data_for_date'|'create_voucher'|'update_voucher'|'delete_voucher'|'claim_voucher'|'create_yield_adapter'|'update_yield_adapter'|'delete_yield_adapter'|'create_vault_strategy'|'update_vault_strategy'|'delete_vault_strategy'|'trigger_sync_external_apy'|'upload_trading_view_template'|'complete_upload_trading_view_template'|'update_trading_view_template'|'delete_trading_view_template'|'createOtcOrder'|'updateOtcOrder'|'send_otc_notification'|'createOtcHedgingOrder'|'updateOtcHedgingOrder' + +export interface CognitoPoolConfig{ +region?: string; +pool_id?: string; +} export interface TravelRulePropertiesArgs{ -counterparty: TravelRuleCounterParty; } export interface TravelRuleCounterParty{ fullName: string; crypto_address: string; -counterparty_type: CounterpartyType; -vasp_name?: string; -vasp_code?: string; +vasp_id?: string; +place_of_birth?: string; +date_of_birth?: string; +} + +export interface TravelRuleAddress{ +country?: string; +post_code?: string; +town?: string; +street?: string; +state?: string; +building_number?: string; +flat_number?: string; } export interface FavoriteAddressCryptoItem{ @@ -2942,7 +3474,6 @@ intermediary_city?: string; intermediary_region?: string; intermediary_bic?: string; intermediary_bank_postal_code?: string; -properties: FiatDepositPropertyInput[]; } export interface ClientCustomPropertyItem{ @@ -2980,6 +3511,7 @@ withdrawal_daily_limit: number; withdrawal_weekly_limit: number; withdrawal_monthly_limit: number; is_active: ToggleSwitch; +auto_reject: ToggleSwitch; } export interface UpdateAggregatedPaymentLimitArgs{ @@ -2989,11 +3521,13 @@ withdrawal_weekly_limit?: number; withdrawal_monthly_limit?: number; currency_id?: string; is_active?: ToggleSwitch; +auto_reject?: ToggleSwitch; } export interface SettingItem{ name: string; -value: string; +value?: string; +sensitive?: ToggleSwitch; } export interface KycUserDataEntryInput{ @@ -3009,11 +3543,23 @@ value: string; export interface CreateVaultTransactionInput{ vault_id: string; user_id: string; +idempotency_key?: string; account_transaction_id?: string; amount: number; transaction_type: AccountTransactionType; transaction_class: VaultsTransactionClass; comment?: string; +lock_id?: string; +wallet_id: string; +} + +export interface ReferralTransactionInfoInput{ +target_user_id: string; +referral_id: string; +reward_type: ReferralRewardType; +amount: number; +currency_id: string; +comment?: string; } export interface Subscription{ @@ -3023,7 +3569,6 @@ instrument_price: InstrumentPrice; instrument_price_bar: InstrumentPriceHistory; user_update: UserUpdateResult; currency_prices: CurrencyPrice[]; -users_free_balances_updates: MarginUserFreeBalanceItem[]; } export interface __Schema{ @@ -3088,7 +3633,7 @@ export interface RestartSystemArgs{ export interface CreateOrderArgs{ user_id?: string; -wallet_id?: string; +wallet_id: string; client_order_id?: string; instrument_id: string; quantity: number; @@ -3141,6 +3686,8 @@ export interface RestrictionsCheckArgs{ } export interface RegisterTraderLocalArgs{ +user_id?: string; +username?: string; email: string; password: string; first_name: string; @@ -3152,6 +3699,12 @@ email: string; password: string; } +export interface ResetLocalPasswordArgs{ +email: string; +code: string; +password: string; +} + export interface CreateAdminsArgs{ emails: string[]; subjects: string[]; @@ -3214,10 +3767,22 @@ serial_id?: number; serial_ids: number[]; } -export interface FillInstrumentArgs{ +export interface MigratePriceHistoryToTimescaledbArgs{ +instrument_ids: string[]; +time_from: string; +time_to: string; +} + +export interface EnableContinuousAggregatePoliciesArgs{ +} + +export interface DisableContinuousAggregatePoliciesArgs{ +} + +export interface RestorePriceBarsArgs{ instrument: string; -dateTo: string; -limit: number; +startDate: string; +endDate: string; periodicity: InstrumentHistoryPeriodicity; } @@ -3280,7 +3845,10 @@ mfa_token?: string; fees_included?: ToggleSwitch; skip_address_validation?: boolean; bank_id_session?: string; -travel_rule_properties?: TravelRulePropertiesArgs; +comment?: string; +message?: string; +wallet_id: string; +vasp_id?: string; } export interface CreateWithdrawalFiatArgs{ @@ -3290,7 +3858,8 @@ payment_route_id?: string; currency_id?: string; psp_service_id?: string; mfa_token?: string; -properties?: FiatDepositPropertyInput[]; +wallet_id: string; +vasp_id?: string; } export interface CreatePaymentManualArgs{ @@ -3301,12 +3870,14 @@ amount: number; type: PaymentType; body_amount?: number; message?: string; +fee_amount?: number; +fees_included?: ToggleSwitch; reference?: string; -create_account_operations?: boolean; +create_account_operations: boolean; manual_transaction_date?: string; -properties?: FiatDepositPropertyInput[]; status?: PaymentStatus; approval_status?: PaymentApprovalStatus; +wallet_id: string; } export interface CreateConversionOrderArgs{ @@ -3325,6 +3896,7 @@ source_currency_id: string; target_currency_id: string; source_currency_amount?: number; target_currency_amount?: number; +instrument_id?: string; fees_in_price?: boolean; reference?: string; ttl?: number; @@ -3377,17 +3949,12 @@ updated_at?: string; crypto_pay?: ToggleSwitch; user_id?: string; favorite_instruments: string[]; -favorite_addresses_crypto: FavoriteAddressCryptoItem[]; -favorite_fiat_destinations: FavoriteFiatDestinationItem[]; notifications_settings: NotificationTrigger[]; -client_custom_properties: ClientCustomPropertyItem[]; -notifications_options?: NotificationOptionsArgs; mfa_token?: string; mfa_status?: ToggleSwitch; full_name?: string; default_timezone?: ToggleSwitch; client_user_id?: string; -permissions: Permission[]; } export interface CreateUserArgs{ @@ -3403,23 +3970,29 @@ crypto_pay?: ToggleSwitch; username: string; cognito_registration?: ToggleSwitch; cognito_email?: ToggleSwitch; -permissions: Permission[]; mfa_secret?: string; first_name?: string; last_name?: string; password?: string; password_hash?: string; client_user_id?: string; -client_custom_properties: ClientCustomPropertyItem[]; +country?: string; } export interface UpdateAntiPhishingCodeArgs{ anti_phishing_code: string; -token: string; +} + +export interface UpdateMfaForWithdrawArgs{ +mfa_for_withdraw: ToggleSwitch; +mfa_token: string; +} + +export interface ResettlePtsArgs{ +user_id?: string; } export interface CreateAccountTransactionArgs{ -items: RecordTransactionItem[]; } export interface CreateLimitGroupArgs{ @@ -3431,7 +4004,6 @@ limit_group_id?: string; disabled_currencies: string[]; disabled_instruments: string[]; disabled_payment_routes: string[]; -aggregated_payment_limit?: CreateAggregatedPaymentLimitArgs; } export interface UpdateLimitGroupArgs{ @@ -3444,7 +4016,6 @@ serial_ids: number[]; disabled_currencies: string[]; disabled_payment_routes: string[]; disabled_instruments: string[]; -aggregated_payment_limit?: UpdateAggregatedPaymentLimitArgs; } export interface DeleteLimitGroupArgs{ @@ -3457,6 +4028,7 @@ name?: string; description?: string; kyc_status?: UserKycStatus; meta?: string; +calendar_month_timeframe?: string; beneficiary_user_id?: string; fee_group_id?: string; } @@ -3467,6 +4039,7 @@ description?: string; beneficiary_user_id?: string; kyc_status?: UserKycStatus; meta?: string; +calendar_month_timeframe?: string; fee_group_id?: string; serial_ids: number[]; } @@ -3484,7 +4057,7 @@ psp_service_id?: string; crypto_network?: string; type: PaymentType; amount: number; -crypto_network_fee_preference?: CryptoNetworkFeePreference; +crypto_network_fee_preference: CryptoNetworkFeePreference; crypto_address?: string; crypto_address_tag_type?: CryptoAddressTagType; crypto_address_tag_value?: string; @@ -3563,7 +4136,6 @@ extend_network_fee?: ToggleSwitch; network_fee_currency_id?: string; is_development?: ToggleSwitch; verification_type?: VerificationType; -fiat_deposit_properties: FiatDepositPropertyInput[]; deposit_enabled?: ToggleSwitch; withdrawal_enabled?: ToggleSwitch; is_crypto_to_fiat?: ToggleSwitch; @@ -3585,7 +4157,6 @@ fiat_iframe_withdrawal_url?: string; fiat_transfer_type?: string; is_active?: ToggleSwitch; network_fee_currency_id?: string; -fiat_deposit_properties: FiatDepositPropertyInput[]; is_crypto_to_fiat?: ToggleSwitch; meta?: string; payment_route_id?: string; @@ -3598,22 +4169,37 @@ withdrawal_enabled?: ToggleSwitch; deposit_enabled?: ToggleSwitch; } +export interface CreateCryptoNetworkArgs{ +crypto_network: string; +crypto_network_name: string; +} + +export interface UpdateCryptoNetworkArgs{ +crypto_network_name?: string; +crypto_network: string; +} + +export interface DeleteCryptoNetworkArgs{ +crypto_network: string; +} + export interface CreatePaymentLimitArgs{ limit_group_id: string; currency_id: string; deposit_enabled: ToggleSwitch; deposit_min_amount: number; -deposit_daily_limit?: number; -deposit_weekly_limit?: number; -deposit_monthly_limit?: number; +deposit_daily_limit: number; +deposit_weekly_limit: number; +deposit_monthly_limit: number; deposit_auto_approval_amount: number; withdrawal_enabled: ToggleSwitch; withdrawal_min_amount: number; -withdrawal_daily_limit?: number; -withdrawal_weekly_limit?: number; -withdrawal_monthly_limit?: number; +withdrawal_daily_limit: number; +withdrawal_weekly_limit: number; +withdrawal_monthly_limit: number; withdrawal_auto_approval_amount: number; -auto_pending: ToggleSwitch; +deposit_auto_reject: ToggleSwitch; +withdrawal_auto_reject: ToggleSwitch; } export interface UpdatePaymentLimitArgs{ @@ -3633,7 +4219,8 @@ withdrawal_daily_limit?: number; withdrawal_weekly_limit?: number; withdrawal_monthly_limit?: number; serial_ids: number[]; -auto_pending?: ToggleSwitch; +deposit_auto_reject?: ToggleSwitch; +withdrawal_auto_reject?: ToggleSwitch; } export interface DeletePaymentLimitArgs{ @@ -3665,7 +4252,6 @@ hmac_required?: ToggleSwitch; export interface DeleteApiKeyArgs{ api_key_id: string; -user_id?: string; } export interface UpdateServiceApiKeyArgs{ @@ -3725,7 +4311,7 @@ is_active: ToggleSwitch; version?: number; min_spread?: number; on_min_spread_violation?: OnMinSpreadViolation; -maximum_publish_quantity?: number; +maximum_publish_quantity: number; allow_negative_markup?: ToggleSwitch; } @@ -3801,10 +4387,10 @@ message: string; export interface UpdateSystemSettingArgs{ name: string; value?: string; +sensitive?: ToggleSwitch; } export interface UpdateSystemSettingsArgs{ -items: SettingItem[]; } export interface UpdateMaintenanceModeArgs{ @@ -3812,6 +4398,12 @@ maintenance_mode: ToggleSwitch; maintenance_message: string; } +export interface UpdateWithdrawalsFreezeArgs{ +enabled: ToggleSwitch; +reason?: string; +expires_at?: string; +} + export interface UpdateNotificationsSettingsArgs{ client: NotificationTrigger[]; push: NotificationTrigger[]; @@ -3828,8 +4420,10 @@ mutations: string[]; } export interface UpdateGeoRestrictionsArgs{ -region_blacklist?: RegionBlacklistItemInput[]; -country_blacklist?: BlacklistItemInput[]; +} + +export interface TravelRuleCountryListArgs{ +country_list: string[]; } export interface UpdateEllipticFiltersArgs{ @@ -3850,17 +4444,14 @@ subjects: string[]; export interface CreateKycManualRequestArgs{ user_id: string; -kyc_data: KycUserDataEntryInput[]; } export interface CreateKycSessionArgs{ -kyc_type?: KycType; +kyc_type: KycType; user_id?: string; } export interface UpdateKycPreferencesArgs{ -individual?: KycPreferenceInput; -corporate?: KycPreferenceInput; } export interface CreateWebhookArgs{ @@ -3898,7 +4489,7 @@ account_balances_sync_enabled: ToggleSwitch; meta?: string; maker_fee?: number; taker_fee?: number; -fees_sync_enabled?: ToggleSwitch; +fees_sync_enabled: ToggleSwitch; create_broker_user_id?: boolean; } @@ -3923,9 +4514,9 @@ hedging_adapter_id: string; export interface CreateTradingLimitArgs{ limit_group_id: string; instrument_id: string; -daily_limit?: number; -weekly_limit?: number; -monthly_limit?: number; +daily_limit: number; +weekly_limit: number; +monthly_limit: number; notion_currency?: string; } @@ -3984,6 +4575,7 @@ export interface SendTestEmailArgs{ trigger: NotificationTrigger; to: string; language?: string; +mfa_status?: ToggleSwitch; } export interface SendTestPushArgs{ @@ -3993,14 +4585,16 @@ body: string; trigger?: NotificationTrigger; } +export interface SendForgotPasswordEmailArgs{ +email: string; +} + export interface CreateKycUserDataArgs{ user_id: string; -kyc_data: KycUserDataEntryInput[]; } export interface UpdateKycUserDataArgs{ user_id: string; -kyc_data: KycUserDataEntryInput[]; } export interface DeleteKycUserDataArgs{ @@ -4107,18 +4701,7 @@ hedging_adapter_id: string; currency_id: string; } -export interface SendMarginTradeNotifArgs{ -user_id: string; -trigger: NotificationTrigger; -payload: string; -} - -export interface CreateMarginAccountTransactionArgs{ -item: RecordTransactionItem; -} - export interface UpdateAdminPropertiesArgs{ -properties: UpdateAdminPropertyInput[]; } export interface CreateUploadArgs{ @@ -4152,6 +4735,11 @@ export interface ReprocessKytPaymentArgs{ payment_id: string; } +export interface GetPaymentKytUrlArgs{ +provider?: KytProvider; +report_id?: string; +} + export interface CreateInstrumentStrategyRuleArgs{ instrument_strategy_id: string; is_active: ToggleSwitch; @@ -4159,10 +4747,10 @@ min_total_volume: number; min_ask_volume: number; min_bid_volume: number; max_spread: number; -max_update_interval?: number; -max_violations_before_measures?: number; -disable_strategy_if_violated?: ToggleSwitch; -disable_hedging_if_violated?: ToggleSwitch; +max_update_interval: number; +max_violations_before_measures: number; +disable_strategy_if_violated: ToggleSwitch; +disable_hedging_if_violated: ToggleSwitch; } export interface UpdateInstrumentStrategyRuleArgs{ @@ -4199,13 +4787,14 @@ min_withdrawal_amount: number; min_deposit_amount: number; cut_off_time_seconds: number; lock_in_period_seconds?: number; +lock_strategy: VaultLockStrategy; effective_date_from: string; effective_date_to?: string; rate_type: VaultRateType; is_active: ToggleSwitch; withdrawal_enabled: ToggleSwitch; deposit_enabled: ToggleSwitch; -withdrawal_policy?: VaultWithdrawalPolicy; +withdrawal_policy: VaultWithdrawalPolicy; withdrawal_delay_seconds?: number; meta?: string; } @@ -4220,6 +4809,7 @@ min_withdrawal_amount?: number; min_deposit_amount?: number; cut_off_time_seconds?: number; lock_in_period_seconds?: number; +lock_strategy?: VaultLockStrategy; effective_date_from?: string; effective_date_to?: string; rate_type?: VaultRateType; @@ -4249,6 +4839,7 @@ vault_id: string; amount: number; user_id?: string; use_all_funds?: boolean; +wallet_id: string; } export interface CreateVaultDepositArgs{ @@ -4256,6 +4847,7 @@ vault_id: string; amount: number; user_id?: string; use_all_funds?: boolean; +wallet_id: string; } export interface CreateVaultTransactionArgs{ @@ -4264,10 +4856,10 @@ amount: number; transaction_type: AccountTransactionType; user_id?: string; use_all_funds?: boolean; +wallet_id: string; } export interface CreateVaultManualTransactionsArgs{ -items: CreateVaultTransactionInput[]; } export interface UpdateVaultTransactionRequestArgs{ @@ -4299,10 +4891,11 @@ type: PaymentType; export interface CreateAggregatedPaymentLimitArgs{ limit_group_id: string; currency_id: string; -withdrawal_daily_limit?: number; -withdrawal_weekly_limit?: number; -withdrawal_monthly_limit?: number; +withdrawal_daily_limit: number; +withdrawal_weekly_limit: number; +withdrawal_monthly_limit: number; is_active: ToggleSwitch; +auto_reject: ToggleSwitch; } export interface UpdateAggregatedPaymentLimitArgs{ @@ -4312,6 +4905,7 @@ withdrawal_daily_limit?: number; withdrawal_weekly_limit?: number; withdrawal_monthly_limit?: number; is_active?: ToggleSwitch; +auto_reject?: ToggleSwitch; serial_ids: number[]; } @@ -4328,7 +4922,9 @@ api_secret: string; currencies?: boolean; hedging_adapters?: boolean; instruments?: boolean; +instruments_ids: string[]; instruments_strategies?: boolean; +instrument_strategy_ids: string[]; payments_routes?: boolean; limits_groups?: boolean; trading_limits?: boolean; @@ -4381,6 +4977,11 @@ export interface ResetDemoBalancesArgs{ user_id?: string; } +export interface CreateReferralTransactionInfoArgs{ +is_delayed: ToggleSwitch; +delayed_seconds?: number; +} + export interface RescheduleDelayedReferralTransactionsArgs{ } @@ -4395,17 +4996,18 @@ is_active: ToggleSwitch; type: ReferralRewardType; meta: string; min_deposited_volume_required: ToggleSwitch; -min_deposited_volume?: number; +min_deposited_volume: number; min_deposited_volume_currency_id?: string; kyc_required: ToggleSwitch; -is_delayed?: ToggleSwitch; +is_delayed: ToggleSwitch; delayed_period_seconds?: number; -min_staked_vault_required?: ToggleSwitch; +min_staked_vault_required: ToggleSwitch; min_staked_vault_volume?: number; min_staked_vault_currency_id?: string; -min_traded_volume_required?: ToggleSwitch; +min_traded_volume_required: ToggleSwitch; min_traded_volume?: number; min_traded_volume_currency_id?: string; +min_traded_volume_includes_margin: ToggleSwitch; } export interface UpdateReferralRewardArgs{ @@ -4418,18 +5020,22 @@ kyc_required?: ToggleSwitch; delayed_period_seconds?: number; min_staked_vault_volume?: number; min_staked_vault_currency_id?: string; -min_traded_volume_required?: ToggleSwitch; min_traded_volume?: number; min_traded_volume_currency_id?: string; type: ReferralRewardType; is_delayed?: ToggleSwitch; min_staked_vault_required?: ToggleSwitch; +min_traded_volume_required?: ToggleSwitch; +min_traded_volume_includes_margin?: ToggleSwitch; } export interface DeleteReferralRewardArgs{ type: ReferralRewardType; } +export interface TriggerReferralRebateRotationArgs{ +} + export interface StartTradingGridArgs{ user_id?: string; instrument_id: string; @@ -4440,7 +5046,7 @@ price_range_from: number; price_range_to: number; stop_loss_percentage?: number; take_profit_percentage?: number; -wallet_id?: string; +wallet_id: string; } export interface StopTradingGridArgs{ @@ -4463,7 +5069,7 @@ price_range_from: number; price_range_to: number; stop_loss_percentage?: number; take_profit_percentage?: number; -wallet_id?: string; +wallet_id: string; time_from: number; time_to: number; } @@ -4477,42 +5083,234 @@ notional: number; } export interface CreateTradeTierArgs{ -fee_group_id: string; name: string; -maker_progressive: number; -taker_progressive: number; +fee_group_id: string; threshold: number; } export interface UpdateTradeTierArgs{ tier_id?: string; name?: string; +fee_group_id?: string; +threshold?: number; +serial_ids: number[]; +} + +export interface DeleteTradeTierArgs{ +tier_id: string; +serial_ids: number[]; +} + +export interface CreateTierFeeArgs{ +tier_id: string; +instrument_id: string; +} + +export interface UpdateTierFeeArgs{ +tier_fee_id?: string; +instrument_id?: string; maker_progressive?: number; taker_progressive?: number; -threshold?: number; +maker_flat?: number; +taker_flat?: number; +serial_ids: number[]; +} + +export interface DeleteTierFeeArgs{ +tier_fee_id: string; +serial_ids: number[]; +} + +export interface DeleteTradesRollingVolumeArgs{ +user_id: string; +serial_ids: number[]; +} + +export interface RecalculateTradesRollingVolumeArgs{ +} + +export interface CreateWalletArgs{ +name: string; +user_id?: string; +description?: string; +type?: WalletType; +} + +export interface UpdateWalletArgs{ +wallet_id: string; +name?: string; +description?: string; +user_id?: string; +} + +export interface CreateWalletTransferArgs{ +user_id?: string; +from_wallet_id: string; +to_wallet_id: string; +currency_id: string; +amount: number; +} + +export interface EventusUploadLifeCycleDataForDateArgs{ +temporaryKey: string; +date: string; +dryRun: string; +} + +export interface CreateVoucherArgs{ +name: string; +description?: string; +value: number; +currency_id: string; +total_usage_limit: number; +user_usage_limit: number; +expiry_date: string; +registration_date_from?: string; +registration_date_to?: string; +kyc_statuses: UserKycStatus[]; +limit_group_id?: string; +tag?: string; +code?: string; +quantity?: number; +} + +export interface UpdateVoucherArgs{ +description?: string; +status?: VoucherStatus; +total_usage_limit?: number; +user_usage_limit?: number; +expiry_date?: string; +kyc_statuses: UserKycStatus[]; +limit_group_id?: string; +tag?: string; serial_ids: number[]; +voucher_id?: string; +} + +export interface DeleteVoucherArgs{ +voucher_id: string; +} + +export interface ClaimVoucherArgs{ +code: string; +user_id?: string; +} + +export interface CreateYieldAdapterArgs{ +service_url: string; +service_api_key: string; +sync: ToggleSwitch; +yield_adapter_id?: string; +} + +export interface UpdateYieldAdapterArgs{ +yield_adapter_id: string; +service_url: string; +service_api_key: string; +sync: ToggleSwitch; +} + +export interface DeleteYieldAdapterArgs{ +yield_adapter_id: string; +} + +export interface CreateVaultStrategyArgs{ +vault_id: string; +yield_adapter_id: string; +yield_sync: ToggleSwitch; +yield_margin_percent: number; +funding_sync: ToggleSwitch; +external_vault_id?: string; +meta?: string; +funding_error_attempts_threshold?: number; +disable_vault_on_error_attempts_threshold_exceeded?: ToggleSwitch; +reject_request_on_funding_failure?: ToggleSwitch; +} + +export interface UpdateVaultStrategyArgs{ +vault_strategy_id: string; +vault_id: string; +yield_adapter_id: string; +yield_sync: ToggleSwitch; +yield_margin_percent: number; +funding_sync: ToggleSwitch; +external_vault_id?: string; +meta?: string; +funding_error_attempts_threshold?: number; +disable_vault_on_error_attempts_threshold_exceeded?: ToggleSwitch; +reject_request_on_funding_failure?: ToggleSwitch; +} + +export interface DeleteVaultStrategyArgs{ +vault_strategy_id: string; +} + +export interface TriggerSyncExternalApyArgs{ +} + +export interface UploadTradingViewTemplateArgs{ +template_name: string; +template_type: SpotMargin; +instrument_id: string; +periodicity?: InstrumentHistoryPeriodicity; +} + +export interface CompleteUploadTradingViewTemplateArgs{ +original_name: string; +s3_etag: string; +template_id: string; +is_update?: boolean; +} + +export interface UpdateTradingViewTemplateArgs{ +template_id: string; +template_name?: string; +periodicity?: InstrumentHistoryPeriodicity; +touched_at?: string; } -export interface DeleteTradeTierArgs{ -tier_id: string; -serial_ids: number[]; +export interface DeleteTradingViewTemplateArgs{ +template_id: string; } -export interface DeleteTradesVolumeArgs{ +export interface CreateOtcOrderArgs{ +order_id?: string; user_id: string; -serial_ids: number[]; +instrument_id: string; +price: number; +quantity: number; +status?: OtcOrderStatus; +side: OtcOrderSide; +notes?: string; +message?: string; } -export interface CreateWalletArgs{ -name: string; -user_id?: string; -description?: string; +export interface UpdateOtcOrderArgs{ +order_id: string; +status?: OtcOrderStatus; +message?: string; +notes?: string; } -export interface EventusUploadLifeCycleDataForDateArgs{ -temporaryKey: string; -date: string; -dryRun: string; +export interface SendOtcNotificationArgs{ +} + +export interface CreateOtcHedgingOrderArgs{ +order_id?: string; +instrument_id: string; +price: number; +quantity: number; +status?: OtcOrderStatus; +side: OtcOrderSide; +message?: string; +notes?: string; +} + +export interface UpdateOtcHedgingOrderArgs{ +order_id: string; +status?: OtcOrderStatus; +message?: string; +notes?: string; } @@ -4531,11 +5329,8 @@ parent_order_id?: string; user_id?: string; search?: string; status: OrderStatus[]; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; wallet_id?: string; +currency_id?: string; } export interface ClosedOrdersArgs{ @@ -4550,11 +5345,8 @@ parent_order_id?: string; user_id?: string; search?: string; status: OrderStatus[]; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; wallet_id?: string; +currency_id?: string; } export interface EstimateOrderArgs{ @@ -4575,10 +5367,7 @@ side?: OrderSide; counter_order_id?: string; user_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; +wallet_id?: string; } export interface SsoSettingsArgs{ @@ -4588,7 +5377,6 @@ export interface HealthcheckArgs{ } export interface AdminsArgs{ -serialIdRange?: SerialIdRangeInput; } export interface InstrumentsArgs{ @@ -4596,15 +5384,13 @@ instrument_id?: string; is_active?: ToggleSwitch; search?: string; page?: number; -limit?: number; -sort?: SortInput; +limit: number; store_mode?: ToggleSwitch; } export interface InstrumentPriceBarsArgs{ periodicity?: InstrumentHistoryPeriodicity; limit?: number; -date_range?: DateRangeInput; instrument_id: string; } @@ -4613,7 +5399,7 @@ search?: string; type?: CurrencyType; is_active?: ToggleSwitch; page?: number; -limit?: number; +limit: number; store_mode?: ToggleSwitch; } @@ -4633,16 +5419,14 @@ user_id_not_in: string[]; search?: string; status: PaymentStatus[]; approval_status: PaymentApprovalStatus[]; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; kyt_status_in: PaymentKytStatus[]; currency_type?: CurrencyType; quote_currency_id?: string; internal_transfer_cross_reference?: string; reference?: string; crypto_pay_payments?: boolean; +integer_tracking_id?: number; +wallet_id?: string; } export interface DepositAddressCryptoArgs{ @@ -4666,9 +5450,6 @@ psp_service_id?: string; reference?: string; user_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface ConversionsArgs{ @@ -4679,11 +5460,9 @@ status_in: ConversionStatus[]; conversion_quote_id?: string; source_currency_id?: string; target_currency_id?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; wallet_id?: string; +instrument_id?: string; +currency_id?: string; } export interface ConversionQuotesArgs{ @@ -4693,9 +5472,6 @@ conversion_quote_id?: string; reference?: string; source_currency_id?: string; target_currency_id?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface ConversionQuotesRisksArgs{ @@ -4703,8 +5479,6 @@ source_currency_id?: string; target_currency_id?: string; instrument_id?: string; user_id?: string; -pager?: PagerInput; -sort?: SortInput; } export interface UsersArgs{ @@ -4716,16 +5490,13 @@ is_deleted?: ToggleSwitch; fee_group_id?: string; limit_group_id?: string; user_id?: string; +user_ids: string[]; search?: string; kyc_property?: string; kyc_value?: string; kyc_status?: UserKycStatus; kyc_level?: string; status?: UserStatus; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; mfa_status?: ToggleSwitch; } @@ -4754,10 +5525,7 @@ created_by?: string; user_id?: string; search?: string; instrument_id?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; +wallet_id?: string; } export interface AccountsBalancesArgs{ @@ -4767,25 +5535,32 @@ hide_zero_balances?: ToggleSwitch; wallet_id?: string; } +export interface AccountAggregatedUsersBalanceArgs{ +currency_id?: string; +user_id?: string; +search?: string; +hide_zero_balances?: ToggleSwitch; +quote_currency_id: string; +} + export interface AccountsArgs{ account_id?: string; currency_id?: string; wallet_id?: string; user_id?: string; +user_ids: string[]; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; hide_zero_balances?: ToggleSwitch; } +export interface CollateralStateArgs{ +user_id?: string; +} + export interface LimitsGroupsArgs{ limit_group_id?: string; name?: string; description?: string; -pager?: PagerInput; -sort?: SortInput; } export interface FeesGroupsArgs{ @@ -4793,24 +5568,18 @@ fee_group_id?: string; name?: string; description?: string; beneficiary_user_id?: string; -pager?: PagerInput; -sort?: SortInput; } export interface PaymentsFeesArgs{ payment_route_id?: string; currency_id?: string; fee_group_id?: string; -pager?: PagerInput; -sort?: SortInput; calculation_type?: FeeCalculationType; } export interface TradingFeesArgs{ instrument_id?: string; fee_group_id?: string; -pager?: PagerInput; -sort?: SortInput; } export interface PaymentsRoutesArgs{ @@ -4820,42 +5589,35 @@ psp_service_id?: string; crypto_network?: string; verification_type?: VerificationType; currency_type?: CurrencyType; -pager?: PagerInput; -sort?: SortInput; } -export interface CryptoNetworksArgs{ +export interface PspServicesArgs{ } -export interface PspServicesArgs{ +export interface CryptoNetworksArgs{ } export interface PaymentsLimitsArgs{ limit_group_id?: string; currency_id?: string; -pager?: PagerInput; -sort?: SortInput; +deposit_auto_reject?: ToggleSwitch; +withdrawal_auto_reject?: ToggleSwitch; } export interface ApiKeysArgs{ user_id?: string; -pager?: PagerInput; -sort?: SortInput; search?: string; +type?: ApiKeyTypes; } export interface CognitoPoolsArgs{ search?: string; -pager?: PagerInput; -sort?: SortInput; } export interface InstrumentsStrategiesArgs{ hedging_adapter_id?: string; instrument_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; is_active?: ToggleSwitch; hedging_enabled?: ToggleSwitch; } @@ -4865,16 +5627,11 @@ hedging_adapter_id?: string; side?: OrderSide; status?: HedgingOrderStatus; error_message?: string; -pager?: PagerInput; search?: string; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface SystemSettingsArgs{ search?: string; -pager?: PagerInput; -sort?: SortInput; } export interface NotificationSettingsArgs{ @@ -4898,10 +5655,19 @@ export interface AdminMfaProviderArgs{ export interface IsMarginTradingEnabledArgs{ } +export interface McpEnabledArgs{ +} + +export interface McpParametersArgs{ +} + export interface ProductsEnabledArgs{ role: ClientRole; } +export interface AmlsStatusArgs{ +} + export interface UserProductsEnabledArgs{ role: ClientRole; } @@ -4909,18 +5675,20 @@ role: ClientRole; export interface EllipticFiltersArgs{ } +export interface SearchLimitsArgs{ +entities: SearchLimitsEntity[]; +} + export interface AccountsPortfolioReportArgs{ currencies: string[]; } export interface OrdersSummaryReportArgs{ user_id?: string; -dateRange?: DateRangeInput; } export interface ConversionsSummaryReportArgs{ user_id?: string; -dateRange?: DateRangeInput; } export interface LiquidityReportArgs{ @@ -4928,13 +5696,11 @@ export interface LiquidityReportArgs{ export interface DailyBalancesReportArgs{ user_id?: string; -dateRange?: DateRangeInput; } export interface OpenExposureReportArgs{ base_currency_id?: string; quote_currency_id?: string; -pager?: PagerInput; } export interface PermissionsArgs{ @@ -4952,8 +5718,6 @@ export interface PermissionsShareArgs{ search?: string; user_id?: string; subject?: string; -pager?: PagerInput; -sort?: SortInput; group_by?: FindPermissionsShareGroupBy; } @@ -4967,9 +5731,6 @@ export interface WebhooksArgs{ is_active?: ToggleSwitch; user_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface HedgingAdapterIdsArgs{ @@ -4984,23 +5745,16 @@ event_data?: string; created_at?: string; search?: string; event_name: NotificationTrigger[]; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface TradingLimitsArgs{ limit_group_id?: string; instrument_id?: string; -pager?: PagerInput; -sort?: SortInput; } export interface TradingVolumesArgs{ user_id?: string; instrument_id?: string; -pager?: PagerInput; -sort?: SortInput; volume?: TradingVolumeType; } @@ -5020,8 +5774,6 @@ approval_status?: DelayedRequestStatus; admin_id?: string; admin_email?: string; approved_by?: string; -pager?: PagerInput; -sort?: SortInput; search?: string; } @@ -5053,9 +5805,6 @@ base_currency_id?: string; quote_currency_id?: string; source?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface CurrencyPricesArgs{ @@ -5074,45 +5823,12 @@ ip_address?: string; email?: string; ip_whitelist_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface HedgingAccountsArgs{ hedging_adapter_id?: string; currency_id?: string; is_active?: ToggleSwitch; -pager?: PagerInput; -sort?: SortInput; -} - -export interface MarginAccountTransactionsArgs{ -account_transaction_id?: string; -parent_transaction_id?: string; -client_transaction_id?: string; -account_id?: string; -payment_id?: string; -currency_id?: string; -transaction_class?: AccountTransactionClass; -type?: AccountTransactionType; -order_id?: string; -trade_id?: string; -conversion_id?: string; -margin_trade_id?: string; -comment?: string; -created_by?: string; -user_id?: string; -search?: string; -instrument_id?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; -} - -export interface MarginUsersFreeBalancesArgs{ -users_ids: string[]; } export interface AdminPropertiesArgs{ @@ -5134,8 +5850,6 @@ screening_id?: string; payment_id?: string; analysis_target?: KytAnalysisTarget; provider: KytProvider; -pager?: PagerInput; -sort?: SortInput; } export interface ScorechainMinimalRiskScoreArgs{ @@ -5146,8 +5860,6 @@ instrument_strategy_id?: string; instrument_id?: string; hedging_adapter_id?: string; search?: string; -sort?: SortInput; -pager?: PagerInput; } export interface InstrumentsStrategiesAlertsArgs{ @@ -5156,8 +5868,6 @@ alert_trigger?: InstrumentStrategyAlertTrigger; instrument_id?: string; hedging_adapter_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; } export interface InstrumentsStrategiesAlertsSettingsArgs{ @@ -5169,20 +5879,23 @@ currency_id?: string; is_active?: ToggleSwitch; withdrawal_enabled?: ToggleSwitch; deposit_enabled?: ToggleSwitch; +lock_strategy?: VaultLockStrategy; +rate_type?: VaultRateType; withdrawal_policy?: VaultWithdrawalPolicy; search?: string; -pager?: PagerInput; -sort?: SortInput; } export interface VaultsAverageUserApyArgs{ user_id?: string; +quote_currency_id?: string; +wallet_id?: string; } export interface EstimateVaultInterestsArgs{ vault_id: string; amount: number; duration_seconds?: number; +user_id?: string; } export interface VaultsAccountsArgs{ @@ -5192,13 +5905,13 @@ user_id?: string; currency_id?: string; hide_zero_balances?: ToggleSwitch; search?: string; -pager?: PagerInput; -sort?: SortInput; +wallet_id?: string; } export interface VaultsTotalUserBalanceQuotedArgs{ quote_currency_id: string; user_id?: string; +wallet_id?: string; } export interface VaultsTransactionsArgs{ @@ -5210,16 +5923,14 @@ transaction_type?: AccountTransactionType; transaction_class?: VaultsTransactionClass; search?: string; currency_id?: string; -pager?: PagerInput; -date_range?: DateRangeInput; -sort?: SortInput; +wallet_id?: string; } export interface VaultsTransactionsTotalSumArgs{ vault_id?: string; user_id?: string; -pager?: PagerInput; quote_currency_id: string; +wallet_id?: string; } export interface PortfolioHistoryArgs{ @@ -5266,7 +5977,6 @@ side?: OrderSide; currencies: string[]; exchanges: string[]; search?: string; -pager?: PagerInput; } export interface UnifiedTransactionsLpsArgs{ @@ -5281,26 +5991,22 @@ transaction_type?: AccountTransactionType; transaction_class?: VaultsTransactionClass; status?: VaultTransactionRequestStatus; approved_by?: string; +lock_id?: string; search?: string; -pager?: PagerInput; -date_range?: DateRangeInput; -sort?: SortInput; currency_id?: string; +wallet_id?: string; } export interface ReferralsArgs{ referral_id?: string; user_id?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; } export interface AggregatedPaymentsLimitsArgs{ limit_group_id?: string; currency_id?: string; -pager?: PagerInput; -sort?: SortInput; +auto_reject?: ToggleSwitch; } export interface AuditTrailLogArgs{ @@ -5308,11 +6014,7 @@ entity?: string; action?: string; actor_id?: string; actor_ip?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; search?: string; -search_expression?: string; } export interface MyAuditTrailLogArgs{ @@ -5320,20 +6022,13 @@ entity?: string; action?: string; actor_id?: string; actor_ip?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; search?: string; -search_expression?: string; } export interface AdminEventsLogArgs{ search?: string; action?: string; actor_id?: string; -pager?: PagerInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; } export interface ReferralsHistoryArgs{ @@ -5341,9 +6036,6 @@ referral_id?: string; parent_user_id?: string; child_user_id?: string; search?: string; -date_range?: DateRangeInput; -pager?: PagerInput; -sort?: SortInput; } export interface ReferredUsersCountArgs{ @@ -5359,18 +6051,12 @@ export interface BlacklistItemsArgs{ ip_address?: string; reason?: string; search?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; } export interface SystemLogsArgs{ stem?: string; event?: string; rrn?: string; -pager?: PagerInput; -dateRange?: DateRangeInput; -serialIdRange?: SerialIdRangeInput; } export interface LogsConfigArgs{ @@ -5378,7 +6064,6 @@ event_name?: string; write_log?: ToggleSwitch; write_console?: ToggleSwitch; is_active?: ToggleSwitch; -pager?: PagerInput; } export interface WhoamiArgs{ @@ -5387,6 +6072,18 @@ export interface WhoamiArgs{ export interface IsTradingAllowedArgs{ } +export interface EnabledVaultsArgs{ +vault_id?: string; +currency_id?: string; +is_active?: ToggleSwitch; +withdrawal_enabled?: ToggleSwitch; +deposit_enabled?: ToggleSwitch; +lock_strategy?: VaultLockStrategy; +rate_type?: VaultRateType; +withdrawal_policy?: VaultWithdrawalPolicy; +search?: string; +} + export interface ReferralsTransactionsInfoArgs{ account_transaction_id?: string; target_user_id?: string; @@ -5394,10 +6091,7 @@ referral_id?: string; reward_type?: ReferralRewardType; currency_id?: string; is_delayed?: ToggleSwitch; -date_range?: DateRangeInput; search?: string; -pager?: PagerInput; -sort?: SortInput; } export interface LicenseArgs{ @@ -5414,9 +6108,7 @@ instrument_id?: string; status?: TradingGridStatus; price_from?: number; price_to?: number; -pager?: PagerInput; -sort?: SortInput; -wallet_id?: string; +wallet_id: string; } export interface TradingGridLevelsArgs{ @@ -5425,8 +6117,6 @@ status?: TradingGridLevelStatus; sell_order_id?: string; buy_order_id?: string; trading_grid_id?: string; -pager?: PagerInput; -sort?: SortInput; } export interface UserFeesConfigArgs{ @@ -5440,22 +6130,43 @@ amount: number; export interface CashHoldingsReportArgs{ user_id?: string; -date_range?: DateRangeInput; +} + +export interface TotalValueOfCryptoAssetsInUSDArgs{ +user_id?: string; +currency_id?: string; +hide_zero_balances?: ToggleSwitch; +wallet_id?: string; +} + +export interface TotalValueOfCryptoAssetsInEURArgs{ +user_id?: string; +currency_id?: string; +hide_zero_balances?: ToggleSwitch; +wallet_id?: string; +} + +export interface TotalAssetsValueArgs{ +user_id?: string; +currency_id: string; } export interface TradeTiersArgs{ tier_id?: string; -fee_group_id?: string; name?: string; -pager?: PagerInput; -sort?: SortInput; +search?: string; +} + +export interface TierFeesArgs{ +tier_fee_id?: string; +tier_id?: string; +instrument_id?: string; +search?: string; } -export interface TradeVolumesArgs{ +export interface TradesRollingVolumesArgs{ serial_id?: number; user_id?: string; -pager?: PagerInput; -sort?: SortInput; } export interface WalletsArgs{ @@ -5463,9 +6174,104 @@ wallet_id?: string; user_id?: string; name?: string; description?: string; -pager?: PagerInput; -sort?: SortInput; -dateRange?: DateRangeInput; +is_active?: string; +type?: string; +} + +export interface WalletTransfersArgs{ +user_id?: string; +from_wallet_id?: string; +to_wallet_id?: string; +currency_id?: string; +transfer_id?: string; +} + +export interface VouchersArgs{ +search?: string; +voucher_id?: string; +status?: VoucherStatus; +} + +export interface VoucherCodesArgs{ +search?: string; +voucher_id?: string; +user_id?: string; +code?: string; +status?: VoucherCodeStatus; +} + +export interface YieldAdaptersArgs{ +yield_adapter_id?: string; +service_url?: string; +sync?: ToggleSwitch; +search?: string; +} + +export interface YieldTransactionsArgs{ +yield_transaction_id?: string; +type?: YieldTransactionType; +status?: YieldTransactionStatus; +yield_adapter_id?: string; +vault_transaction_request_id?: string; +search?: string; +} + +export interface VaultsStrategiesArgs{ +vault_strategy_id?: string; +vault_id?: string; +yield_adapter_id?: string; +yield_sync?: ToggleSwitch; +funding_sync?: ToggleSwitch; +search?: string; +currency_id?: string; +} + +export interface PtsAccountTransactionsArgs{ +pts_transaction_id?: string; +account_id?: string; +target_account?: PTSTargetAccount; +type?: AccountTransactionType; +comment?: string; +user_id?: string; +currency_id?: string; +search?: string; +} + +export interface TradingViewTemplatesArgs{ +template_id?: string; +template_type?: SpotMargin; +instrument_id?: string; +periodicity?: InstrumentHistoryPeriodicity; +} + +export interface OtcOrdersArgs{ +order_id?: string; +instrument_id?: string; +side?: OtcOrderSide; +status?: OtcOrderStatus; +search?: string; +} + +export interface AdminOtcOrdersArgs{ +status?: OtcOrderStatus; +search?: string; +order_id?: string; +instrument_id?: string; +side?: OtcOrderSide; +user_id?: string; +} + +export interface OtcHedgingOrdersArgs{ +order_id?: string; +user_id?: string; +instrument_id?: string; +side?: OtcOrderSide; +status?: OtcOrderStatus; +search?: string; +} + +export interface OtcHedgingBalancesArgs{ +instruments: string[]; } export interface UserIpGeoHistoryArgs{ @@ -5490,8 +6296,8 @@ to_date: string; - export function buildGraphQLQuery(fields:any) { - const queryFields = fields.map((field:any) => { + export function buildGraphQLQuery(fields) { + const queryFields = fields.map((field) => { if (typeof field === 'string') { return field; } else if (typeof field === 'object') { @@ -5504,11 +6310,11 @@ to_date: string; return queryFields.join(' '); } - export class ShiftV4Sdk { + export class SdkClient { private gql_client: GraphQLClient; private global_headers: {[x: string]: string} = {}; - constructor(endpoint: string, options?: any | undefined) { + constructor(endpoint: string, options?: RequestConfig | undefined) { this.gql_client = new GraphQLClient(endpoint,options); } @@ -5522,7 +6328,6 @@ to_date: string; async gql_request(document: RequestDocument, variables?: any, requestHeaders?: HeadersInit, name?: string) { return this.gql_client.request(document, variables, {...this.global_headers, ...requestHeaders}).then((res) => { - //@ts-ignore if (name) return res[name]; return res; }); @@ -5541,7 +6346,7 @@ to_date: string; async create_order({args, fields, headers}:{args: CreateOrderArgs, fields:((keyof Order) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$wallet_id: String,$client_order_id: String,$instrument_id: String!,$quantity: Float!,$quantity_mode: OrderQuantityMode,$type: OrderType!,$side: OrderSide!,$time_in_force: OrderTimeInForce!,$price: Float,$expires_at: String,$notes: String,$stop_price: Float,$post_only: ToggleSwitch) { + mutation($user_id: String,$wallet_id: String!,$client_order_id: String,$instrument_id: String!,$quantity: Float!,$quantity_mode: OrderQuantityMode,$type: OrderType!,$side: OrderSide!,$time_in_force: OrderTimeInForce!,$price: Float,$expires_at: String,$notes: String,$stop_price: Float,$post_only: ToggleSwitch) { create_order(user_id:$user_id,wallet_id:$wallet_id,client_order_id:$client_order_id,instrument_id:$instrument_id,quantity:$quantity,quantity_mode:$quantity_mode,type:$type,side:$side,time_in_force:$time_in_force,price:$price,expires_at:$expires_at,notes:$notes,stop_price:$stop_price,post_only:$post_only) { ${buildGraphQLQuery(fields)} @@ -5565,7 +6370,7 @@ async update_open_order({args, fields, headers}:{args: UpdateOpenOrderArgs, fie async cancel_multiple_orders({args, headers}:{args: CancelMultipleOrdersArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($order_ids: [string!]!,$message: String) { + mutation($order_ids: String!,$message: String) { cancel_multiple_orders(order_ids:$order_ids,message:$message) } @@ -5637,8 +6442,8 @@ async restrictions_check({ headers}:{ headers?:HeadersInit}={}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($email: String!,$password: String!,$first_name: String!,$last_name: String!) { - register_trader_local(email:$email,password:$password,first_name:$first_name,last_name:$last_name) + mutation($user_id: String,$username: String,$email: String!,$password: String!,$first_name: String!,$last_name: String!) { + register_trader_local(user_id:$user_id,username:$username,email:$email,password:$password,first_name:$first_name,last_name:$last_name) } `,args || {},headers,'register_trader_local') @@ -5654,10 +6459,20 @@ async trader_signin_local({args, headers}:{args: TraderSigninLocalArgs, header `,args || {},headers,'trader_signin_local') } +async reset_local_password({args, headers}:{args: ResetLocalPasswordArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($email: String!,$code: String!,$password: String!) { + reset_local_password(email:$email,code:$code,password:$password) + + } + `,args || {},headers,'reset_local_password') + } + async create_admins({args, headers}:{args: CreateAdminsArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($emails: [string!]!,$subjects: [string!]!) { + mutation($emails: String!,$subjects: String!) { create_admins(emails:$emails,subjects:$subjects) } @@ -5687,7 +6502,7 @@ async admin_signin_local({args, headers}:{args: AdminSigninLocalArgs, headers? async create_local_admin({args, headers}:{args: CreateLocalAdminArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($email: String!,$password: String!,$subjects: [string!]!) { + mutation($email: String!,$password: String!,$subjects: String!) { create_local_admin(email:$email,password:$password,subjects:$subjects) } @@ -5709,7 +6524,7 @@ async create_instrument({args, fields, headers}:{args: CreateInstrumentArgs, fi async update_instrument({args, headers}:{args: UpdateInstrumentArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$instrument_id: String,$base_currency_id: String,$quote_currency_id: String,$price_decimals: Float,$quantity_decimals: Int,$quote_quantity_decimals: Int,$min_quantity: Float,$max_quantity: Float,$min_quote_quantity: Float,$max_quote_quantity: Float,$is_active: ToggleSwitch,$meta: String,$max_conversion_quote_ttl: Int,$price_collar: Float,$serial_ids: [number!]!) { + mutation($name: String,$instrument_id: String,$base_currency_id: String,$quote_currency_id: String,$price_decimals: Float,$quantity_decimals: Int,$quote_quantity_decimals: Int,$min_quantity: Float,$max_quantity: Float,$min_quote_quantity: Float,$max_quote_quantity: Float,$is_active: ToggleSwitch,$meta: String,$max_conversion_quote_ttl: Int,$price_collar: Float,$serial_ids: Int!) { update_instrument(name:$name,instrument_id:$instrument_id,base_currency_id:$base_currency_id,quote_currency_id:$quote_currency_id,price_decimals:$price_decimals,quantity_decimals:$quantity_decimals,quote_quantity_decimals:$quote_quantity_decimals,min_quantity:$min_quantity,max_quantity:$max_quantity,min_quote_quantity:$min_quote_quantity,max_quote_quantity:$max_quote_quantity,is_active:$is_active,meta:$meta,max_conversion_quote_ttl:$max_conversion_quote_ttl,price_collar:$price_collar,serial_ids:$serial_ids) } @@ -5719,21 +6534,51 @@ async update_instrument({args, headers}:{args: UpdateInstrumentArgs, headers?: async delete_instrument({args, headers}:{args: DeleteInstrumentArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Float,$serial_ids: [number!]!) { + mutation($serial_id: Float,$serial_ids: Int!) { delete_instrument(serial_id:$serial_id,serial_ids:$serial_ids) } `,args || {},headers,'delete_instrument') } -async fill_instrument({args, headers}:{args: FillInstrumentArgs, headers?:HeadersInit}):Promise{ +async migrate_price_history_to_timescaledb({args, headers}:{args: MigratePriceHistoryToTimescaledbArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($instrument_ids: String!,$time_from: String!,$time_to: String!) { + migrate_price_history_to_timescaledb(instrument_ids:$instrument_ids,time_from:$time_from,time_to:$time_to) + + } + `,args || {},headers,'migrate_price_history_to_timescaledb') + } + +async enable_continuous_aggregate_policies({ headers}:{ headers?:HeadersInit}={}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation { + enable_continuous_aggregate_policies + + } + `,{},headers,'enable_continuous_aggregate_policies') + } + +async disable_continuous_aggregate_policies({ headers}:{ headers?:HeadersInit}={}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($instrument: String!,$dateTo: String!,$limit: Float!,$periodicity: InstrumentHistoryPeriodicity!) { - fill_instrument(instrument:$instrument,dateTo:$dateTo,limit:$limit,periodicity:$periodicity) + mutation { + disable_continuous_aggregate_policies + + } + `,{},headers,'disable_continuous_aggregate_policies') + } + +async restore_price_bars({args, headers}:{args: RestorePriceBarsArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($instrument: String!,$startDate: String!,$endDate: String!,$periodicity: InstrumentHistoryPeriodicity!) { + restore_price_bars(instrument:$instrument,startDate:$startDate,endDate:$endDate,periodicity:$periodicity) } - `,args || {},headers,'fill_instrument') + `,args || {},headers,'restore_price_bars') } async create_currency({args, fields, headers}:{args: CreateCurrencyArgs, fields:((keyof Currency) | Partial>)[], headers?:HeadersInit}):Promise{ @@ -5751,7 +6596,7 @@ async create_currency({args, fields, headers}:{args: CreateCurrencyArgs, fields async update_currency({args, headers}:{args: UpdateCurrencyArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($type: CurrencyType,$precision: Int,$name: String,$is_active: ToggleSwitch,$currency_id: String,$serial_ids: [number!]!) { + mutation($type: CurrencyType,$precision: Int,$name: String,$is_active: ToggleSwitch,$currency_id: String,$serial_ids: Int!) { update_currency(type:$type,precision:$precision,name:$name,is_active:$is_active,currency_id:$currency_id,serial_ids:$serial_ids) } @@ -5801,8 +6646,8 @@ async update_payment_approval_status({args, headers}:{args: UpdatePaymentApprov async create_withdrawal_crypto({args, fields, headers}:{args: CreateWithdrawalCryptoArgs, fields:((keyof Payment) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$payment_route_id: String,$currency_id: String,$psp_service_id: String,$crypto_network: String,$amount: Float!,$crypto_address: String!,$crypto_address_tag_type: CryptoAddressTagType,$crypto_address_tag_value: String,$crypto_network_fee_preference: String,$reference: String,$mfa_token: String,$fees_included: ToggleSwitch,$skip_address_validation: Boolean,$bank_id_session: String,$travel_rule_properties: TravelRulePropertiesArgs) { - create_withdrawal_crypto(user_id:$user_id,payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,crypto_network:$crypto_network,amount:$amount,crypto_address:$crypto_address,crypto_address_tag_type:$crypto_address_tag_type,crypto_address_tag_value:$crypto_address_tag_value,crypto_network_fee_preference:$crypto_network_fee_preference,reference:$reference,mfa_token:$mfa_token,fees_included:$fees_included,skip_address_validation:$skip_address_validation,bank_id_session:$bank_id_session,travel_rule_properties:$travel_rule_properties) + mutation($user_id: String,$payment_route_id: String,$currency_id: String,$psp_service_id: String,$crypto_network: String,$amount: Float!,$crypto_address: String!,$crypto_address_tag_type: CryptoAddressTagType,$crypto_address_tag_value: String,$crypto_network_fee_preference: String,$reference: String,$mfa_token: String,$fees_included: ToggleSwitch,$skip_address_validation: Boolean,$bank_id_session: String,$comment: String,$message: String,$wallet_id: String!,$vasp_id: String) { + create_withdrawal_crypto(user_id:$user_id,payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,crypto_network:$crypto_network,amount:$amount,crypto_address:$crypto_address,crypto_address_tag_type:$crypto_address_tag_type,crypto_address_tag_value:$crypto_address_tag_value,crypto_network_fee_preference:$crypto_network_fee_preference,reference:$reference,mfa_token:$mfa_token,fees_included:$fees_included,skip_address_validation:$skip_address_validation,bank_id_session:$bank_id_session,comment:$comment,message:$message,wallet_id:$wallet_id,vasp_id:$vasp_id) { ${buildGraphQLQuery(fields)} } @@ -5813,8 +6658,8 @@ async create_withdrawal_crypto({args, fields, headers}:{args: CreateWithdrawalC async create_withdrawal_fiat({args, fields, headers}:{args: CreateWithdrawalFiatArgs, fields:((keyof Payment) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$amount: Float!,$payment_route_id: String,$currency_id: String,$psp_service_id: String,$mfa_token: String,$properties: [FiatDepositPropertyInput!]) { - create_withdrawal_fiat(user_id:$user_id,amount:$amount,payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,mfa_token:$mfa_token,properties:$properties) + mutation($user_id: String,$amount: Float!,$payment_route_id: String,$currency_id: String,$psp_service_id: String,$mfa_token: String,$wallet_id: String!,$vasp_id: String) { + create_withdrawal_fiat(user_id:$user_id,amount:$amount,payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,mfa_token:$mfa_token,wallet_id:$wallet_id,vasp_id:$vasp_id) { ${buildGraphQLQuery(fields)} } @@ -5825,8 +6670,8 @@ async create_withdrawal_fiat({args, fields, headers}:{args: CreateWithdrawalFia async create_payment_manual({args, fields, headers}:{args: CreatePaymentManualArgs, fields:((keyof Payment) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($payment_route_id: String!,$remote_txid: String,$user_id: String!,$amount: Float!,$type: PaymentType!,$body_amount: Float,$message: String,$reference: String,$create_account_operations: Boolean,$manual_transaction_date: String,$properties: [FiatDepositPropertyInput!],$status: PaymentStatus,$approval_status: PaymentApprovalStatus) { - create_payment_manual(payment_route_id:$payment_route_id,remote_txid:$remote_txid,user_id:$user_id,amount:$amount,type:$type,body_amount:$body_amount,message:$message,reference:$reference,create_account_operations:$create_account_operations,manual_transaction_date:$manual_transaction_date,properties:$properties,status:$status,approval_status:$approval_status) + mutation($payment_route_id: String!,$remote_txid: String,$user_id: String!,$amount: Float!,$type: PaymentType!,$body_amount: Float,$message: String,$fee_amount: Float,$fees_included: ToggleSwitch,$reference: String,$create_account_operations: Boolean!,$manual_transaction_date: String,$status: PaymentStatus,$approval_status: PaymentApprovalStatus,$wallet_id: String!) { + create_payment_manual(payment_route_id:$payment_route_id,remote_txid:$remote_txid,user_id:$user_id,amount:$amount,type:$type,body_amount:$body_amount,message:$message,fee_amount:$fee_amount,fees_included:$fees_included,reference:$reference,create_account_operations:$create_account_operations,manual_transaction_date:$manual_transaction_date,status:$status,approval_status:$approval_status,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -5849,8 +6694,8 @@ async create_conversion_order({args, fields, headers}:{args: CreateConversionOr async create_conversion_quote({args, fields, headers}:{args: CreateConversionQuoteArgs, fields:((keyof CreateConversionQuoteResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$source_currency_id: String!,$target_currency_id: String!,$source_currency_amount: Float,$target_currency_amount: Float,$fees_in_price: Boolean,$reference: String,$ttl: Int,$dry_run: ToggleSwitch) { - create_conversion_quote(user_id:$user_id,source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,source_currency_amount:$source_currency_amount,target_currency_amount:$target_currency_amount,fees_in_price:$fees_in_price,reference:$reference,ttl:$ttl,dry_run:$dry_run) + mutation($user_id: String,$source_currency_id: String!,$target_currency_id: String!,$source_currency_amount: Float,$target_currency_amount: Float,$instrument_id: String,$fees_in_price: Boolean,$reference: String,$ttl: Int,$dry_run: ToggleSwitch) { + create_conversion_quote(user_id:$user_id,source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,source_currency_amount:$source_currency_amount,target_currency_amount:$target_currency_amount,instrument_id:$instrument_id,fees_in_price:$fees_in_price,reference:$reference,ttl:$ttl,dry_run:$dry_run) { ${buildGraphQLQuery(fields)} } @@ -5931,8 +6776,8 @@ async update_user_password({args, headers}:{args: UpdateUserPasswordArgs, head async update_user({args, fields, headers}:{args: UpdateUserArgs, fields:((keyof User) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($parent_user_id: String,$username: String,$email: String,$language: String,$timezone: String,$primary_market_currency: String,$is_active: ToggleSwitch,$mfa_for_withdraw: ToggleSwitch,$updated_at: String,$crypto_pay: ToggleSwitch,$user_id: String,$favorite_instruments: [string!]!,$favorite_addresses_crypto: [FavoriteAddressCryptoItem!]!,$favorite_fiat_destinations: [FavoriteFiatDestinationItem!]!,$notifications_settings: [NotificationTrigger!]!,$client_custom_properties: [ClientCustomPropertyItem!]!,$notifications_options: NotificationOptionsArgs,$mfa_token: String,$mfa_status: ToggleSwitch,$full_name: String,$default_timezone: ToggleSwitch,$client_user_id: String,$permissions: [Permission!]!) { - update_user(parent_user_id:$parent_user_id,username:$username,email:$email,language:$language,timezone:$timezone,primary_market_currency:$primary_market_currency,is_active:$is_active,mfa_for_withdraw:$mfa_for_withdraw,updated_at:$updated_at,crypto_pay:$crypto_pay,user_id:$user_id,favorite_instruments:$favorite_instruments,favorite_addresses_crypto:$favorite_addresses_crypto,favorite_fiat_destinations:$favorite_fiat_destinations,notifications_settings:$notifications_settings,client_custom_properties:$client_custom_properties,notifications_options:$notifications_options,mfa_token:$mfa_token,mfa_status:$mfa_status,full_name:$full_name,default_timezone:$default_timezone,client_user_id:$client_user_id,permissions:$permissions) + mutation($parent_user_id: String,$username: String,$email: String,$language: String,$timezone: String,$primary_market_currency: String,$is_active: ToggleSwitch,$mfa_for_withdraw: ToggleSwitch,$updated_at: String,$crypto_pay: ToggleSwitch,$user_id: String,$favorite_instruments: String!,$notifications_settings: NotificationTrigger!,$mfa_token: String,$mfa_status: ToggleSwitch,$full_name: String,$default_timezone: ToggleSwitch,$client_user_id: String) { + update_user(parent_user_id:$parent_user_id,username:$username,email:$email,language:$language,timezone:$timezone,primary_market_currency:$primary_market_currency,is_active:$is_active,mfa_for_withdraw:$mfa_for_withdraw,updated_at:$updated_at,crypto_pay:$crypto_pay,user_id:$user_id,favorite_instruments:$favorite_instruments,notifications_settings:$notifications_settings,mfa_token:$mfa_token,mfa_status:$mfa_status,full_name:$full_name,default_timezone:$default_timezone,client_user_id:$client_user_id) { ${buildGraphQLQuery(fields)} } @@ -5943,8 +6788,8 @@ async update_user({args, fields, headers}:{args: UpdateUserArgs, fields:((keyof async create_user({args, fields, headers}:{args: CreateUserArgs, fields:((keyof User) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$parent_user_id: String,$email: String,$language: String,$timezone: String,$primary_market_currency: String,$fee_group_id: String,$limit_group_id: String,$crypto_pay: ToggleSwitch,$username: String!,$cognito_registration: ToggleSwitch,$cognito_email: ToggleSwitch,$permissions: [Permission!]!,$mfa_secret: String,$first_name: String,$last_name: String,$password: String,$password_hash: String,$client_user_id: String,$client_custom_properties: [ClientCustomPropertyItem!]!) { - create_user(user_id:$user_id,parent_user_id:$parent_user_id,email:$email,language:$language,timezone:$timezone,primary_market_currency:$primary_market_currency,fee_group_id:$fee_group_id,limit_group_id:$limit_group_id,crypto_pay:$crypto_pay,username:$username,cognito_registration:$cognito_registration,cognito_email:$cognito_email,permissions:$permissions,mfa_secret:$mfa_secret,first_name:$first_name,last_name:$last_name,password:$password,password_hash:$password_hash,client_user_id:$client_user_id,client_custom_properties:$client_custom_properties) + mutation($user_id: String,$parent_user_id: String,$email: String,$language: String,$timezone: String,$primary_market_currency: String,$fee_group_id: String,$limit_group_id: String,$crypto_pay: ToggleSwitch,$username: String!,$cognito_registration: ToggleSwitch,$cognito_email: ToggleSwitch,$mfa_secret: String,$first_name: String,$last_name: String,$password: String,$password_hash: String,$client_user_id: String,$country: String) { + create_user(user_id:$user_id,parent_user_id:$parent_user_id,email:$email,language:$language,timezone:$timezone,primary_market_currency:$primary_market_currency,fee_group_id:$fee_group_id,limit_group_id:$limit_group_id,crypto_pay:$crypto_pay,username:$username,cognito_registration:$cognito_registration,cognito_email:$cognito_email,mfa_secret:$mfa_secret,first_name:$first_name,last_name:$last_name,password:$password,password_hash:$password_hash,client_user_id:$client_user_id,country:$country) { ${buildGraphQLQuery(fields)} } @@ -5955,30 +6800,50 @@ async create_user({args, fields, headers}:{args: CreateUserArgs, fields:((keyof async update_anti_phishing_code({args, headers}:{args: UpdateAntiPhishingCodeArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($anti_phishing_code: String!,$token: String!) { - update_anti_phishing_code(anti_phishing_code:$anti_phishing_code,token:$token) + mutation($anti_phishing_code: String!) { + update_anti_phishing_code(anti_phishing_code:$anti_phishing_code) } `,args || {},headers,'update_anti_phishing_code') } -async create_account_transaction({args, fields, headers}:{args: CreateAccountTransactionArgs, fields:((keyof CreateAccountTransactionResult) | Partial>)[], headers?:HeadersInit}):Promise{ +async update_mfa_for_withdraw({args, headers}:{args: UpdateMfaForWithdrawArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($mfa_for_withdraw: ToggleSwitch!,$mfa_token: String!) { + update_mfa_for_withdraw(mfa_for_withdraw:$mfa_for_withdraw,mfa_token:$mfa_token) + + } + `,args || {},headers,'update_mfa_for_withdraw') + } + +async resettle_pts({args, headers}:{args?: ResettlePtsArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($user_id: String) { + resettle_pts(user_id:$user_id) + + } + `,args || {},headers,'resettle_pts') + } + +async create_account_transaction({ fields, headers}:{ fields:((keyof CreateAccountTransactionResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($items: [RecordTransactionItem!]!) { - create_account_transaction(items:$items) + mutation { + create_account_transaction { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'create_account_transaction') + `,{},headers,'create_account_transaction') } async create_limit_group({args, fields, headers}:{args: CreateLimitGroupArgs, fields:((keyof LimitGroup) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$description: String,$kyc_status: UserKycStatus,$meta: String,$limit_group_id: String,$disabled_currencies: [string!]!,$disabled_instruments: [string!]!,$disabled_payment_routes: [string!]!,$aggregated_payment_limit: CreateAggregatedPaymentLimitArgs) { - create_limit_group(name:$name,description:$description,kyc_status:$kyc_status,meta:$meta,limit_group_id:$limit_group_id,disabled_currencies:$disabled_currencies,disabled_instruments:$disabled_instruments,disabled_payment_routes:$disabled_payment_routes,aggregated_payment_limit:$aggregated_payment_limit) + mutation($name: String,$description: String,$kyc_status: UserKycStatus,$meta: String,$limit_group_id: String,$disabled_currencies: String!,$disabled_instruments: String!,$disabled_payment_routes: String!) { + create_limit_group(name:$name,description:$description,kyc_status:$kyc_status,meta:$meta,limit_group_id:$limit_group_id,disabled_currencies:$disabled_currencies,disabled_instruments:$disabled_instruments,disabled_payment_routes:$disabled_payment_routes) { ${buildGraphQLQuery(fields)} } @@ -5989,8 +6854,8 @@ async create_limit_group({args, fields, headers}:{args: CreateLimitGroupArgs, f async update_limit_group({args, headers}:{args: UpdateLimitGroupArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$description: String,$kyc_status: UserKycStatus,$meta: String,$limit_group_id: String,$serial_ids: [number!]!,$disabled_currencies: [string!]!,$disabled_payment_routes: [string!]!,$disabled_instruments: [string!]!,$aggregated_payment_limit: UpdateAggregatedPaymentLimitArgs) { - update_limit_group(name:$name,description:$description,kyc_status:$kyc_status,meta:$meta,limit_group_id:$limit_group_id,serial_ids:$serial_ids,disabled_currencies:$disabled_currencies,disabled_payment_routes:$disabled_payment_routes,disabled_instruments:$disabled_instruments,aggregated_payment_limit:$aggregated_payment_limit) + mutation($name: String,$description: String,$kyc_status: UserKycStatus,$meta: String,$limit_group_id: String,$serial_ids: Int!,$disabled_currencies: String!,$disabled_payment_routes: String!,$disabled_instruments: String!) { + update_limit_group(name:$name,description:$description,kyc_status:$kyc_status,meta:$meta,limit_group_id:$limit_group_id,serial_ids:$serial_ids,disabled_currencies:$disabled_currencies,disabled_payment_routes:$disabled_payment_routes,disabled_instruments:$disabled_instruments) } `,args || {},headers,'update_limit_group') @@ -5999,7 +6864,7 @@ async update_limit_group({args, headers}:{args: UpdateLimitGroupArgs, headers? async delete_limit_group({args, headers}:{args: DeleteLimitGroupArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Int,$serial_ids: [number!]!) { + mutation($serial_id: Int,$serial_ids: Int!) { delete_limit_group(serial_id:$serial_id,serial_ids:$serial_ids) } @@ -6009,8 +6874,8 @@ async delete_limit_group({args, headers}:{args: DeleteLimitGroupArgs, headers? async create_fee_group({args, fields, headers}:{args?: CreateFeeGroupArgs, fields:((keyof FeeGroup) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$description: String,$kyc_status: UserKycStatus,$meta: String,$beneficiary_user_id: String,$fee_group_id: String) { - create_fee_group(name:$name,description:$description,kyc_status:$kyc_status,meta:$meta,beneficiary_user_id:$beneficiary_user_id,fee_group_id:$fee_group_id) + mutation($name: String,$description: String,$kyc_status: UserKycStatus,$meta: String,$calendar_month_timeframe: String,$beneficiary_user_id: String,$fee_group_id: String) { + create_fee_group(name:$name,description:$description,kyc_status:$kyc_status,meta:$meta,calendar_month_timeframe:$calendar_month_timeframe,beneficiary_user_id:$beneficiary_user_id,fee_group_id:$fee_group_id) { ${buildGraphQLQuery(fields)} } @@ -6021,8 +6886,8 @@ async create_fee_group({args, fields, headers}:{args?: CreateFeeGroupArgs, fiel async update_fee_group({args, headers}:{args: UpdateFeeGroupArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$description: String,$beneficiary_user_id: String,$kyc_status: UserKycStatus,$meta: String,$fee_group_id: String,$serial_ids: [number!]!) { - update_fee_group(name:$name,description:$description,beneficiary_user_id:$beneficiary_user_id,kyc_status:$kyc_status,meta:$meta,fee_group_id:$fee_group_id,serial_ids:$serial_ids) + mutation($name: String,$description: String,$beneficiary_user_id: String,$kyc_status: UserKycStatus,$meta: String,$calendar_month_timeframe: String,$fee_group_id: String,$serial_ids: Int!) { + update_fee_group(name:$name,description:$description,beneficiary_user_id:$beneficiary_user_id,kyc_status:$kyc_status,meta:$meta,calendar_month_timeframe:$calendar_month_timeframe,fee_group_id:$fee_group_id,serial_ids:$serial_ids) } `,args || {},headers,'update_fee_group') @@ -6031,7 +6896,7 @@ async update_fee_group({args, headers}:{args: UpdateFeeGroupArgs, headers?:Hea async delete_fee_group({args, headers}:{args: DeleteFeeGroupArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Int,$serial_ids: [number!]!) { + mutation($serial_id: Int,$serial_ids: Int!) { delete_fee_group(serial_id:$serial_id,serial_ids:$serial_ids) } @@ -6041,7 +6906,7 @@ async delete_fee_group({args, headers}:{args: DeleteFeeGroupArgs, headers?:Hea async estimate_payment_fee({args, headers}:{args: EstimatePaymentFeeArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$payment_route_id: String,$currency_id: String,$psp_service_id: String,$crypto_network: String,$type: PaymentType!,$amount: Float!,$crypto_network_fee_preference: CryptoNetworkFeePreference,$crypto_address: String,$crypto_address_tag_type: CryptoAddressTagType,$crypto_address_tag_value: String) { + mutation($user_id: String,$payment_route_id: String,$currency_id: String,$psp_service_id: String,$crypto_network: String,$type: PaymentType!,$amount: Float!,$crypto_network_fee_preference: CryptoNetworkFeePreference!,$crypto_address: String,$crypto_address_tag_type: CryptoAddressTagType,$crypto_address_tag_value: String) { estimate_payment_fee(user_id:$user_id,payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,crypto_network:$crypto_network,type:$type,amount:$amount,crypto_network_fee_preference:$crypto_network_fee_preference,crypto_address:$crypto_address,crypto_address_tag_type:$crypto_address_tag_type,crypto_address_tag_value:$crypto_address_tag_value) } @@ -6063,7 +6928,7 @@ async estimate_network_fee({args, fields, headers}:{args: EstimateNetworkFeeArg async update_payment_fee({args, headers}:{args: UpdatePaymentFeeArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($currency_id: String,$fee_group_id: String,$withdrawal_progressive_fee: Float,$withdrawal_flat_fee: Float,$deposit_progressive_fee: Float,$deposit_flat_fee: Float,$payment_route_id: String,$fiat_transfer_type: String,$crypto_network: String,$calculation_type: FeeCalculationType,$serial_id: Int,$serial_ids: [number!]!) { + mutation($currency_id: String,$fee_group_id: String,$withdrawal_progressive_fee: Float,$withdrawal_flat_fee: Float,$deposit_progressive_fee: Float,$deposit_flat_fee: Float,$payment_route_id: String,$fiat_transfer_type: String,$crypto_network: String,$calculation_type: FeeCalculationType,$serial_id: Int,$serial_ids: Int!) { update_payment_fee(currency_id:$currency_id,fee_group_id:$fee_group_id,withdrawal_progressive_fee:$withdrawal_progressive_fee,withdrawal_flat_fee:$withdrawal_flat_fee,deposit_progressive_fee:$deposit_progressive_fee,deposit_flat_fee:$deposit_flat_fee,payment_route_id:$payment_route_id,fiat_transfer_type:$fiat_transfer_type,crypto_network:$crypto_network,calculation_type:$calculation_type,serial_id:$serial_id,serial_ids:$serial_ids) } @@ -6085,7 +6950,7 @@ async create_trading_fee({args, fields, headers}:{args: CreateTradingFeeArgs, f async update_trading_fee({args, headers}:{args: UpdateTradingFeeArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Int,$maker_progressive: Float,$taker_progressive: Float,$maker_flat: Float,$taker_flat: Float,$instrument_id: String,$fee_group_id: String,$serial_ids: [number!]!) { + mutation($serial_id: Int,$maker_progressive: Float,$taker_progressive: Float,$maker_flat: Float,$taker_flat: Float,$instrument_id: String,$fee_group_id: String,$serial_ids: Int!) { update_trading_fee(serial_id:$serial_id,maker_progressive:$maker_progressive,taker_progressive:$taker_progressive,maker_flat:$maker_flat,taker_flat:$taker_flat,instrument_id:$instrument_id,fee_group_id:$fee_group_id,serial_ids:$serial_ids) } @@ -6095,7 +6960,7 @@ async update_trading_fee({args, headers}:{args: UpdateTradingFeeArgs, headers? async delete_trading_fee({args, headers}:{args: DeleteTradingFeeArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Int,$serial_ids: [number!]!,$instrument_id: String,$fee_group_id: String) { + mutation($serial_id: Int,$serial_ids: Int!,$instrument_id: String,$fee_group_id: String) { delete_trading_fee(serial_id:$serial_id,serial_ids:$serial_ids,instrument_id:$instrument_id,fee_group_id:$fee_group_id) } @@ -6115,40 +6980,72 @@ async create_payment_session({args, headers}:{args: CreatePaymentSessionArgs, async create_payment_route({args, fields, headers}:{args: CreatePaymentRouteArgs, fields:((keyof PaymentRoute) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($currency_id: String!,$psp_service_id: String!,$name: String,$crypto_network: String,$crypto_address_generate_new: ToggleSwitch,$crypto_address_tag_type: CryptoAddressTagType,$fiat_iframe_deposit_url: String,$fiat_iframe_withdrawal_url: String,$fiat_transfer_type: String,$is_active: ToggleSwitch!,$extend_network_fee: ToggleSwitch,$network_fee_currency_id: String,$is_development: ToggleSwitch,$verification_type: VerificationType,$fiat_deposit_properties: [FiatDepositPropertyInput!]!,$deposit_enabled: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$is_crypto_to_fiat: ToggleSwitch,$meta: String) { - create_payment_route(currency_id:$currency_id,psp_service_id:$psp_service_id,name:$name,crypto_network:$crypto_network,crypto_address_generate_new:$crypto_address_generate_new,crypto_address_tag_type:$crypto_address_tag_type,fiat_iframe_deposit_url:$fiat_iframe_deposit_url,fiat_iframe_withdrawal_url:$fiat_iframe_withdrawal_url,fiat_transfer_type:$fiat_transfer_type,is_active:$is_active,extend_network_fee:$extend_network_fee,network_fee_currency_id:$network_fee_currency_id,is_development:$is_development,verification_type:$verification_type,fiat_deposit_properties:$fiat_deposit_properties,deposit_enabled:$deposit_enabled,withdrawal_enabled:$withdrawal_enabled,is_crypto_to_fiat:$is_crypto_to_fiat,meta:$meta) + mutation($currency_id: String!,$psp_service_id: String!,$name: String,$crypto_network: String,$crypto_address_generate_new: ToggleSwitch,$crypto_address_tag_type: CryptoAddressTagType,$fiat_iframe_deposit_url: String,$fiat_iframe_withdrawal_url: String,$fiat_transfer_type: String,$is_active: ToggleSwitch!,$extend_network_fee: ToggleSwitch,$network_fee_currency_id: String,$is_development: ToggleSwitch,$verification_type: VerificationType,$deposit_enabled: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$is_crypto_to_fiat: ToggleSwitch,$meta: String) { + create_payment_route(currency_id:$currency_id,psp_service_id:$psp_service_id,name:$name,crypto_network:$crypto_network,crypto_address_generate_new:$crypto_address_generate_new,crypto_address_tag_type:$crypto_address_tag_type,fiat_iframe_deposit_url:$fiat_iframe_deposit_url,fiat_iframe_withdrawal_url:$fiat_iframe_withdrawal_url,fiat_transfer_type:$fiat_transfer_type,is_active:$is_active,extend_network_fee:$extend_network_fee,network_fee_currency_id:$network_fee_currency_id,is_development:$is_development,verification_type:$verification_type,deposit_enabled:$deposit_enabled,withdrawal_enabled:$withdrawal_enabled,is_crypto_to_fiat:$is_crypto_to_fiat,meta:$meta) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_payment_route') + } + +async delete_payment_route({args, headers}:{args: DeletePaymentRouteArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($payment_route_id: String!) { + delete_payment_route(payment_route_id:$payment_route_id) + + } + `,args || {},headers,'delete_payment_route') + } + +async update_payment_route({args, headers}:{args: UpdatePaymentRouteArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($currency_id: String,$psp_service_id: String,$name: String,$crypto_network: String,$crypto_address_tag_type: CryptoAddressTagType,$fiat_iframe_deposit_url: String,$fiat_iframe_withdrawal_url: String,$fiat_transfer_type: String,$is_active: ToggleSwitch,$network_fee_currency_id: String,$is_crypto_to_fiat: ToggleSwitch,$meta: String,$payment_route_id: String,$serial_ids: Int!,$crypto_address_generate_new: ToggleSwitch,$verification_type: VerificationType,$extend_network_fee: ToggleSwitch,$is_development: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch) { + update_payment_route(currency_id:$currency_id,psp_service_id:$psp_service_id,name:$name,crypto_network:$crypto_network,crypto_address_tag_type:$crypto_address_tag_type,fiat_iframe_deposit_url:$fiat_iframe_deposit_url,fiat_iframe_withdrawal_url:$fiat_iframe_withdrawal_url,fiat_transfer_type:$fiat_transfer_type,is_active:$is_active,network_fee_currency_id:$network_fee_currency_id,is_crypto_to_fiat:$is_crypto_to_fiat,meta:$meta,payment_route_id:$payment_route_id,serial_ids:$serial_ids,crypto_address_generate_new:$crypto_address_generate_new,verification_type:$verification_type,extend_network_fee:$extend_network_fee,is_development:$is_development,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled) + + } + `,args || {},headers,'update_payment_route') + } + +async create_crypto_network({args, fields, headers}:{args: CreateCryptoNetworkArgs, fields:((keyof CryptoNetwork) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($crypto_network: String!,$crypto_network_name: String!) { + create_crypto_network(crypto_network:$crypto_network,crypto_network_name:$crypto_network_name) { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'create_payment_route') + `,args || {},headers,'create_crypto_network') } -async delete_payment_route({args, headers}:{args: DeletePaymentRouteArgs, headers?:HeadersInit}):Promise{ +async update_crypto_network({args, headers}:{args: UpdateCryptoNetworkArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($payment_route_id: String!) { - delete_payment_route(payment_route_id:$payment_route_id) + mutation($crypto_network_name: String,$crypto_network: String!) { + update_crypto_network(crypto_network_name:$crypto_network_name,crypto_network:$crypto_network) } - `,args || {},headers,'delete_payment_route') + `,args || {},headers,'update_crypto_network') } -async update_payment_route({args, headers}:{args: UpdatePaymentRouteArgs, headers?:HeadersInit}):Promise{ +async delete_crypto_network({args, headers}:{args: DeleteCryptoNetworkArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($currency_id: String,$psp_service_id: String,$name: String,$crypto_network: String,$crypto_address_tag_type: CryptoAddressTagType,$fiat_iframe_deposit_url: String,$fiat_iframe_withdrawal_url: String,$fiat_transfer_type: String,$is_active: ToggleSwitch,$network_fee_currency_id: String,$fiat_deposit_properties: [FiatDepositPropertyInput!]!,$is_crypto_to_fiat: ToggleSwitch,$meta: String,$payment_route_id: String,$serial_ids: [number!]!,$crypto_address_generate_new: ToggleSwitch,$verification_type: VerificationType,$extend_network_fee: ToggleSwitch,$is_development: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch) { - update_payment_route(currency_id:$currency_id,psp_service_id:$psp_service_id,name:$name,crypto_network:$crypto_network,crypto_address_tag_type:$crypto_address_tag_type,fiat_iframe_deposit_url:$fiat_iframe_deposit_url,fiat_iframe_withdrawal_url:$fiat_iframe_withdrawal_url,fiat_transfer_type:$fiat_transfer_type,is_active:$is_active,network_fee_currency_id:$network_fee_currency_id,fiat_deposit_properties:$fiat_deposit_properties,is_crypto_to_fiat:$is_crypto_to_fiat,meta:$meta,payment_route_id:$payment_route_id,serial_ids:$serial_ids,crypto_address_generate_new:$crypto_address_generate_new,verification_type:$verification_type,extend_network_fee:$extend_network_fee,is_development:$is_development,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled) + mutation($crypto_network: String!) { + delete_crypto_network(crypto_network:$crypto_network) } - `,args || {},headers,'update_payment_route') + `,args || {},headers,'delete_crypto_network') } async create_payment_limit({args, fields, headers}:{args: CreatePaymentLimitArgs, fields:((keyof PaymentLimit) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($limit_group_id: String!,$currency_id: String!,$deposit_enabled: ToggleSwitch!,$deposit_min_amount: Float!,$deposit_daily_limit: Float,$deposit_weekly_limit: Float,$deposit_monthly_limit: Float,$deposit_auto_approval_amount: Float!,$withdrawal_enabled: ToggleSwitch!,$withdrawal_min_amount: Float!,$withdrawal_daily_limit: Float,$withdrawal_weekly_limit: Float,$withdrawal_monthly_limit: Float,$withdrawal_auto_approval_amount: Float!,$auto_pending: ToggleSwitch!) { - create_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,deposit_enabled:$deposit_enabled,deposit_min_amount:$deposit_min_amount,deposit_daily_limit:$deposit_daily_limit,deposit_weekly_limit:$deposit_weekly_limit,deposit_monthly_limit:$deposit_monthly_limit,deposit_auto_approval_amount:$deposit_auto_approval_amount,withdrawal_enabled:$withdrawal_enabled,withdrawal_min_amount:$withdrawal_min_amount,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,withdrawal_auto_approval_amount:$withdrawal_auto_approval_amount,auto_pending:$auto_pending) + mutation($limit_group_id: String!,$currency_id: String!,$deposit_enabled: ToggleSwitch!,$deposit_min_amount: Float!,$deposit_daily_limit: Float!,$deposit_weekly_limit: Float!,$deposit_monthly_limit: Float!,$deposit_auto_approval_amount: Float!,$withdrawal_enabled: ToggleSwitch!,$withdrawal_min_amount: Float!,$withdrawal_daily_limit: Float!,$withdrawal_weekly_limit: Float!,$withdrawal_monthly_limit: Float!,$withdrawal_auto_approval_amount: Float!,$deposit_auto_reject: ToggleSwitch!,$withdrawal_auto_reject: ToggleSwitch!) { + create_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,deposit_enabled:$deposit_enabled,deposit_min_amount:$deposit_min_amount,deposit_daily_limit:$deposit_daily_limit,deposit_weekly_limit:$deposit_weekly_limit,deposit_monthly_limit:$deposit_monthly_limit,deposit_auto_approval_amount:$deposit_auto_approval_amount,withdrawal_enabled:$withdrawal_enabled,withdrawal_min_amount:$withdrawal_min_amount,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,withdrawal_auto_approval_amount:$withdrawal_auto_approval_amount,deposit_auto_reject:$deposit_auto_reject,withdrawal_auto_reject:$withdrawal_auto_reject) { ${buildGraphQLQuery(fields)} } @@ -6159,8 +7056,8 @@ async create_payment_limit({args, fields, headers}:{args: CreatePaymentLimitArg async update_payment_limit({args, headers}:{args: UpdatePaymentLimitArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($limit_group_id: String,$currency_id: String,$deposit_enabled: ToggleSwitch,$deposit_min_amount: Float,$deposit_auto_approval_amount: Float,$withdrawal_enabled: ToggleSwitch,$withdrawal_min_amount: Float,$withdrawal_auto_approval_amount: Float,$notion_currency: String,$deposit_daily_limit: Float,$deposit_weekly_limit: Float,$deposit_monthly_limit: Float,$withdrawal_daily_limit: Float,$withdrawal_weekly_limit: Float,$withdrawal_monthly_limit: Float,$serial_ids: [number!]!,$auto_pending: ToggleSwitch) { - update_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,deposit_enabled:$deposit_enabled,deposit_min_amount:$deposit_min_amount,deposit_auto_approval_amount:$deposit_auto_approval_amount,withdrawal_enabled:$withdrawal_enabled,withdrawal_min_amount:$withdrawal_min_amount,withdrawal_auto_approval_amount:$withdrawal_auto_approval_amount,notion_currency:$notion_currency,deposit_daily_limit:$deposit_daily_limit,deposit_weekly_limit:$deposit_weekly_limit,deposit_monthly_limit:$deposit_monthly_limit,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,serial_ids:$serial_ids,auto_pending:$auto_pending) + mutation($limit_group_id: String,$currency_id: String,$deposit_enabled: ToggleSwitch,$deposit_min_amount: Float,$deposit_auto_approval_amount: Float,$withdrawal_enabled: ToggleSwitch,$withdrawal_min_amount: Float,$withdrawal_auto_approval_amount: Float,$notion_currency: String,$deposit_daily_limit: Float,$deposit_weekly_limit: Float,$deposit_monthly_limit: Float,$withdrawal_daily_limit: Float,$withdrawal_weekly_limit: Float,$withdrawal_monthly_limit: Float,$serial_ids: Int!,$deposit_auto_reject: ToggleSwitch,$withdrawal_auto_reject: ToggleSwitch) { + update_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,deposit_enabled:$deposit_enabled,deposit_min_amount:$deposit_min_amount,deposit_auto_approval_amount:$deposit_auto_approval_amount,withdrawal_enabled:$withdrawal_enabled,withdrawal_min_amount:$withdrawal_min_amount,withdrawal_auto_approval_amount:$withdrawal_auto_approval_amount,notion_currency:$notion_currency,deposit_daily_limit:$deposit_daily_limit,deposit_weekly_limit:$deposit_weekly_limit,deposit_monthly_limit:$deposit_monthly_limit,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,serial_ids:$serial_ids,deposit_auto_reject:$deposit_auto_reject,withdrawal_auto_reject:$withdrawal_auto_reject) } `,args || {},headers,'update_payment_limit') @@ -6169,7 +7066,7 @@ async update_payment_limit({args, headers}:{args: UpdatePaymentLimitArgs, head async delete_payment_limit({args, headers}:{args: DeletePaymentLimitArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Float,$serial_ids: [number!]!) { + mutation($serial_id: Float,$serial_ids: Int!) { delete_payment_limit(serial_id:$serial_id,serial_ids:$serial_ids) } @@ -6179,7 +7076,7 @@ async delete_payment_limit({args, headers}:{args: DeletePaymentLimitArgs, head async create_api_key({args, fields, headers}:{args: CreateApiKeyArgs, fields:((keyof CreateApiKeyResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$expires_at: String!,$is_active: ToggleSwitch!,$type: ApiKeyTypes!,$user_id: String,$ip_address: [string!]!,$permissions: [Permission!]!,$hmac_required: ToggleSwitch) { + mutation($name: String,$expires_at: String!,$is_active: ToggleSwitch!,$type: ApiKeyTypes!,$user_id: String,$ip_address: String!,$permissions: Permission!,$hmac_required: ToggleSwitch) { create_api_key(name:$name,expires_at:$expires_at,is_active:$is_active,type:$type,user_id:$user_id,ip_address:$ip_address,permissions:$permissions,hmac_required:$hmac_required) { ${buildGraphQLQuery(fields)} @@ -6191,7 +7088,7 @@ async create_api_key({args, fields, headers}:{args: CreateApiKeyArgs, fields:(( async update_api_key({args, headers}:{args: UpdateApiKeyArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$expires_at: String,$is_active: ToggleSwitch,$user_id: String,$api_key_id: String!,$ip_address: [string!]!,$permissions: [Permission!]!,$hmac_required: ToggleSwitch) { + mutation($name: String,$expires_at: String,$is_active: ToggleSwitch,$user_id: String,$api_key_id: String!,$ip_address: String!,$permissions: Permission!,$hmac_required: ToggleSwitch) { update_api_key(name:$name,expires_at:$expires_at,is_active:$is_active,user_id:$user_id,api_key_id:$api_key_id,ip_address:$ip_address,permissions:$permissions,hmac_required:$hmac_required) } @@ -6201,8 +7098,8 @@ async update_api_key({args, headers}:{args: UpdateApiKeyArgs, headers?:Headers async delete_api_key({args, headers}:{args: DeleteApiKeyArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($api_key_id: String!,$user_id: String) { - delete_api_key(api_key_id:$api_key_id,user_id:$user_id) + mutation($api_key_id: String!) { + delete_api_key(api_key_id:$api_key_id) } `,args || {},headers,'delete_api_key') @@ -6243,7 +7140,7 @@ async update_cognito_pool({args, headers}:{args: UpdateCognitoPoolArgs, header async delete_cognito_pool({args, headers}:{args: DeleteCognitoPoolArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($cognito_pool_id: String,$multiple_pool_ids: [string!]!) { + mutation($cognito_pool_id: String,$multiple_pool_ids: String!) { delete_cognito_pool(cognito_pool_id:$cognito_pool_id,multiple_pool_ids:$multiple_pool_ids) } @@ -6253,7 +7150,7 @@ async delete_cognito_pool({args, headers}:{args: DeleteCognitoPoolArgs, header async create_instrument_strategy({args, fields, headers}:{args: CreateInstrumentStrategyArgs, fields:((keyof InstrumentStrategy) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($hedging_adapter_id: String!,$instrument_id: String!,$remote_instrument_id: String,$loop_interval: Int!,$active_layers_count: Int!,$layer_discount_factor: Float!,$markup_ask: Float!,$markup_bid: Float!,$order_min_quantity: Float!,$order_max_quantity: Float!,$hedge_quantity_trigger_buy: Float!,$hedge_quantity_trigger_sell: Float!,$hedge_quantity_increment: Float!,$conversions_balance: Int,$hedging_enabled: ToggleSwitch,$hedging_order_type: OrderType,$hedging_order_time_in_force: OrderTimeInForce,$hedging_order_price: InstrumentStrategyHedgingOrderPrice,$hedging_order_ttl_ms: Int,$hedging_error_attempts_threshold: Int,$hedging_error_attempts_count: Int,$disable_hedging_on_error_attempts_threshold_exceeded: ToggleSwitch,$disable_strategy_on_error_attempts_threshold_exceeded: ToggleSwitch,$instruments_settings_sync_enabled: ToggleSwitch,$strategy_settings_sync_enabled: ToggleSwitch,$meta: String,$is_active: ToggleSwitch!,$version: Int,$min_spread: Float,$on_min_spread_violation: OnMinSpreadViolation,$maximum_publish_quantity: Float,$allow_negative_markup: ToggleSwitch) { + mutation($hedging_adapter_id: String!,$instrument_id: String!,$remote_instrument_id: String,$loop_interval: Int!,$active_layers_count: Int!,$layer_discount_factor: Float!,$markup_ask: Float!,$markup_bid: Float!,$order_min_quantity: Float!,$order_max_quantity: Float!,$hedge_quantity_trigger_buy: Float!,$hedge_quantity_trigger_sell: Float!,$hedge_quantity_increment: Float!,$conversions_balance: Int,$hedging_enabled: ToggleSwitch,$hedging_order_type: OrderType,$hedging_order_time_in_force: OrderTimeInForce,$hedging_order_price: InstrumentStrategyHedgingOrderPrice,$hedging_order_ttl_ms: Int,$hedging_error_attempts_threshold: Int,$hedging_error_attempts_count: Int,$disable_hedging_on_error_attempts_threshold_exceeded: ToggleSwitch,$disable_strategy_on_error_attempts_threshold_exceeded: ToggleSwitch,$instruments_settings_sync_enabled: ToggleSwitch,$strategy_settings_sync_enabled: ToggleSwitch,$meta: String,$is_active: ToggleSwitch!,$version: Int,$min_spread: Float,$on_min_spread_violation: OnMinSpreadViolation,$maximum_publish_quantity: Float!,$allow_negative_markup: ToggleSwitch) { create_instrument_strategy(hedging_adapter_id:$hedging_adapter_id,instrument_id:$instrument_id,remote_instrument_id:$remote_instrument_id,loop_interval:$loop_interval,active_layers_count:$active_layers_count,layer_discount_factor:$layer_discount_factor,markup_ask:$markup_ask,markup_bid:$markup_bid,order_min_quantity:$order_min_quantity,order_max_quantity:$order_max_quantity,hedge_quantity_trigger_buy:$hedge_quantity_trigger_buy,hedge_quantity_trigger_sell:$hedge_quantity_trigger_sell,hedge_quantity_increment:$hedge_quantity_increment,conversions_balance:$conversions_balance,hedging_enabled:$hedging_enabled,hedging_order_type:$hedging_order_type,hedging_order_time_in_force:$hedging_order_time_in_force,hedging_order_price:$hedging_order_price,hedging_order_ttl_ms:$hedging_order_ttl_ms,hedging_error_attempts_threshold:$hedging_error_attempts_threshold,hedging_error_attempts_count:$hedging_error_attempts_count,disable_hedging_on_error_attempts_threshold_exceeded:$disable_hedging_on_error_attempts_threshold_exceeded,disable_strategy_on_error_attempts_threshold_exceeded:$disable_strategy_on_error_attempts_threshold_exceeded,instruments_settings_sync_enabled:$instruments_settings_sync_enabled,strategy_settings_sync_enabled:$strategy_settings_sync_enabled,meta:$meta,is_active:$is_active,version:$version,min_spread:$min_spread,on_min_spread_violation:$on_min_spread_violation,maximum_publish_quantity:$maximum_publish_quantity,allow_negative_markup:$allow_negative_markup) { ${buildGraphQLQuery(fields)} @@ -6265,7 +7162,7 @@ async create_instrument_strategy({args, fields, headers}:{args: CreateInstrumen async update_instrument_strategy({args, headers}:{args: UpdateInstrumentStrategyArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($hedging_adapter_id: String,$instrument_id: String,$remote_instrument_id: String,$loop_interval: Int,$active_layers_count: Int,$layer_discount_factor: Float,$markup_ask: Float,$markup_bid: Float,$order_min_quantity: Float,$order_max_quantity: Float,$hedge_quantity_trigger_buy: Float,$hedge_quantity_trigger_sell: Float,$hedge_quantity_increment: Float,$hedging_order_ttl_ms: Int,$meta: String,$is_active: ToggleSwitch,$version: Int,$min_spread: Float,$on_min_spread_violation: OnMinSpreadViolation,$allow_negative_markup: ToggleSwitch,$hedging_enabled: ToggleSwitch,$hedging_order_price: InstrumentStrategyHedgingOrderPrice,$hedging_order_type: OrderType,$instruments_settings_sync_enabled: ToggleSwitch,$strategy_settings_sync_enabled: ToggleSwitch,$disable_hedging_on_error_attempts_threshold_exceeded: ToggleSwitch,$disable_strategy_on_error_attempts_threshold_exceeded: ToggleSwitch,$hedging_error_attempts_threshold: Int,$hedging_order_time_in_force: OrderTimeInForce,$hedging_error_attempts_count: Int,$maximum_publish_quantity: Float,$instrument_strategy_id: String,$serial_ids: [number!]!) { + mutation($hedging_adapter_id: String,$instrument_id: String,$remote_instrument_id: String,$loop_interval: Int,$active_layers_count: Int,$layer_discount_factor: Float,$markup_ask: Float,$markup_bid: Float,$order_min_quantity: Float,$order_max_quantity: Float,$hedge_quantity_trigger_buy: Float,$hedge_quantity_trigger_sell: Float,$hedge_quantity_increment: Float,$hedging_order_ttl_ms: Int,$meta: String,$is_active: ToggleSwitch,$version: Int,$min_spread: Float,$on_min_spread_violation: OnMinSpreadViolation,$allow_negative_markup: ToggleSwitch,$hedging_enabled: ToggleSwitch,$hedging_order_price: InstrumentStrategyHedgingOrderPrice,$hedging_order_type: OrderType,$instruments_settings_sync_enabled: ToggleSwitch,$strategy_settings_sync_enabled: ToggleSwitch,$disable_hedging_on_error_attempts_threshold_exceeded: ToggleSwitch,$disable_strategy_on_error_attempts_threshold_exceeded: ToggleSwitch,$hedging_error_attempts_threshold: Int,$hedging_order_time_in_force: OrderTimeInForce,$hedging_error_attempts_count: Int,$maximum_publish_quantity: Float,$instrument_strategy_id: String,$serial_ids: Int!) { update_instrument_strategy(hedging_adapter_id:$hedging_adapter_id,instrument_id:$instrument_id,remote_instrument_id:$remote_instrument_id,loop_interval:$loop_interval,active_layers_count:$active_layers_count,layer_discount_factor:$layer_discount_factor,markup_ask:$markup_ask,markup_bid:$markup_bid,order_min_quantity:$order_min_quantity,order_max_quantity:$order_max_quantity,hedge_quantity_trigger_buy:$hedge_quantity_trigger_buy,hedge_quantity_trigger_sell:$hedge_quantity_trigger_sell,hedge_quantity_increment:$hedge_quantity_increment,hedging_order_ttl_ms:$hedging_order_ttl_ms,meta:$meta,is_active:$is_active,version:$version,min_spread:$min_spread,on_min_spread_violation:$on_min_spread_violation,allow_negative_markup:$allow_negative_markup,hedging_enabled:$hedging_enabled,hedging_order_price:$hedging_order_price,hedging_order_type:$hedging_order_type,instruments_settings_sync_enabled:$instruments_settings_sync_enabled,strategy_settings_sync_enabled:$strategy_settings_sync_enabled,disable_hedging_on_error_attempts_threshold_exceeded:$disable_hedging_on_error_attempts_threshold_exceeded,disable_strategy_on_error_attempts_threshold_exceeded:$disable_strategy_on_error_attempts_threshold_exceeded,hedging_error_attempts_threshold:$hedging_error_attempts_threshold,hedging_order_time_in_force:$hedging_order_time_in_force,hedging_error_attempts_count:$hedging_error_attempts_count,maximum_publish_quantity:$maximum_publish_quantity,instrument_strategy_id:$instrument_strategy_id,serial_ids:$serial_ids) } @@ -6295,7 +7192,7 @@ async operate_instrument_strategy_hedge_balance({args, headers}:{args: OperateI async delete_instrument_strategy({args, headers}:{args: DeleteInstrumentStrategyArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Float,$serial_ids: [number!]!) { + mutation($serial_id: Float,$serial_ids: Int!) { delete_instrument_strategy(serial_id:$serial_id,serial_ids:$serial_ids) } @@ -6335,21 +7232,21 @@ async trigger_reject_hedging_remote_order_job({args, headers}:{args: TriggerRej async update_system_setting({args, headers}:{args: UpdateSystemSettingArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String!,$value: String) { - update_system_setting(name:$name,value:$value) + mutation($name: String!,$value: String,$sensitive: ToggleSwitch) { + update_system_setting(name:$name,value:$value,sensitive:$sensitive) } `,args || {},headers,'update_system_setting') } -async update_system_settings({args, headers}:{args: UpdateSystemSettingsArgs, headers?:HeadersInit}):Promise{ +async update_system_settings({ headers}:{ headers?:HeadersInit}={}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($items: [SettingItem!]!) { - update_system_settings(items:$items) + mutation { + update_system_settings } - `,args || {},headers,'update_system_settings') + `,{},headers,'update_system_settings') } async update_maintenance_mode({args, headers}:{args: UpdateMaintenanceModeArgs, headers?:HeadersInit}):Promise{ @@ -6362,10 +7259,20 @@ async update_maintenance_mode({args, headers}:{args: UpdateMaintenanceModeArgs, `,args || {},headers,'update_maintenance_mode') } +async update_withdrawals_freeze({args, headers}:{args: UpdateWithdrawalsFreezeArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($enabled: ToggleSwitch!,$reason: String,$expires_at: String) { + update_withdrawals_freeze(enabled:$enabled,reason:$reason,expires_at:$expires_at) + + } + `,args || {},headers,'update_withdrawals_freeze') + } + async update_notifications_settings({args, fields, headers}:{args: UpdateNotificationsSettingsArgs, fields:((keyof NotificationOptions) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($client: [NotificationTrigger!]!,$push: [NotificationTrigger!]!,$email: [NotificationTrigger!]!,$sms: [NotificationTrigger!]!) { + mutation($client: NotificationTrigger!,$push: NotificationTrigger!,$email: NotificationTrigger!,$sms: NotificationTrigger!) { update_notifications_settings(client:$client,push:$push,email:$email,sms:$sms) { ${buildGraphQLQuery(fields)} @@ -6387,23 +7294,33 @@ async update_default_notifications({args, headers}:{args: UpdateDefaultNotifica async update_delayed_mutations({args, headers}:{args: UpdateDelayedMutationsArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($mutations: [string!]!) { + mutation($mutations: String!) { update_delayed_mutations(mutations:$mutations) } `,args || {},headers,'update_delayed_mutations') } -async update_geo_restrictions({args, fields, headers}:{args?: UpdateGeoRestrictionsArgs, fields:((keyof GeoRestrictions) | Partial>)[], headers?:HeadersInit}):Promise{ +async update_geo_restrictions({ fields, headers}:{ fields:((keyof GeoRestrictions) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($region_blacklist: [RegionBlacklistItemInput!],$country_blacklist: [BlacklistItemInput!]) { - update_geo_restrictions(region_blacklist:$region_blacklist,country_blacklist:$country_blacklist) + mutation { + update_geo_restrictions { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'update_geo_restrictions') + `,{},headers,'update_geo_restrictions') + } + +async travel_rule_country_list({args, headers}:{args: TravelRuleCountryListArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($country_list: String!) { + travel_rule_country_list(country_list:$country_list) + + } + `,args || {},headers,'travel_rule_country_list') } async update_elliptic_filters({args, headers}:{args?: UpdateEllipticFiltersArgs, headers?:HeadersInit}):Promise{ @@ -6419,7 +7336,7 @@ async update_elliptic_filters({args, headers}:{args?: UpdateEllipticFiltersArgs async update_admin_permissions({args, headers}:{args: UpdateAdminPermissionsArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($users_ids: [string!]!,$subjects: [string!]!) { + mutation($users_ids: String!,$subjects: String!) { update_admin_permissions(users_ids:$users_ids,subjects:$subjects) } @@ -6429,39 +7346,39 @@ async update_admin_permissions({args, headers}:{args: UpdateAdminPermissionsArg async create_kyc_manual_request({args, headers}:{args: CreateKycManualRequestArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String!,$kyc_data: [KycUserDataEntryInput!]!) { - create_kyc_manual_request(user_id:$user_id,kyc_data:$kyc_data) + mutation($user_id: String!) { + create_kyc_manual_request(user_id:$user_id) } `,args || {},headers,'create_kyc_manual_request') } -async create_kyc_session({args, headers}:{args?: CreateKycSessionArgs, headers?:HeadersInit}):Promise{ +async create_kyc_session({args, headers}:{args: CreateKycSessionArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($kyc_type: KycType,$user_id: String) { + mutation($kyc_type: KycType!,$user_id: String) { create_kyc_session(kyc_type:$kyc_type,user_id:$user_id) } `,args || {},headers,'create_kyc_session') } -async update_kyc_preferences({args, fields, headers}:{args?: UpdateKycPreferencesArgs, fields:((keyof KycPreferences) | Partial>)[], headers?:HeadersInit}):Promise{ +async update_kyc_preferences({ fields, headers}:{ fields:((keyof KycPreferences) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($individual: KycPreferenceInput,$corporate: KycPreferenceInput) { - update_kyc_preferences(individual:$individual,corporate:$corporate) + mutation { + update_kyc_preferences { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'update_kyc_preferences') + `,{},headers,'update_kyc_preferences') } async create_webhook({args, fields, headers}:{args: CreateWebhookArgs, fields:((keyof Webhook) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String!,$is_active: ToggleSwitch!,$user_id: String,$url: String!,$triggers: [NotificationTrigger!]!) { + mutation($name: String!,$is_active: ToggleSwitch!,$user_id: String,$url: String!,$triggers: NotificationTrigger!) { create_webhook(name:$name,is_active:$is_active,user_id:$user_id,url:$url,triggers:$triggers) { ${buildGraphQLQuery(fields)} @@ -6473,7 +7390,7 @@ async create_webhook({args, fields, headers}:{args: CreateWebhookArgs, fields:( async update_webhook({args, headers}:{args: UpdateWebhookArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String,$is_active: ToggleSwitch,$webhook_id: String!,$url: String,$triggers: [NotificationTrigger!]!) { + mutation($name: String,$is_active: ToggleSwitch,$webhook_id: String!,$url: String,$triggers: NotificationTrigger!) { update_webhook(name:$name,is_active:$is_active,webhook_id:$webhook_id,url:$url,triggers:$triggers) } @@ -6503,7 +7420,7 @@ async emit_event({args, headers}:{args: EmitEventArgs, headers?:HeadersInit}): async create_hedging_adapter({args, fields, headers}:{args: CreateHedgingAdapterArgs, fields:((keyof HedgingAdapter) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($hedging_adapter_id: String!,$service_url: String!,$service_api_key: String!,$broker_user_id: String!,$hedging_enabled: ToggleSwitch!,$account_balances_sync_enabled: ToggleSwitch!,$meta: String,$maker_fee: Float,$taker_fee: Float,$fees_sync_enabled: ToggleSwitch,$create_broker_user_id: Boolean) { + mutation($hedging_adapter_id: String!,$service_url: String!,$service_api_key: String!,$broker_user_id: String!,$hedging_enabled: ToggleSwitch!,$account_balances_sync_enabled: ToggleSwitch!,$meta: String,$maker_fee: Float,$taker_fee: Float,$fees_sync_enabled: ToggleSwitch!,$create_broker_user_id: Boolean) { create_hedging_adapter(hedging_adapter_id:$hedging_adapter_id,service_url:$service_url,service_api_key:$service_api_key,broker_user_id:$broker_user_id,hedging_enabled:$hedging_enabled,account_balances_sync_enabled:$account_balances_sync_enabled,meta:$meta,maker_fee:$maker_fee,taker_fee:$taker_fee,fees_sync_enabled:$fees_sync_enabled,create_broker_user_id:$create_broker_user_id) { ${buildGraphQLQuery(fields)} @@ -6535,7 +7452,7 @@ async delete_hedging_adapter({args, headers}:{args: DeleteHedgingAdapterArgs, async create_trading_limit({args, fields, headers}:{args: CreateTradingLimitArgs, fields:((keyof TradingLimit) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($limit_group_id: String!,$instrument_id: String!,$daily_limit: Float,$weekly_limit: Float,$monthly_limit: Float,$notion_currency: String) { + mutation($limit_group_id: String!,$instrument_id: String!,$daily_limit: Float!,$weekly_limit: Float!,$monthly_limit: Float!,$notion_currency: String) { create_trading_limit(limit_group_id:$limit_group_id,instrument_id:$instrument_id,daily_limit:$daily_limit,weekly_limit:$weekly_limit,monthly_limit:$monthly_limit,notion_currency:$notion_currency) { ${buildGraphQLQuery(fields)} @@ -6653,8 +7570,8 @@ async verify_admin_mfa_token({args, headers}:{args: VerifyAdminMfaTokenArgs, h async send_test_email({args, headers}:{args: SendTestEmailArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($trigger: NotificationTrigger!,$to: String!,$language: String) { - send_test_email(trigger:$trigger,to:$to,language:$language) + mutation($trigger: NotificationTrigger!,$to: String!,$language: String,$mfa_status: ToggleSwitch) { + send_test_email(trigger:$trigger,to:$to,language:$language,mfa_status:$mfa_status) } `,args || {},headers,'send_test_email') @@ -6670,11 +7587,21 @@ async send_test_push({args, headers}:{args: SendTestPushArgs, headers?:Headers `,args || {},headers,'send_test_push') } +async send_forgot_password_email({args, headers}:{args: SendForgotPasswordEmailArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($email: String!) { + send_forgot_password_email(email:$email) + + } + `,args || {},headers,'send_forgot_password_email') + } + async create_kyc_user_data({args, fields, headers}:{args: CreateKycUserDataArgs, fields:((keyof KycUserData) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String!,$kyc_data: [KycUserDataEntryInput!]!) { - create_kyc_user_data(user_id:$user_id,kyc_data:$kyc_data) + mutation($user_id: String!) { + create_kyc_user_data(user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -6685,8 +7612,8 @@ async create_kyc_user_data({args, fields, headers}:{args: CreateKycUserDataArgs async update_kyc_user_data({args, fields, headers}:{args: UpdateKycUserDataArgs, fields:((keyof KycUserData) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String!,$kyc_data: [KycUserDataEntryInput!]!) { - update_kyc_user_data(user_id:$user_id,kyc_data:$kyc_data) + mutation($user_id: String!) { + update_kyc_user_data(user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -6707,7 +7634,7 @@ async delete_kyc_user_data({args, headers}:{args: DeleteKycUserDataArgs, heade async create_permission_preset({args, fields, headers}:{args: CreatePermissionPresetArgs, fields:((keyof PermissionPreset) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String!,$subjects: [string!]!,$updated_name: String) { + mutation($name: String!,$subjects: String!,$updated_name: String) { create_permission_preset(name:$name,subjects:$subjects,updated_name:$updated_name) { ${buildGraphQLQuery(fields)} @@ -6719,7 +7646,7 @@ async create_permission_preset({args, fields, headers}:{args: CreatePermissionP async update_permission_preset({args, fields, headers}:{args: UpdatePermissionPresetArgs, fields:((keyof PermissionPreset) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String!,$subjects: [string!]!,$updated_name: String) { + mutation($name: String!,$subjects: String!,$updated_name: String) { update_permission_preset(name:$name,subjects:$subjects,updated_name:$updated_name) { ${buildGraphQLQuery(fields)} @@ -6817,7 +7744,7 @@ async set_currency_price({args, fields, headers}:{args: SetCurrencyPriceArgs, f async create_ip_whitelist_items({args, fields, headers}:{args: CreateIpWhitelistItemsArgs, fields:((keyof IpWhitelistItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($emails: [string!]!,$ip_address: String,$note: String) { + mutation($emails: String!,$ip_address: String,$note: String) { create_ip_whitelist_items(emails:$emails,ip_address:$ip_address,note:$note) { ${buildGraphQLQuery(fields)} @@ -6856,38 +7783,16 @@ async update_hedging_account({args, headers}:{args: UpdateHedgingAccountArgs, `,args || {},headers,'update_hedging_account') } -async send_margin_trade_notif({args, headers}:{args: SendMarginTradeNotifArgs, headers?:HeadersInit}):Promise{ - if(!headers) headers = {}; - return this.gql_request(gql` - mutation($user_id: String!,$trigger: NotificationTrigger!,$payload: String!) { - send_margin_trade_notif(user_id:$user_id,trigger:$trigger,payload:$payload) - - } - `,args || {},headers,'send_margin_trade_notif') - } - -async create_margin_account_transaction({args, fields, headers}:{args: CreateMarginAccountTransactionArgs, fields:((keyof AccountTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ - if(!headers) headers = {}; - return this.gql_request(gql` - mutation($item: RecordTransactionItem!) { - create_margin_account_transaction(item:$item) - { - ${buildGraphQLQuery(fields)} - } - } - `,args || {},headers,'create_margin_account_transaction') - } - -async update_admin_properties({args, fields, headers}:{args: UpdateAdminPropertiesArgs, fields:((keyof AdminProperty) | Partial>)[], headers?:HeadersInit}):Promise{ +async update_admin_properties({ fields, headers}:{ fields:((keyof AdminProperty) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($properties: [UpdateAdminPropertyInput!]!) { - update_admin_properties(properties:$properties) + mutation { + update_admin_properties { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'update_admin_properties') + `,{},headers,'update_admin_properties') } async create_upload({args, fields, headers}:{args: CreateUploadArgs, fields:((keyof NewUploadResult) | Partial>)[], headers?:HeadersInit}):Promise{ @@ -6954,10 +7859,20 @@ async reprocess_kyt_payment({args, headers}:{args: ReprocessKytPaymentArgs, he `,args || {},headers,'reprocess_kyt_payment') } +async get_payment_kyt_url({args, headers}:{args?: GetPaymentKytUrlArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($provider: KytProvider,$report_id: String) { + get_payment_kyt_url(provider:$provider,report_id:$report_id) + + } + `,args || {},headers,'get_payment_kyt_url') + } + async create_instrument_strategy_rule({args, fields, headers}:{args: CreateInstrumentStrategyRuleArgs, fields:((keyof InstrumentStrategyRule) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($instrument_strategy_id: String!,$is_active: ToggleSwitch!,$min_total_volume: Float!,$min_ask_volume: Float!,$min_bid_volume: Float!,$max_spread: Float!,$max_update_interval: Int,$max_violations_before_measures: Int,$disable_strategy_if_violated: ToggleSwitch,$disable_hedging_if_violated: ToggleSwitch) { + mutation($instrument_strategy_id: String!,$is_active: ToggleSwitch!,$min_total_volume: Float!,$min_ask_volume: Float!,$min_bid_volume: Float!,$max_spread: Float!,$max_update_interval: Int!,$max_violations_before_measures: Int!,$disable_strategy_if_violated: ToggleSwitch!,$disable_hedging_if_violated: ToggleSwitch!) { create_instrument_strategy_rule(instrument_strategy_id:$instrument_strategy_id,is_active:$is_active,min_total_volume:$min_total_volume,min_ask_volume:$min_ask_volume,min_bid_volume:$min_bid_volume,max_spread:$max_spread,max_update_interval:$max_update_interval,max_violations_before_measures:$max_violations_before_measures,disable_strategy_if_violated:$disable_strategy_if_violated,disable_hedging_if_violated:$disable_hedging_if_violated) { ${buildGraphQLQuery(fields)} @@ -6991,7 +7906,7 @@ async delete_instrument_strategy_rule({args, headers}:{args: DeleteInstrumentSt async update_instruments_strategies_alerts_settings({args, headers}:{args: UpdateInstrumentsStrategiesAlertsSettingsArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($email_active: ToggleSwitch!,$slack_active: ToggleSwitch!,$emails: [string!]!,$slack_webhooks: [string!]!) { + mutation($email_active: ToggleSwitch!,$slack_active: ToggleSwitch!,$emails: String!,$slack_webhooks: String!) { update_instruments_strategies_alerts_settings(email_active:$email_active,slack_active:$slack_active,emails:$emails,slack_webhooks:$slack_webhooks) } @@ -7001,8 +7916,8 @@ async update_instruments_strategies_alerts_settings({args, headers}:{args: Upda async create_vault({args, fields, headers}:{args: CreateVaultArgs, fields:((keyof Vault) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($currency_id: String!,$name: String,$annual_rate_percent: Float!,$max_withdrawal_amount: Float!,$max_deposit_amount: Float!,$min_withdrawal_amount: Float!,$min_deposit_amount: Float!,$cut_off_time_seconds: Int!,$lock_in_period_seconds: Int,$effective_date_from: String!,$effective_date_to: String,$rate_type: VaultRateType!,$is_active: ToggleSwitch!,$withdrawal_enabled: ToggleSwitch!,$deposit_enabled: ToggleSwitch!,$withdrawal_policy: VaultWithdrawalPolicy,$withdrawal_delay_seconds: Int,$meta: String) { - create_vault(currency_id:$currency_id,name:$name,annual_rate_percent:$annual_rate_percent,max_withdrawal_amount:$max_withdrawal_amount,max_deposit_amount:$max_deposit_amount,min_withdrawal_amount:$min_withdrawal_amount,min_deposit_amount:$min_deposit_amount,cut_off_time_seconds:$cut_off_time_seconds,lock_in_period_seconds:$lock_in_period_seconds,effective_date_from:$effective_date_from,effective_date_to:$effective_date_to,rate_type:$rate_type,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,withdrawal_policy:$withdrawal_policy,withdrawal_delay_seconds:$withdrawal_delay_seconds,meta:$meta) + mutation($currency_id: String!,$name: String,$annual_rate_percent: Float!,$max_withdrawal_amount: Float!,$max_deposit_amount: Float!,$min_withdrawal_amount: Float!,$min_deposit_amount: Float!,$cut_off_time_seconds: Int!,$lock_in_period_seconds: Int,$lock_strategy: VaultLockStrategy!,$effective_date_from: String!,$effective_date_to: String,$rate_type: VaultRateType!,$is_active: ToggleSwitch!,$withdrawal_enabled: ToggleSwitch!,$deposit_enabled: ToggleSwitch!,$withdrawal_policy: VaultWithdrawalPolicy!,$withdrawal_delay_seconds: Int,$meta: String) { + create_vault(currency_id:$currency_id,name:$name,annual_rate_percent:$annual_rate_percent,max_withdrawal_amount:$max_withdrawal_amount,max_deposit_amount:$max_deposit_amount,min_withdrawal_amount:$min_withdrawal_amount,min_deposit_amount:$min_deposit_amount,cut_off_time_seconds:$cut_off_time_seconds,lock_in_period_seconds:$lock_in_period_seconds,lock_strategy:$lock_strategy,effective_date_from:$effective_date_from,effective_date_to:$effective_date_to,rate_type:$rate_type,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,withdrawal_policy:$withdrawal_policy,withdrawal_delay_seconds:$withdrawal_delay_seconds,meta:$meta) { ${buildGraphQLQuery(fields)} } @@ -7013,8 +7928,8 @@ async create_vault({args, fields, headers}:{args: CreateVaultArgs, fields:((key async update_vault({args, fields, headers}:{args: UpdateVaultArgs, fields:((keyof Vault) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($currency_id: String,$name: String,$annual_rate_percent: Float,$max_withdrawal_amount: Float,$max_deposit_amount: Float,$min_withdrawal_amount: Float,$min_deposit_amount: Float,$cut_off_time_seconds: Int,$lock_in_period_seconds: Int,$effective_date_from: String,$effective_date_to: String,$rate_type: VaultRateType,$is_active: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch,$withdrawal_policy: VaultWithdrawalPolicy,$withdrawal_delay_seconds: Int,$meta: String,$vault_id: String!) { - update_vault(currency_id:$currency_id,name:$name,annual_rate_percent:$annual_rate_percent,max_withdrawal_amount:$max_withdrawal_amount,max_deposit_amount:$max_deposit_amount,min_withdrawal_amount:$min_withdrawal_amount,min_deposit_amount:$min_deposit_amount,cut_off_time_seconds:$cut_off_time_seconds,lock_in_period_seconds:$lock_in_period_seconds,effective_date_from:$effective_date_from,effective_date_to:$effective_date_to,rate_type:$rate_type,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,withdrawal_policy:$withdrawal_policy,withdrawal_delay_seconds:$withdrawal_delay_seconds,meta:$meta,vault_id:$vault_id) + mutation($currency_id: String,$name: String,$annual_rate_percent: Float,$max_withdrawal_amount: Float,$max_deposit_amount: Float,$min_withdrawal_amount: Float,$min_deposit_amount: Float,$cut_off_time_seconds: Int,$lock_in_period_seconds: Int,$lock_strategy: VaultLockStrategy,$effective_date_from: String,$effective_date_to: String,$rate_type: VaultRateType,$is_active: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch,$withdrawal_policy: VaultWithdrawalPolicy,$withdrawal_delay_seconds: Int,$meta: String,$vault_id: String!) { + update_vault(currency_id:$currency_id,name:$name,annual_rate_percent:$annual_rate_percent,max_withdrawal_amount:$max_withdrawal_amount,max_deposit_amount:$max_deposit_amount,min_withdrawal_amount:$min_withdrawal_amount,min_deposit_amount:$min_deposit_amount,cut_off_time_seconds:$cut_off_time_seconds,lock_in_period_seconds:$lock_in_period_seconds,lock_strategy:$lock_strategy,effective_date_from:$effective_date_from,effective_date_to:$effective_date_to,rate_type:$rate_type,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,withdrawal_policy:$withdrawal_policy,withdrawal_delay_seconds:$withdrawal_delay_seconds,meta:$meta,vault_id:$vault_id) { ${buildGraphQLQuery(fields)} } @@ -7065,8 +7980,8 @@ async trigger_delayed_vaults_trx_processing({ headers}:{ headers?:HeadersInit} async create_vault_withdrawal({args, fields, headers}:{args: CreateVaultWithdrawalArgs, fields:((keyof VaultRequestResponse) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($vault_id: String!,$amount: Float!,$user_id: String,$use_all_funds: Boolean) { - create_vault_withdrawal(vault_id:$vault_id,amount:$amount,user_id:$user_id,use_all_funds:$use_all_funds) + mutation($vault_id: String!,$amount: Float!,$user_id: String,$use_all_funds: Boolean,$wallet_id: String!) { + create_vault_withdrawal(vault_id:$vault_id,amount:$amount,user_id:$user_id,use_all_funds:$use_all_funds,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -7077,8 +7992,8 @@ async create_vault_withdrawal({args, fields, headers}:{args: CreateVaultWithdra async create_vault_deposit({args, fields, headers}:{args: CreateVaultDepositArgs, fields:((keyof VaultRequestResponse) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($vault_id: String!,$amount: Float!,$user_id: String,$use_all_funds: Boolean) { - create_vault_deposit(vault_id:$vault_id,amount:$amount,user_id:$user_id,use_all_funds:$use_all_funds) + mutation($vault_id: String!,$amount: Float!,$user_id: String,$use_all_funds: Boolean,$wallet_id: String!) { + create_vault_deposit(vault_id:$vault_id,amount:$amount,user_id:$user_id,use_all_funds:$use_all_funds,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -7089,8 +8004,8 @@ async create_vault_deposit({args, fields, headers}:{args: CreateVaultDepositArg async create_vault_transaction({args, fields, headers}:{args: CreateVaultTransactionArgs, fields:((keyof VaultTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($vault_id: String!,$amount: Float!,$transaction_type: AccountTransactionType!,$user_id: String,$use_all_funds: Boolean) { - create_vault_transaction(vault_id:$vault_id,amount:$amount,transaction_type:$transaction_type,user_id:$user_id,use_all_funds:$use_all_funds) + mutation($vault_id: String!,$amount: Float!,$transaction_type: AccountTransactionType!,$user_id: String,$use_all_funds: Boolean,$wallet_id: String!) { + create_vault_transaction(vault_id:$vault_id,amount:$amount,transaction_type:$transaction_type,user_id:$user_id,use_all_funds:$use_all_funds,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -7098,16 +8013,16 @@ async create_vault_transaction({args, fields, headers}:{args: CreateVaultTransa `,args || {},headers,'create_vault_transaction') } -async create_vault_manual_transactions({args, fields, headers}:{args: CreateVaultManualTransactionsArgs, fields:((keyof VaultTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ +async create_vault_manual_transactions({ fields, headers}:{ fields:((keyof VaultTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($items: [CreateVaultTransactionInput!]!) { - create_vault_manual_transactions(items:$items) + mutation { + create_vault_manual_transactions { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'create_vault_manual_transactions') + `,{},headers,'create_vault_manual_transactions') } async update_vault_transaction_request({args, headers}:{args: UpdateVaultTransactionRequestArgs, headers?:HeadersInit}):Promise{ @@ -7167,8 +8082,8 @@ async calculate_payments_limits({args, fields, headers}:{args: CalculatePayment async create_aggregated_payment_limit({args, fields, headers}:{args: CreateAggregatedPaymentLimitArgs, fields:((keyof AggregatedPaymentLimit) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($limit_group_id: String!,$currency_id: String!,$withdrawal_daily_limit: Float,$withdrawal_weekly_limit: Float,$withdrawal_monthly_limit: Float,$is_active: ToggleSwitch!) { - create_aggregated_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,is_active:$is_active) + mutation($limit_group_id: String!,$currency_id: String!,$withdrawal_daily_limit: Float!,$withdrawal_weekly_limit: Float!,$withdrawal_monthly_limit: Float!,$is_active: ToggleSwitch!,$auto_reject: ToggleSwitch!) { + create_aggregated_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,is_active:$is_active,auto_reject:$auto_reject) { ${buildGraphQLQuery(fields)} } @@ -7179,8 +8094,8 @@ async create_aggregated_payment_limit({args, fields, headers}:{args: CreateAggr async update_aggregated_payment_limit({args, headers}:{args: UpdateAggregatedPaymentLimitArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($limit_group_id: String,$currency_id: String,$withdrawal_daily_limit: Float,$withdrawal_weekly_limit: Float,$withdrawal_monthly_limit: Float,$is_active: ToggleSwitch,$serial_ids: [number!]!) { - update_aggregated_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,is_active:$is_active,serial_ids:$serial_ids) + mutation($limit_group_id: String,$currency_id: String,$withdrawal_daily_limit: Float,$withdrawal_weekly_limit: Float,$withdrawal_monthly_limit: Float,$is_active: ToggleSwitch,$auto_reject: ToggleSwitch,$serial_ids: Int!) { + update_aggregated_payment_limit(limit_group_id:$limit_group_id,currency_id:$currency_id,withdrawal_daily_limit:$withdrawal_daily_limit,withdrawal_weekly_limit:$withdrawal_weekly_limit,withdrawal_monthly_limit:$withdrawal_monthly_limit,is_active:$is_active,auto_reject:$auto_reject,serial_ids:$serial_ids) } `,args || {},headers,'update_aggregated_payment_limit') @@ -7189,7 +8104,7 @@ async update_aggregated_payment_limit({args, headers}:{args: UpdateAggregatedPa async delete_aggregated_payment_limit({args, headers}:{args: DeleteAggregatedPaymentLimitArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Float,$serial_ids: [number!]!) { + mutation($serial_id: Float,$serial_ids: Int!) { delete_aggregated_payment_limit(serial_id:$serial_id,serial_ids:$serial_ids) } @@ -7199,8 +8114,8 @@ async delete_aggregated_payment_limit({args, headers}:{args: DeleteAggregatedPa async sync_config({args, headers}:{args: SyncConfigArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($api_url: String!,$mode: SyncConfigMode,$api_key: String!,$api_secret: String!,$currencies: Boolean,$hedging_adapters: Boolean,$instruments: Boolean,$instruments_strategies: Boolean,$payments_routes: Boolean,$limits_groups: Boolean,$trading_limits: Boolean,$payments_limits: Boolean,$fees_groups: Boolean,$trading_fees: Boolean,$payments_fees: Boolean) { - sync_config(api_url:$api_url,mode:$mode,api_key:$api_key,api_secret:$api_secret,currencies:$currencies,hedging_adapters:$hedging_adapters,instruments:$instruments,instruments_strategies:$instruments_strategies,payments_routes:$payments_routes,limits_groups:$limits_groups,trading_limits:$trading_limits,payments_limits:$payments_limits,fees_groups:$fees_groups,trading_fees:$trading_fees,payments_fees:$payments_fees) + mutation($api_url: String!,$mode: SyncConfigMode,$api_key: String!,$api_secret: String!,$currencies: Boolean,$hedging_adapters: Boolean,$instruments: Boolean,$instruments_ids: String!,$instruments_strategies: Boolean,$instrument_strategy_ids: String!,$payments_routes: Boolean,$limits_groups: Boolean,$trading_limits: Boolean,$payments_limits: Boolean,$fees_groups: Boolean,$trading_fees: Boolean,$payments_fees: Boolean) { + sync_config(api_url:$api_url,mode:$mode,api_key:$api_key,api_secret:$api_secret,currencies:$currencies,hedging_adapters:$hedging_adapters,instruments:$instruments,instruments_ids:$instruments_ids,instruments_strategies:$instruments_strategies,instrument_strategy_ids:$instrument_strategy_ids,payments_routes:$payments_routes,limits_groups:$limits_groups,trading_limits:$trading_limits,payments_limits:$payments_limits,fees_groups:$fees_groups,trading_fees:$trading_fees,payments_fees:$payments_fees) } `,args || {},headers,'sync_config') @@ -7221,7 +8136,7 @@ async create_ip_blacklist_item({args, fields, headers}:{args: CreateIpBlacklist async create_ip_blacklist_items({args, fields, headers}:{args: CreateIpBlacklistItemsArgs, fields:((keyof IpBlacklistItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($ip_addresses: [string!]!,$reason: String) { + mutation($ip_addresses: String!,$reason: String) { create_ip_blacklist_items(ip_addresses:$ip_addresses,reason:$reason) { ${buildGraphQLQuery(fields)} @@ -7265,7 +8180,7 @@ async create_system_config_log({args, fields, headers}:{args: CreateSystemConfi async update_system_config_log({args, headers}:{args: UpdateSystemConfigLogArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($event_name: String,$write_log: ToggleSwitch,$write_console: ToggleSwitch,$is_active: ToggleSwitch,$serial_ids: [number!]!) { + mutation($event_name: String,$write_log: ToggleSwitch,$write_console: ToggleSwitch,$is_active: ToggleSwitch,$serial_ids: Int!) { update_system_config_log(event_name:$event_name,write_log:$write_log,write_console:$write_console,is_active:$is_active,serial_ids:$serial_ids) } @@ -7275,7 +8190,7 @@ async update_system_config_log({args, headers}:{args: UpdateSystemConfigLogArgs async delete_system_config_log({args, headers}:{args: DeleteSystemConfigLogArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($serial_id: Float,$serial_ids: [number!]!) { + mutation($serial_id: Float,$serial_ids: Int!) { delete_system_config_log(serial_id:$serial_id,serial_ids:$serial_ids) } @@ -7292,6 +8207,16 @@ async reset_demo_balances({args, headers}:{args?: ResetDemoBalancesArgs, heade `,args || {},headers,'reset_demo_balances') } +async create_referral_transaction_info({args, headers}:{args: CreateReferralTransactionInfoArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($is_delayed: ToggleSwitch!,$delayed_seconds: Int) { + create_referral_transaction_info(is_delayed:$is_delayed,delayed_seconds:$delayed_seconds) + + } + `,args || {},headers,'create_referral_transaction_info') + } + async reschedule_delayed_referral_transactions({ headers}:{ headers?:HeadersInit}={}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` @@ -7325,8 +8250,8 @@ async renew_license({ headers}:{ headers?:HeadersInit}={}):Promise{ async create_referral_reward({args, headers}:{args: CreateReferralRewardArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($is_active: ToggleSwitch!,$type: ReferralRewardType!,$meta: String!,$min_deposited_volume_required: Float!,$min_deposited_volume: Float,$min_deposited_volume_currency_id: String,$kyc_required: ToggleSwitch!,$is_delayed: ToggleSwitch,$delayed_period_seconds: Int,$min_staked_vault_required: ToggleSwitch,$min_staked_vault_volume: Float,$min_staked_vault_currency_id: String,$min_traded_volume_required: Float,$min_traded_volume: Float,$min_traded_volume_currency_id: String) { - create_referral_reward(is_active:$is_active,type:$type,meta:$meta,min_deposited_volume_required:$min_deposited_volume_required,min_deposited_volume:$min_deposited_volume,min_deposited_volume_currency_id:$min_deposited_volume_currency_id,kyc_required:$kyc_required,is_delayed:$is_delayed,delayed_period_seconds:$delayed_period_seconds,min_staked_vault_required:$min_staked_vault_required,min_staked_vault_volume:$min_staked_vault_volume,min_staked_vault_currency_id:$min_staked_vault_currency_id,min_traded_volume_required:$min_traded_volume_required,min_traded_volume:$min_traded_volume,min_traded_volume_currency_id:$min_traded_volume_currency_id) + mutation($is_active: ToggleSwitch!,$type: ReferralRewardType!,$meta: String!,$min_deposited_volume_required: Float!,$min_deposited_volume: Float!,$min_deposited_volume_currency_id: String,$kyc_required: ToggleSwitch!,$is_delayed: ToggleSwitch!,$delayed_period_seconds: Int,$min_staked_vault_required: ToggleSwitch!,$min_staked_vault_volume: Float,$min_staked_vault_currency_id: String,$min_traded_volume_required: Float!,$min_traded_volume: Float,$min_traded_volume_currency_id: String,$min_traded_volume_includes_margin: ToggleSwitch!) { + create_referral_reward(is_active:$is_active,type:$type,meta:$meta,min_deposited_volume_required:$min_deposited_volume_required,min_deposited_volume:$min_deposited_volume,min_deposited_volume_currency_id:$min_deposited_volume_currency_id,kyc_required:$kyc_required,is_delayed:$is_delayed,delayed_period_seconds:$delayed_period_seconds,min_staked_vault_required:$min_staked_vault_required,min_staked_vault_volume:$min_staked_vault_volume,min_staked_vault_currency_id:$min_staked_vault_currency_id,min_traded_volume_required:$min_traded_volume_required,min_traded_volume:$min_traded_volume,min_traded_volume_currency_id:$min_traded_volume_currency_id,min_traded_volume_includes_margin:$min_traded_volume_includes_margin) } `,args || {},headers,'create_referral_reward') @@ -7335,8 +8260,8 @@ async create_referral_reward({args, headers}:{args: CreateReferralRewardArgs, async update_referral_reward({args, headers}:{args: UpdateReferralRewardArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($is_active: ToggleSwitch,$meta: String,$min_deposited_volume_required: Float,$min_deposited_volume: Float,$min_deposited_volume_currency_id: String,$kyc_required: ToggleSwitch,$delayed_period_seconds: Int,$min_staked_vault_volume: Float,$min_staked_vault_currency_id: String,$min_traded_volume_required: Float,$min_traded_volume: Float,$min_traded_volume_currency_id: String,$type: ReferralRewardType!,$is_delayed: ToggleSwitch,$min_staked_vault_required: ToggleSwitch) { - update_referral_reward(is_active:$is_active,meta:$meta,min_deposited_volume_required:$min_deposited_volume_required,min_deposited_volume:$min_deposited_volume,min_deposited_volume_currency_id:$min_deposited_volume_currency_id,kyc_required:$kyc_required,delayed_period_seconds:$delayed_period_seconds,min_staked_vault_volume:$min_staked_vault_volume,min_staked_vault_currency_id:$min_staked_vault_currency_id,min_traded_volume_required:$min_traded_volume_required,min_traded_volume:$min_traded_volume,min_traded_volume_currency_id:$min_traded_volume_currency_id,type:$type,is_delayed:$is_delayed,min_staked_vault_required:$min_staked_vault_required) + mutation($is_active: ToggleSwitch,$meta: String,$min_deposited_volume_required: Float,$min_deposited_volume: Float,$min_deposited_volume_currency_id: String,$kyc_required: ToggleSwitch,$delayed_period_seconds: Int,$min_staked_vault_volume: Float,$min_staked_vault_currency_id: String,$min_traded_volume: Float,$min_traded_volume_currency_id: String,$type: ReferralRewardType!,$is_delayed: ToggleSwitch,$min_staked_vault_required: ToggleSwitch,$min_traded_volume_required: ToggleSwitch,$min_traded_volume_includes_margin: ToggleSwitch) { + update_referral_reward(is_active:$is_active,meta:$meta,min_deposited_volume_required:$min_deposited_volume_required,min_deposited_volume:$min_deposited_volume,min_deposited_volume_currency_id:$min_deposited_volume_currency_id,kyc_required:$kyc_required,delayed_period_seconds:$delayed_period_seconds,min_staked_vault_volume:$min_staked_vault_volume,min_staked_vault_currency_id:$min_staked_vault_currency_id,min_traded_volume:$min_traded_volume,min_traded_volume_currency_id:$min_traded_volume_currency_id,type:$type,is_delayed:$is_delayed,min_staked_vault_required:$min_staked_vault_required,min_traded_volume_required:$min_traded_volume_required,min_traded_volume_includes_margin:$min_traded_volume_includes_margin) } `,args || {},headers,'update_referral_reward') @@ -7352,10 +8277,20 @@ async delete_referral_reward({args, headers}:{args: DeleteReferralRewardArgs, `,args || {},headers,'delete_referral_reward') } +async trigger_referral_rebate_rotation({ headers}:{ headers?:HeadersInit}={}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation { + trigger_referral_rebate_rotation + + } + `,{},headers,'trigger_referral_rebate_rotation') + } + async start_trading_grid({args, fields, headers}:{args: StartTradingGridArgs, fields:((keyof TradingGrid) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$instrument_id: String!,$initial_investment_quote_currency: Float!,$mode: TradginGridMode!,$size: Int!,$price_range_from: Float!,$price_range_to: Float!,$stop_loss_percentage: Float,$take_profit_percentage: Float,$wallet_id: String) { + mutation($user_id: String,$instrument_id: String!,$initial_investment_quote_currency: Float!,$mode: TradginGridMode!,$size: Int!,$price_range_from: Float!,$price_range_to: Float!,$stop_loss_percentage: Float,$take_profit_percentage: Float,$wallet_id: String!) { start_trading_grid(user_id:$user_id,instrument_id:$instrument_id,initial_investment_quote_currency:$initial_investment_quote_currency,mode:$mode,size:$size,price_range_from:$price_range_from,price_range_to:$price_range_to,stop_loss_percentage:$stop_loss_percentage,take_profit_percentage:$take_profit_percentage,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} @@ -7391,7 +8326,7 @@ async update_trading_grid({args, fields, headers}:{args: UpdateTradingGridArgs, async estimate_trading_grid({args, fields, headers}:{args: EstimateTradingGridArgs, fields:((keyof EstimateTradingGridResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String,$instrument_id: String!,$initial_investment_quote_currency: Float!,$mode: TradginGridMode!,$size: Int!,$price_range_from: Float!,$price_range_to: Float!,$stop_loss_percentage: Float,$take_profit_percentage: Float,$wallet_id: String,$time_from: Float!,$time_to: Float!) { + mutation($user_id: String,$instrument_id: String!,$initial_investment_quote_currency: Float!,$mode: TradginGridMode!,$size: Int!,$price_range_from: Float!,$price_range_to: Float!,$stop_loss_percentage: Float,$take_profit_percentage: Float,$wallet_id: String!,$time_from: Float!,$time_to: Float!) { estimate_trading_grid(user_id:$user_id,instrument_id:$instrument_id,initial_investment_quote_currency:$initial_investment_quote_currency,mode:$mode,size:$size,price_range_from:$price_range_from,price_range_to:$price_range_to,stop_loss_percentage:$stop_loss_percentage,take_profit_percentage:$take_profit_percentage,wallet_id:$wallet_id,time_from:$time_from,time_to:$time_to) { ${buildGraphQLQuery(fields)} @@ -7410,78 +8345,366 @@ async user_switch_fee_group({args, headers}:{args: UserSwitchFeeGroupArgs, hea `,args || {},headers,'user_switch_fee_group') } -async update_withdrawal_notional_fee({args, headers}:{args: UpdateWithdrawalNotionalFeeArgs, headers?:HeadersInit}):Promise{ +async update_withdrawal_notional_fee({args, headers}:{args: UpdateWithdrawalNotionalFeeArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($notional: Float!) { + update_withdrawal_notional_fee(notional:$notional) + + } + `,args || {},headers,'update_withdrawal_notional_fee') + } + +async create_trade_tier({args, fields, headers}:{args: CreateTradeTierArgs, fields:((keyof TradeTier) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($name: String!,$fee_group_id: String!,$threshold: Float!) { + create_trade_tier(name:$name,fee_group_id:$fee_group_id,threshold:$threshold) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_trade_tier') + } + +async update_trade_tier({args, headers}:{args: UpdateTradeTierArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($tier_id: String,$name: String,$fee_group_id: String,$threshold: Float,$serial_ids: Int!) { + update_trade_tier(tier_id:$tier_id,name:$name,fee_group_id:$fee_group_id,threshold:$threshold,serial_ids:$serial_ids) + + } + `,args || {},headers,'update_trade_tier') + } + +async delete_trade_tier({args, headers}:{args: DeleteTradeTierArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($tier_id: String!,$serial_ids: Int!) { + delete_trade_tier(tier_id:$tier_id,serial_ids:$serial_ids) + + } + `,args || {},headers,'delete_trade_tier') + } + +async create_tier_fee({args, fields, headers}:{args: CreateTierFeeArgs, fields:((keyof TierFee) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($tier_id: String!,$instrument_id: String!) { + create_tier_fee(tier_id:$tier_id,instrument_id:$instrument_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_tier_fee') + } + +async update_tier_fee({args, headers}:{args: UpdateTierFeeArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($tier_fee_id: String,$instrument_id: String,$maker_progressive: Float,$taker_progressive: Float,$maker_flat: Float,$taker_flat: Float,$serial_ids: Int!) { + update_tier_fee(tier_fee_id:$tier_fee_id,instrument_id:$instrument_id,maker_progressive:$maker_progressive,taker_progressive:$taker_progressive,maker_flat:$maker_flat,taker_flat:$taker_flat,serial_ids:$serial_ids) + + } + `,args || {},headers,'update_tier_fee') + } + +async delete_tier_fee({args, headers}:{args: DeleteTierFeeArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($tier_fee_id: String!,$serial_ids: Int!) { + delete_tier_fee(tier_fee_id:$tier_fee_id,serial_ids:$serial_ids) + + } + `,args || {},headers,'delete_tier_fee') + } + +async delete_trades_rolling_volume({args, headers}:{args: DeleteTradesRollingVolumeArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($user_id: String!,$serial_ids: Int!) { + delete_trades_rolling_volume(user_id:$user_id,serial_ids:$serial_ids) + + } + `,args || {},headers,'delete_trades_rolling_volume') + } + +async recalculate_trades_rolling_volume({ headers}:{ headers?:HeadersInit}={}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation { + recalculate_trades_rolling_volume + + } + `,{},headers,'recalculate_trades_rolling_volume') + } + +async create_wallet({args, fields, headers}:{args: CreateWalletArgs, fields:((keyof Wallet) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($name: String!,$user_id: String,$description: String,$type: WalletType) { + create_wallet(name:$name,user_id:$user_id,description:$description,type:$type) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_wallet') + } + +async update_wallet({args, fields, headers}:{args: UpdateWalletArgs, fields:((keyof Wallet) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($wallet_id: String!,$name: String,$description: String,$user_id: String) { + update_wallet(wallet_id:$wallet_id,name:$name,description:$description,user_id:$user_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'update_wallet') + } + +async create_wallet_transfer({args, fields, headers}:{args: CreateWalletTransferArgs, fields:((keyof WalletTransfer) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($user_id: String,$from_wallet_id: String!,$to_wallet_id: String!,$currency_id: String!,$amount: Float!) { + create_wallet_transfer(user_id:$user_id,from_wallet_id:$from_wallet_id,to_wallet_id:$to_wallet_id,currency_id:$currency_id,amount:$amount) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_wallet_transfer') + } + +async eventus_upload_life_cycle_data_for_date({args, headers}:{args: EventusUploadLifeCycleDataForDateArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($temporaryKey: String!,$date: String!,$dryRun: String!) { + eventus_upload_life_cycle_data_for_date(temporaryKey:$temporaryKey,date:$date,dryRun:$dryRun) + + } + `,args || {},headers,'eventus_upload_life_cycle_data_for_date') + } + +async create_voucher({args, fields, headers}:{args: CreateVoucherArgs, fields:((keyof Voucher) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($name: String!,$description: String,$value: Float!,$currency_id: String!,$total_usage_limit: Int!,$user_usage_limit: Int!,$expiry_date: String!,$registration_date_from: String,$registration_date_to: String,$kyc_statuses: UserKycStatus!,$limit_group_id: String,$tag: String,$code: String,$quantity: Int) { + create_voucher(name:$name,description:$description,value:$value,currency_id:$currency_id,total_usage_limit:$total_usage_limit,user_usage_limit:$user_usage_limit,expiry_date:$expiry_date,registration_date_from:$registration_date_from,registration_date_to:$registration_date_to,kyc_statuses:$kyc_statuses,limit_group_id:$limit_group_id,tag:$tag,code:$code,quantity:$quantity) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_voucher') + } + +async update_voucher({args, headers}:{args: UpdateVoucherArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($description: String,$status: VoucherStatus,$total_usage_limit: Int,$user_usage_limit: Int,$expiry_date: String,$kyc_statuses: UserKycStatus!,$limit_group_id: String,$tag: String,$serial_ids: Int!,$voucher_id: String) { + update_voucher(description:$description,status:$status,total_usage_limit:$total_usage_limit,user_usage_limit:$user_usage_limit,expiry_date:$expiry_date,kyc_statuses:$kyc_statuses,limit_group_id:$limit_group_id,tag:$tag,serial_ids:$serial_ids,voucher_id:$voucher_id) + + } + `,args || {},headers,'update_voucher') + } + +async delete_voucher({args, headers}:{args: DeleteVoucherArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($voucher_id: String!) { + delete_voucher(voucher_id:$voucher_id) + + } + `,args || {},headers,'delete_voucher') + } + +async claim_voucher({args, fields, headers}:{args: ClaimVoucherArgs, fields:((keyof VoucherCode) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($code: String!,$user_id: String) { + claim_voucher(code:$code,user_id:$user_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'claim_voucher') + } + +async create_yield_adapter({args, fields, headers}:{args: CreateYieldAdapterArgs, fields:((keyof YieldAdapter) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($service_url: String!,$service_api_key: String!,$sync: ToggleSwitch!,$yield_adapter_id: String) { + create_yield_adapter(service_url:$service_url,service_api_key:$service_api_key,sync:$sync,yield_adapter_id:$yield_adapter_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_yield_adapter') + } + +async update_yield_adapter({args, fields, headers}:{args: UpdateYieldAdapterArgs, fields:((keyof YieldAdapter) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($yield_adapter_id: String!,$service_url: String!,$service_api_key: String!,$sync: ToggleSwitch!) { + update_yield_adapter(yield_adapter_id:$yield_adapter_id,service_url:$service_url,service_api_key:$service_api_key,sync:$sync) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'update_yield_adapter') + } + +async delete_yield_adapter({args, headers}:{args: DeleteYieldAdapterArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($yield_adapter_id: String!) { + delete_yield_adapter(yield_adapter_id:$yield_adapter_id) + + } + `,args || {},headers,'delete_yield_adapter') + } + +async create_vault_strategy({args, fields, headers}:{args: CreateVaultStrategyArgs, fields:((keyof VaultStrategy) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($vault_id: String!,$yield_adapter_id: String!,$yield_sync: ToggleSwitch!,$yield_margin_percent: Float!,$funding_sync: ToggleSwitch!,$external_vault_id: String,$meta: String,$funding_error_attempts_threshold: Int,$disable_vault_on_error_attempts_threshold_exceeded: ToggleSwitch,$reject_request_on_funding_failure: ToggleSwitch) { + create_vault_strategy(vault_id:$vault_id,yield_adapter_id:$yield_adapter_id,yield_sync:$yield_sync,yield_margin_percent:$yield_margin_percent,funding_sync:$funding_sync,external_vault_id:$external_vault_id,meta:$meta,funding_error_attempts_threshold:$funding_error_attempts_threshold,disable_vault_on_error_attempts_threshold_exceeded:$disable_vault_on_error_attempts_threshold_exceeded,reject_request_on_funding_failure:$reject_request_on_funding_failure) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'create_vault_strategy') + } + +async update_vault_strategy({args, fields, headers}:{args: UpdateVaultStrategyArgs, fields:((keyof VaultStrategy) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($vault_strategy_id: String!,$vault_id: String!,$yield_adapter_id: String!,$yield_sync: ToggleSwitch!,$yield_margin_percent: Float!,$funding_sync: ToggleSwitch!,$external_vault_id: String,$meta: String,$funding_error_attempts_threshold: Int,$disable_vault_on_error_attempts_threshold_exceeded: ToggleSwitch,$reject_request_on_funding_failure: ToggleSwitch) { + update_vault_strategy(vault_strategy_id:$vault_strategy_id,vault_id:$vault_id,yield_adapter_id:$yield_adapter_id,yield_sync:$yield_sync,yield_margin_percent:$yield_margin_percent,funding_sync:$funding_sync,external_vault_id:$external_vault_id,meta:$meta,funding_error_attempts_threshold:$funding_error_attempts_threshold,disable_vault_on_error_attempts_threshold_exceeded:$disable_vault_on_error_attempts_threshold_exceeded,reject_request_on_funding_failure:$reject_request_on_funding_failure) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'update_vault_strategy') + } + +async delete_vault_strategy({args, headers}:{args: DeleteVaultStrategyArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($vault_strategy_id: String!) { + delete_vault_strategy(vault_strategy_id:$vault_strategy_id) + + } + `,args || {},headers,'delete_vault_strategy') + } + +async trigger_sync_external_apy({ headers}:{ headers?:HeadersInit}={}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation { + trigger_sync_external_apy + + } + `,{},headers,'trigger_sync_external_apy') + } + +async upload_trading_view_template({args, fields, headers}:{args: UploadTradingViewTemplateArgs, fields:((keyof TradingViewTemplateUploadResult) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($template_name: String!,$template_type: SpotMargin!,$instrument_id: String!,$periodicity: InstrumentHistoryPeriodicity) { + upload_trading_view_template(template_name:$template_name,template_type:$template_type,instrument_id:$instrument_id,periodicity:$periodicity) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'upload_trading_view_template') + } + +async complete_upload_trading_view_template({args, fields, headers}:{args: CompleteUploadTradingViewTemplateArgs, fields:((keyof TradingViewTemplateModel) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($notional: Float!) { - update_withdrawal_notional_fee(notional:$notional) - + mutation($original_name: String!,$s3_etag: String!,$template_id: String!,$is_update: Boolean) { + complete_upload_trading_view_template(original_name:$original_name,s3_etag:$s3_etag,template_id:$template_id,is_update:$is_update) + { + ${buildGraphQLQuery(fields)} + } } - `,args || {},headers,'update_withdrawal_notional_fee') + `,args || {},headers,'complete_upload_trading_view_template') } -async create_trade_tier({args, fields, headers}:{args: CreateTradeTierArgs, fields:((keyof TradeTier) | Partial>)[], headers?:HeadersInit}):Promise{ +async update_trading_view_template({args, fields, headers}:{args: UpdateTradingViewTemplateArgs, fields:((keyof UpdateTradingViewTemplateModel) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($fee_group_id: String!,$name: String!,$maker_progressive: Float!,$taker_progressive: Float!,$threshold: Float!) { - create_trade_tier(fee_group_id:$fee_group_id,name:$name,maker_progressive:$maker_progressive,taker_progressive:$taker_progressive,threshold:$threshold) + mutation($template_id: String!,$template_name: String,$periodicity: InstrumentHistoryPeriodicity,$touched_at: String) { + update_trading_view_template(template_id:$template_id,template_name:$template_name,periodicity:$periodicity,touched_at:$touched_at) { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'create_trade_tier') + `,args || {},headers,'update_trading_view_template') } -async update_trade_tier({args, headers}:{args: UpdateTradeTierArgs, headers?:HeadersInit}):Promise{ +async delete_trading_view_template({args, headers}:{args: DeleteTradingViewTemplateArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($tier_id: String,$name: String,$maker_progressive: Float,$taker_progressive: Float,$threshold: Float,$serial_ids: [number!]!) { - update_trade_tier(tier_id:$tier_id,name:$name,maker_progressive:$maker_progressive,taker_progressive:$taker_progressive,threshold:$threshold,serial_ids:$serial_ids) + mutation($template_id: String!) { + delete_trading_view_template(template_id:$template_id) } - `,args || {},headers,'update_trade_tier') + `,args || {},headers,'delete_trading_view_template') } -async delete_trade_tier({args, headers}:{args: DeleteTradeTierArgs, headers?:HeadersInit}):Promise{ +async createOtcOrder({args, fields, headers}:{args: CreateOtcOrderArgs, fields:((keyof OtcOrder) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($tier_id: String!,$serial_ids: [number!]!) { - delete_trade_tier(tier_id:$tier_id,serial_ids:$serial_ids) + mutation($order_id: String,$user_id: String!,$instrument_id: String!,$price: Float!,$quantity: Float!,$status: OtcOrderStatus,$side: OtcOrderSide!,$notes: String,$message: String) { + createOtcOrder(order_id:$order_id,user_id:$user_id,instrument_id:$instrument_id,price:$price,quantity:$quantity,status:$status,side:$side,notes:$notes,message:$message) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'createOtcOrder') + } + +async updateOtcOrder({args, headers}:{args: UpdateOtcOrderArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + mutation($order_id: String!,$status: OtcOrderStatus,$message: String,$notes: String) { + updateOtcOrder(order_id:$order_id,status:$status,message:$message,notes:$notes) } - `,args || {},headers,'delete_trade_tier') + `,args || {},headers,'updateOtcOrder') } -async delete_trades_volume({args, headers}:{args: DeleteTradesVolumeArgs, headers?:HeadersInit}):Promise{ +async send_otc_notification({ headers}:{ headers?:HeadersInit}={}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($user_id: String!,$serial_ids: [number!]!) { - delete_trades_volume(user_id:$user_id,serial_ids:$serial_ids) + mutation { + send_otc_notification } - `,args || {},headers,'delete_trades_volume') + `,{},headers,'send_otc_notification') } -async create_wallet({args, fields, headers}:{args: CreateWalletArgs, fields:((keyof Wallet) | Partial>)[], headers?:HeadersInit}):Promise{ +async createOtcHedgingOrder({args, fields, headers}:{args: CreateOtcHedgingOrderArgs, fields:((keyof OtcHedgingOrder) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($name: String!,$user_id: String,$description: String) { - create_wallet(name:$name,user_id:$user_id,description:$description) + mutation($order_id: String,$instrument_id: String!,$price: Float!,$quantity: Float!,$status: OtcOrderStatus,$side: OtcOrderSide!,$message: String,$notes: String) { + createOtcHedgingOrder(order_id:$order_id,instrument_id:$instrument_id,price:$price,quantity:$quantity,status:$status,side:$side,message:$message,notes:$notes) { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'create_wallet') + `,args || {},headers,'createOtcHedgingOrder') } -async eventus_upload_life_cycle_data_for_date({args, headers}:{args: EventusUploadLifeCycleDataForDateArgs, headers?:HeadersInit}):Promise{ +async updateOtcHedgingOrder({args, headers}:{args: UpdateOtcHedgingOrderArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - mutation($temporaryKey: String!,$date: String!,$dryRun: String!) { - eventus_upload_life_cycle_data_for_date(temporaryKey:$temporaryKey,date:$date,dryRun:$dryRun) + mutation($order_id: String!,$status: OtcOrderStatus,$message: String,$notes: String) { + updateOtcHedgingOrder(order_id:$order_id,status:$status,message:$message,notes:$notes) } - `,args || {},headers,'eventus_upload_life_cycle_data_for_date') + `,args || {},headers,'updateOtcHedgingOrder') } @@ -7499,8 +8722,8 @@ async eventus_upload_life_cycle_data_for_date({args, headers}:{args: EventusUpl async open_orders({args, fields, headers}:{args: OpenOrdersArgs, fields:((keyof Order) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($order_id: String,$client_order_id: String,$time_in_force: OrderTimeInForce,$type: OrderType,$side: OrderSide,$instrument_id: String,$message: String,$parent_order_id: String,$user_id: String,$search: String,$status: [OrderStatus!]!,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput,$wallet_id: String) { - open_orders(order_id:$order_id,client_order_id:$client_order_id,time_in_force:$time_in_force,type:$type,side:$side,instrument_id:$instrument_id,message:$message,parent_order_id:$parent_order_id,user_id:$user_id,search:$search,status:$status,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange,wallet_id:$wallet_id) + query($order_id: String,$client_order_id: String,$time_in_force: OrderTimeInForce,$type: OrderType,$side: OrderSide,$instrument_id: String,$message: String,$parent_order_id: String,$user_id: String,$search: String,$status: OrderStatus!,$wallet_id: String,$currency_id: String) { + open_orders(order_id:$order_id,client_order_id:$client_order_id,time_in_force:$time_in_force,type:$type,side:$side,instrument_id:$instrument_id,message:$message,parent_order_id:$parent_order_id,user_id:$user_id,search:$search,status:$status,wallet_id:$wallet_id,currency_id:$currency_id) { ${buildGraphQLQuery(fields)} } @@ -7511,8 +8734,8 @@ async open_orders({args, fields, headers}:{args: OpenOrdersArgs, fields:((keyof async closed_orders({args, fields, headers}:{args: ClosedOrdersArgs, fields:((keyof Order) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($order_id: String,$client_order_id: String,$time_in_force: OrderTimeInForce,$type: OrderType,$side: OrderSide,$instrument_id: String,$message: String,$parent_order_id: String,$user_id: String,$search: String,$status: [OrderStatus!]!,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput,$wallet_id: String) { - closed_orders(order_id:$order_id,client_order_id:$client_order_id,time_in_force:$time_in_force,type:$type,side:$side,instrument_id:$instrument_id,message:$message,parent_order_id:$parent_order_id,user_id:$user_id,search:$search,status:$status,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange,wallet_id:$wallet_id) + query($order_id: String,$client_order_id: String,$time_in_force: OrderTimeInForce,$type: OrderType,$side: OrderSide,$instrument_id: String,$message: String,$parent_order_id: String,$user_id: String,$search: String,$status: OrderStatus!,$wallet_id: String,$currency_id: String) { + closed_orders(order_id:$order_id,client_order_id:$client_order_id,time_in_force:$time_in_force,type:$type,side:$side,instrument_id:$instrument_id,message:$message,parent_order_id:$parent_order_id,user_id:$user_id,search:$search,status:$status,wallet_id:$wallet_id,currency_id:$currency_id) { ${buildGraphQLQuery(fields)} } @@ -7535,8 +8758,8 @@ async estimate_order({args, fields, headers}:{args: EstimateOrderArgs, fields:( async trades({args, fields, headers}:{args?: TradesArgs, fields:((keyof Trade) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($trade_id: String,$instrument_id: String,$order_id: String,$side: OrderSide,$counter_order_id: String,$user_id: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput) { - trades(trade_id:$trade_id,instrument_id:$instrument_id,order_id:$order_id,side:$side,counter_order_id:$counter_order_id,user_id:$user_id,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange) + query($trade_id: String,$instrument_id: String,$order_id: String,$side: OrderSide,$counter_order_id: String,$user_id: String,$search: String,$wallet_id: String) { + trades(trade_id:$trade_id,instrument_id:$instrument_id,order_id:$order_id,side:$side,counter_order_id:$counter_order_id,user_id:$user_id,search:$search,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -7568,23 +8791,23 @@ async healthcheck({ fields, headers}:{ fields:((keyof HealthcheckResult) | Part `,{},headers,'healthcheck') } -async admins({args, fields, headers}:{args?: AdminsArgs, fields:((keyof Admin) | Partial>)[], headers?:HeadersInit}):Promise{ +async admins({ fields, headers}:{ fields:((keyof Admin) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($serialIdRange: SerialIdRangeInput) { - admins(serialIdRange:$serialIdRange) + query { + admins { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'admins') + `,{},headers,'admins') } -async instruments({args, fields, headers}:{args?: InstrumentsArgs, fields:((keyof Instrument) | Partial>)[], headers?:HeadersInit}):Promise{ +async instruments({args, fields, headers}:{args: InstrumentsArgs, fields:((keyof Instrument) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($instrument_id: String,$is_active: ToggleSwitch,$search: String,$page: Int,$limit: Int,$sort: SortInput,$store_mode: ToggleSwitch) { - instruments(instrument_id:$instrument_id,is_active:$is_active,search:$search,page:$page,limit:$limit,sort:$sort,store_mode:$store_mode) + query($instrument_id: String,$is_active: ToggleSwitch,$search: String,$page: Int,$limit: Int!,$store_mode: ToggleSwitch) { + instruments(instrument_id:$instrument_id,is_active:$is_active,search:$search,page:$page,limit:$limit,store_mode:$store_mode) { ${buildGraphQLQuery(fields)} } @@ -7595,8 +8818,8 @@ async instruments({args, fields, headers}:{args?: InstrumentsArgs, fields:((key async instrument_price_bars({args, fields, headers}:{args: InstrumentPriceBarsArgs, fields:((keyof InstrumentPriceHistory) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($periodicity: InstrumentHistoryPeriodicity,$limit: Int,$date_range: DateRangeInput,$instrument_id: String!) { - instrument_price_bars(periodicity:$periodicity,limit:$limit,date_range:$date_range,instrument_id:$instrument_id) + query($periodicity: InstrumentHistoryPeriodicity,$limit: Int,$instrument_id: String!) { + instrument_price_bars(periodicity:$periodicity,limit:$limit,instrument_id:$instrument_id) { ${buildGraphQLQuery(fields)} } @@ -7604,10 +8827,10 @@ async instrument_price_bars({args, fields, headers}:{args: InstrumentPriceBarsA `,args || {},headers,'instrument_price_bars') } -async currencies({args, fields, headers}:{args?: CurrenciesArgs, fields:((keyof Currency) | Partial>)[], headers?:HeadersInit}):Promise{ +async currencies({args, fields, headers}:{args: CurrenciesArgs, fields:((keyof Currency) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($search: String,$type: CurrencyType,$is_active: ToggleSwitch,$page: Int,$limit: Int,$store_mode: ToggleSwitch) { + query($search: String,$type: CurrencyType,$is_active: ToggleSwitch,$page: Int,$limit: Int!,$store_mode: ToggleSwitch) { currencies(search:$search,type:$type,is_active:$is_active,page:$page,limit:$limit,store_mode:$store_mode) { ${buildGraphQLQuery(fields)} @@ -7619,8 +8842,8 @@ async currencies({args, fields, headers}:{args?: CurrenciesArgs, fields:((keyof async payments({args, fields, headers}:{args: PaymentsArgs, fields:((keyof Payment) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($payment_id: String,$remote_txid: String,$kyt_status: [PaymentStatus!],$currency_id: String,$type: PaymentType,$psp_service_id: String,$created_by: String,$payment_id_in: [string!]!,$payment_id_not_in: [string!]!,$user_id: String,$user_id_in: [string!]!,$user_id_not_in: [string!]!,$search: String,$status: [PaymentStatus!]!,$approval_status: [PaymentApprovalStatus!]!,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput,$kyt_status_in: [PaymentKytStatus!]!,$currency_type: CurrencyType,$quote_currency_id: String,$internal_transfer_cross_reference: String,$reference: String,$crypto_pay_payments: Boolean) { - payments(payment_id:$payment_id,remote_txid:$remote_txid,kyt_status:$kyt_status,currency_id:$currency_id,type:$type,psp_service_id:$psp_service_id,created_by:$created_by,payment_id_in:$payment_id_in,payment_id_not_in:$payment_id_not_in,user_id:$user_id,user_id_in:$user_id_in,user_id_not_in:$user_id_not_in,search:$search,status:$status,approval_status:$approval_status,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange,kyt_status_in:$kyt_status_in,currency_type:$currency_type,quote_currency_id:$quote_currency_id,internal_transfer_cross_reference:$internal_transfer_cross_reference,reference:$reference,crypto_pay_payments:$crypto_pay_payments) + query($payment_id: String,$remote_txid: String,$kyt_status: PaymentStatus,$currency_id: String,$type: PaymentType,$psp_service_id: String,$created_by: String,$payment_id_in: String!,$payment_id_not_in: String!,$user_id: String,$user_id_in: String!,$user_id_not_in: String!,$search: String,$status: PaymentStatus!,$approval_status: PaymentApprovalStatus!,$kyt_status_in: PaymentKytStatus!,$currency_type: CurrencyType,$quote_currency_id: String,$internal_transfer_cross_reference: String,$reference: String,$crypto_pay_payments: Boolean,$integer_tracking_id: Int,$wallet_id: String) { + payments(payment_id:$payment_id,remote_txid:$remote_txid,kyt_status:$kyt_status,currency_id:$currency_id,type:$type,psp_service_id:$psp_service_id,created_by:$created_by,payment_id_in:$payment_id_in,payment_id_not_in:$payment_id_not_in,user_id:$user_id,user_id_in:$user_id_in,user_id_not_in:$user_id_not_in,search:$search,status:$status,approval_status:$approval_status,kyt_status_in:$kyt_status_in,currency_type:$currency_type,quote_currency_id:$quote_currency_id,internal_transfer_cross_reference:$internal_transfer_cross_reference,reference:$reference,crypto_pay_payments:$crypto_pay_payments,integer_tracking_id:$integer_tracking_id,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -7643,8 +8866,8 @@ async deposit_address_crypto({args, fields, headers}:{args: DepositAddressCrypt async deposit_addresses_crypto({args, fields, headers}:{args?: DepositAddressesCryptoArgs, fields:((keyof DepositAddressCrypto) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($deposit_address_crypto_id: String,$currency_id: String,$address: String,$address_tag_type: CryptoAddressTagType,$address_tag_value: String,$network: String,$psp_service_id: String,$reference: String,$user_id: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - deposit_addresses_crypto(deposit_address_crypto_id:$deposit_address_crypto_id,currency_id:$currency_id,address:$address,address_tag_type:$address_tag_type,address_tag_value:$address_tag_value,network:$network,psp_service_id:$psp_service_id,reference:$reference,user_id:$user_id,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange) + query($deposit_address_crypto_id: String,$currency_id: String,$address: String,$address_tag_type: CryptoAddressTagType,$address_tag_value: String,$network: String,$psp_service_id: String,$reference: String,$user_id: String,$search: String) { + deposit_addresses_crypto(deposit_address_crypto_id:$deposit_address_crypto_id,currency_id:$currency_id,address:$address,address_tag_type:$address_tag_type,address_tag_value:$address_tag_value,network:$network,psp_service_id:$psp_service_id,reference:$reference,user_id:$user_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -7655,8 +8878,8 @@ async deposit_addresses_crypto({args, fields, headers}:{args?: DepositAddresses async conversions({args, fields, headers}:{args: ConversionsArgs, fields:((keyof Conversion) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$search: String,$reference: String,$status_in: [ConversionStatus!]!,$conversion_quote_id: String,$source_currency_id: String,$target_currency_id: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput,$wallet_id: String) { - conversions(user_id:$user_id,search:$search,reference:$reference,status_in:$status_in,conversion_quote_id:$conversion_quote_id,source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange,wallet_id:$wallet_id) + query($user_id: String,$search: String,$reference: String,$status_in: ConversionStatus!,$conversion_quote_id: String,$source_currency_id: String,$target_currency_id: String,$wallet_id: String,$instrument_id: String,$currency_id: String) { + conversions(user_id:$user_id,search:$search,reference:$reference,status_in:$status_in,conversion_quote_id:$conversion_quote_id,source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,wallet_id:$wallet_id,instrument_id:$instrument_id,currency_id:$currency_id) { ${buildGraphQLQuery(fields)} } @@ -7667,8 +8890,8 @@ async conversions({args, fields, headers}:{args: ConversionsArgs, fields:((keyo async conversion_quotes({args, fields, headers}:{args?: ConversionQuotesArgs, fields:((keyof ConversionQuote) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$search: String,$conversion_quote_id: String,$reference: String,$source_currency_id: String,$target_currency_id: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - conversion_quotes(user_id:$user_id,search:$search,conversion_quote_id:$conversion_quote_id,reference:$reference,source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,pager:$pager,sort:$sort,dateRange:$dateRange) + query($user_id: String,$search: String,$conversion_quote_id: String,$reference: String,$source_currency_id: String,$target_currency_id: String) { + conversion_quotes(user_id:$user_id,search:$search,conversion_quote_id:$conversion_quote_id,reference:$reference,source_currency_id:$source_currency_id,target_currency_id:$target_currency_id) { ${buildGraphQLQuery(fields)} } @@ -7679,8 +8902,8 @@ async conversion_quotes({args, fields, headers}:{args?: ConversionQuotesArgs, f async conversion_quotes_risks({args, fields, headers}:{args?: ConversionQuotesRisksArgs, fields:((keyof ConversionQuotesRisks) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($source_currency_id: String,$target_currency_id: String,$instrument_id: String,$user_id: String,$pager: PagerInput,$sort: SortInput) { - conversion_quotes_risks(source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,instrument_id:$instrument_id,user_id:$user_id,pager:$pager,sort:$sort) + query($source_currency_id: String,$target_currency_id: String,$instrument_id: String,$user_id: String) { + conversion_quotes_risks(source_currency_id:$source_currency_id,target_currency_id:$target_currency_id,instrument_id:$instrument_id,user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -7688,11 +8911,11 @@ async conversion_quotes_risks({args, fields, headers}:{args?: ConversionQuotesR `,args || {},headers,'conversion_quotes_risks') } -async users({args, fields, headers}:{args?: UsersArgs, fields:((keyof User) | Partial>)[], headers?:HeadersInit}):Promise{ +async users({args, fields, headers}:{args: UsersArgs, fields:((keyof User) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($parent_user_id: String,$username: String,$email: String,$is_active: ToggleSwitch,$is_deleted: ToggleSwitch,$fee_group_id: String,$limit_group_id: String,$user_id: String,$search: String,$kyc_property: String,$kyc_value: String,$kyc_status: UserStatus,$kyc_level: String,$status: UserStatus,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput,$mfa_status: ToggleSwitch) { - users(parent_user_id:$parent_user_id,username:$username,email:$email,is_active:$is_active,is_deleted:$is_deleted,fee_group_id:$fee_group_id,limit_group_id:$limit_group_id,user_id:$user_id,search:$search,kyc_property:$kyc_property,kyc_value:$kyc_value,kyc_status:$kyc_status,kyc_level:$kyc_level,status:$status,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange,mfa_status:$mfa_status) + query($parent_user_id: String,$username: String,$email: String,$is_active: ToggleSwitch,$is_deleted: ToggleSwitch,$fee_group_id: String,$limit_group_id: String,$user_id: String,$user_ids: String!,$search: String,$kyc_property: String,$kyc_value: String,$kyc_status: UserStatus,$kyc_level: String,$status: UserStatus,$mfa_status: ToggleSwitch) { + users(parent_user_id:$parent_user_id,username:$username,email:$email,is_active:$is_active,is_deleted:$is_deleted,fee_group_id:$fee_group_id,limit_group_id:$limit_group_id,user_id:$user_id,user_ids:$user_ids,search:$search,kyc_property:$kyc_property,kyc_value:$kyc_value,kyc_status:$kyc_status,kyc_level:$kyc_level,status:$status,mfa_status:$mfa_status) { ${buildGraphQLQuery(fields)} } @@ -7725,8 +8948,8 @@ async user({args, fields, headers}:{args?: UserArgs, fields:((keyof User) | Par async account_transactions({args, fields, headers}:{args?: AccountTransactionsArgs, fields:((keyof AccountTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($account_transaction_id: String,$parent_transaction_id: String,$client_transaction_id: String,$account_id: String,$payment_id: String,$currency_id: String,$transaction_class: AccountTransactionClass,$type: AccountTransactionType,$order_id: String,$trade_id: String,$conversion_id: String,$margin_trade_id: String,$comment: String,$created_by: String,$user_id: String,$search: String,$instrument_id: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput) { - account_transactions(account_transaction_id:$account_transaction_id,parent_transaction_id:$parent_transaction_id,client_transaction_id:$client_transaction_id,account_id:$account_id,payment_id:$payment_id,currency_id:$currency_id,transaction_class:$transaction_class,type:$type,order_id:$order_id,trade_id:$trade_id,conversion_id:$conversion_id,margin_trade_id:$margin_trade_id,comment:$comment,created_by:$created_by,user_id:$user_id,search:$search,instrument_id:$instrument_id,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange) + query($account_transaction_id: String,$parent_transaction_id: String,$client_transaction_id: String,$account_id: String,$payment_id: String,$currency_id: String,$transaction_class: AccountTransactionClass,$type: AccountTransactionType,$order_id: String,$trade_id: String,$conversion_id: String,$margin_trade_id: String,$comment: String,$created_by: String,$user_id: String,$search: String,$instrument_id: String,$wallet_id: String) { + account_transactions(account_transaction_id:$account_transaction_id,parent_transaction_id:$parent_transaction_id,client_transaction_id:$client_transaction_id,account_id:$account_id,payment_id:$payment_id,currency_id:$currency_id,transaction_class:$transaction_class,type:$type,order_id:$order_id,trade_id:$trade_id,conversion_id:$conversion_id,margin_trade_id:$margin_trade_id,comment:$comment,created_by:$created_by,user_id:$user_id,search:$search,instrument_id:$instrument_id,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -7746,11 +8969,23 @@ async accounts_balances({args, fields, headers}:{args?: AccountsBalancesArgs, f `,args || {},headers,'accounts_balances') } -async accounts({args, fields, headers}:{args?: AccountsArgs, fields:((keyof AccountsResult) | Partial>)[], headers?:HeadersInit}):Promise{ +async account_aggregated_users_balance({args, fields, headers}:{args: AccountAggregatedUsersBalanceArgs, fields:((keyof AccountAggregatedBalance) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($currency_id: String,$user_id: String,$search: String,$hide_zero_balances: ToggleSwitch,$quote_currency_id: String!) { + account_aggregated_users_balance(currency_id:$currency_id,user_id:$user_id,search:$search,hide_zero_balances:$hide_zero_balances,quote_currency_id:$quote_currency_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'account_aggregated_users_balance') + } + +async accounts({args, fields, headers}:{args: AccountsArgs, fields:((keyof AccountsResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($account_id: String,$currency_id: String,$wallet_id: String,$user_id: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput,$hide_zero_balances: ToggleSwitch) { - accounts(account_id:$account_id,currency_id:$currency_id,wallet_id:$wallet_id,user_id:$user_id,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange,hide_zero_balances:$hide_zero_balances) + query($account_id: String,$currency_id: String,$wallet_id: String,$user_id: String,$user_ids: String!,$search: String,$hide_zero_balances: ToggleSwitch) { + accounts(account_id:$account_id,currency_id:$currency_id,wallet_id:$wallet_id,user_id:$user_id,user_ids:$user_ids,search:$search,hide_zero_balances:$hide_zero_balances) { ${buildGraphQLQuery(fields)} } @@ -7761,8 +8996,8 @@ async accounts({args, fields, headers}:{args?: AccountsArgs, fields:((keyof Acc async limits_groups({args, fields, headers}:{args?: LimitsGroupsArgs, fields:((keyof LimitGroup) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($limit_group_id: String,$name: String,$description: String,$pager: PagerInput,$sort: SortInput) { - limits_groups(limit_group_id:$limit_group_id,name:$name,description:$description,pager:$pager,sort:$sort) + query($limit_group_id: String,$name: String,$description: String) { + limits_groups(limit_group_id:$limit_group_id,name:$name,description:$description) { ${buildGraphQLQuery(fields)} } @@ -7773,8 +9008,8 @@ async limits_groups({args, fields, headers}:{args?: LimitsGroupsArgs, fields:(( async fees_groups({args, fields, headers}:{args?: FeesGroupsArgs, fields:((keyof FeeGroup) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($fee_group_id: String,$name: String,$description: String,$beneficiary_user_id: String,$pager: PagerInput,$sort: SortInput) { - fees_groups(fee_group_id:$fee_group_id,name:$name,description:$description,beneficiary_user_id:$beneficiary_user_id,pager:$pager,sort:$sort) + query($fee_group_id: String,$name: String,$description: String,$beneficiary_user_id: String) { + fees_groups(fee_group_id:$fee_group_id,name:$name,description:$description,beneficiary_user_id:$beneficiary_user_id) { ${buildGraphQLQuery(fields)} } @@ -7785,8 +9020,8 @@ async fees_groups({args, fields, headers}:{args?: FeesGroupsArgs, fields:((keyo async payments_fees({args, fields, headers}:{args?: PaymentsFeesArgs, fields:((keyof PaymentFee) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($payment_route_id: String,$currency_id: String,$fee_group_id: String,$pager: PagerInput,$sort: SortInput,$calculation_type: FeeCalculationType) { - payments_fees(payment_route_id:$payment_route_id,currency_id:$currency_id,fee_group_id:$fee_group_id,pager:$pager,sort:$sort,calculation_type:$calculation_type) + query($payment_route_id: String,$currency_id: String,$fee_group_id: String,$calculation_type: FeeCalculationType) { + payments_fees(payment_route_id:$payment_route_id,currency_id:$currency_id,fee_group_id:$fee_group_id,calculation_type:$calculation_type) { ${buildGraphQLQuery(fields)} } @@ -7797,8 +9032,8 @@ async payments_fees({args, fields, headers}:{args?: PaymentsFeesArgs, fields:(( async trading_fees({args, fields, headers}:{args?: TradingFeesArgs, fields:((keyof TradingFee) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($instrument_id: String,$fee_group_id: String,$pager: PagerInput,$sort: SortInput) { - trading_fees(instrument_id:$instrument_id,fee_group_id:$fee_group_id,pager:$pager,sort:$sort) + query($instrument_id: String,$fee_group_id: String) { + trading_fees(instrument_id:$instrument_id,fee_group_id:$fee_group_id) { ${buildGraphQLQuery(fields)} } @@ -7809,8 +9044,8 @@ async trading_fees({args, fields, headers}:{args?: TradingFeesArgs, fields:((ke async payments_routes({args, fields, headers}:{args?: PaymentsRoutesArgs, fields:((keyof PaymentRoute) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($payment_route_id: String,$currency_id: String,$psp_service_id: String,$crypto_network: String,$verification_type: VerificationType,$currency_type: CurrencyType,$pager: PagerInput,$sort: SortInput) { - payments_routes(payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,crypto_network:$crypto_network,verification_type:$verification_type,currency_type:$currency_type,pager:$pager,sort:$sort) + query($payment_route_id: String,$currency_id: String,$psp_service_id: String,$crypto_network: String,$verification_type: VerificationType,$currency_type: CurrencyType) { + payments_routes(payment_route_id:$payment_route_id,currency_id:$currency_id,psp_service_id:$psp_service_id,crypto_network:$crypto_network,verification_type:$verification_type,currency_type:$currency_type) { ${buildGraphQLQuery(fields)} } @@ -7818,33 +9053,33 @@ async payments_routes({args, fields, headers}:{args?: PaymentsRoutesArgs, field `,args || {},headers,'payments_routes') } -async crypto_networks({ fields, headers}:{ fields:((keyof CryptoNetwork) | Partial>)[], headers?:HeadersInit}):Promise{ +async psp_services({ headers}:{ headers?:HeadersInit}={}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` query { - crypto_networks - { - ${buildGraphQLQuery(fields)} - } + psp_services + } - `,{},headers,'crypto_networks') + `,{},headers,'psp_services') } -async psp_services({ headers}:{ headers?:HeadersInit}={}):Promise{ +async crypto_networks({ fields, headers}:{ fields:((keyof CryptoNetwork) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` query { - psp_services - + crypto_networks + { + ${buildGraphQLQuery(fields)} + } } - `,{},headers,'psp_services') + `,{},headers,'crypto_networks') } async payments_limits({args, fields, headers}:{args?: PaymentsLimitsArgs, fields:((keyof PaymentLimit) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($limit_group_id: String,$currency_id: String,$pager: PagerInput,$sort: SortInput) { - payments_limits(limit_group_id:$limit_group_id,currency_id:$currency_id,pager:$pager,sort:$sort) + query($limit_group_id: String,$currency_id: String,$deposit_auto_reject: ToggleSwitch,$withdrawal_auto_reject: ToggleSwitch) { + payments_limits(limit_group_id:$limit_group_id,currency_id:$currency_id,deposit_auto_reject:$deposit_auto_reject,withdrawal_auto_reject:$withdrawal_auto_reject) { ${buildGraphQLQuery(fields)} } @@ -7855,8 +9090,8 @@ async payments_limits({args, fields, headers}:{args?: PaymentsLimitsArgs, field async api_keys({args, fields, headers}:{args?: ApiKeysArgs, fields:((keyof ApiKey) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$pager: PagerInput,$sort: SortInput,$search: String) { - api_keys(user_id:$user_id,pager:$pager,sort:$sort,search:$search) + query($user_id: String,$search: String,$type: ApiKeyTypes) { + api_keys(user_id:$user_id,search:$search,type:$type) { ${buildGraphQLQuery(fields)} } @@ -7867,8 +9102,8 @@ async api_keys({args, fields, headers}:{args?: ApiKeysArgs, fields:((keyof ApiK async cognito_pools({args, fields, headers}:{args?: CognitoPoolsArgs, fields:((keyof CognitoPool) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($search: String,$pager: PagerInput,$sort: SortInput) { - cognito_pools(search:$search,pager:$pager,sort:$sort) + query($search: String) { + cognito_pools(search:$search) { ${buildGraphQLQuery(fields)} } @@ -7879,8 +9114,8 @@ async cognito_pools({args, fields, headers}:{args?: CognitoPoolsArgs, fields:(( async instruments_strategies({args, fields, headers}:{args?: InstrumentsStrategiesArgs, fields:((keyof InstrumentStrategy) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($hedging_adapter_id: String,$instrument_id: String,$search: String,$pager: PagerInput,$sort: SortInput,$is_active: ToggleSwitch,$hedging_enabled: ToggleSwitch) { - instruments_strategies(hedging_adapter_id:$hedging_adapter_id,instrument_id:$instrument_id,search:$search,pager:$pager,sort:$sort,is_active:$is_active,hedging_enabled:$hedging_enabled) + query($hedging_adapter_id: String,$instrument_id: String,$search: String,$is_active: ToggleSwitch,$hedging_enabled: ToggleSwitch) { + instruments_strategies(hedging_adapter_id:$hedging_adapter_id,instrument_id:$instrument_id,search:$search,is_active:$is_active,hedging_enabled:$hedging_enabled) { ${buildGraphQLQuery(fields)} } @@ -7891,8 +9126,8 @@ async instruments_strategies({args, fields, headers}:{args?: InstrumentsStrateg async hedging_orders({args, fields, headers}:{args?: HedgingOrdersArgs, fields:((keyof HedgingOrder) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($hedging_adapter_id: String,$side: OrderSide,$status: HedgingOrderStatus,$error_message: String,$pager: PagerInput,$search: String,$sort: SortInput,$dateRange: DateRangeInput) { - hedging_orders(hedging_adapter_id:$hedging_adapter_id,side:$side,status:$status,error_message:$error_message,pager:$pager,search:$search,sort:$sort,dateRange:$dateRange) + query($hedging_adapter_id: String,$side: OrderSide,$status: HedgingOrderStatus,$error_message: String,$search: String) { + hedging_orders(hedging_adapter_id:$hedging_adapter_id,side:$side,status:$status,error_message:$error_message,search:$search) { ${buildGraphQLQuery(fields)} } @@ -7903,8 +9138,8 @@ async hedging_orders({args, fields, headers}:{args?: HedgingOrdersArgs, fields: async system_settings({args, fields, headers}:{args?: SystemSettingsArgs, fields:((keyof Setting) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($search: String,$pager: PagerInput,$sort: SortInput) { - system_settings(search:$search,pager:$pager,sort:$sort) + query($search: String) { + system_settings(search:$search) { ${buildGraphQLQuery(fields)} } @@ -7988,6 +9223,28 @@ async is_margin_trading_enabled({ headers}:{ headers?:HeadersInit}={}):Promise `,{},headers,'is_margin_trading_enabled') } +async mcp_enabled({ headers}:{ headers?:HeadersInit}={}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query { + mcp_enabled + + } + `,{},headers,'mcp_enabled') + } + +async mcp_parameters({ fields, headers}:{ fields:((keyof McpParameters) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query { + mcp_parameters + { + ${buildGraphQLQuery(fields)} + } + } + `,{},headers,'mcp_parameters') + } + async products_enabled({args, fields, headers}:{args: ProductsEnabledArgs, fields:((keyof ProductsEnabled) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` @@ -8000,6 +9257,18 @@ async products_enabled({args, fields, headers}:{args: ProductsEnabledArgs, fiel `,args || {},headers,'products_enabled') } +async amls_status({ fields, headers}:{ fields:((keyof AmlsStatus) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query { + amls_status + { + ${buildGraphQLQuery(fields)} + } + } + `,{},headers,'amls_status') + } + async user_products_enabled({args, fields, headers}:{args: UserProductsEnabledArgs, fields:((keyof ProductsEnabled) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` @@ -8024,10 +9293,22 @@ async elliptic_filters({ fields, headers}:{ fields:((keyof EllipticFilterConfig `,{},headers,'elliptic_filters') } -async accounts_portfolio_report({args, fields, headers}:{args: AccountsPortfolioReportArgs, fields:((keyof AccountsPortfolioReportItem) | Partial>)[], headers?:HeadersInit}):Promise{ +async search_limits({args, fields, headers}:{args: SearchLimitsArgs, fields:((keyof SearchLimitsResponse) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($entities: SearchLimitsEntity!) { + search_limits(entities:$entities) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'search_limits') + } + +async accounts_portfolio_report({args, fields, headers}:{args: AccountsPortfolioReportArgs, fields:((keyof AccountsPortfolioItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($currencies: [string!]!) { + query($currencies: String!) { accounts_portfolio_report(currencies:$currencies) { ${buildGraphQLQuery(fields)} @@ -8039,8 +9320,8 @@ async accounts_portfolio_report({args, fields, headers}:{args: AccountsPortfoli async orders_summary_report({args, fields, headers}:{args?: OrdersSummaryReportArgs, fields:((keyof OrdersSummaryReportItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$dateRange: DateRangeInput) { - orders_summary_report(user_id:$user_id,dateRange:$dateRange) + query($user_id: String) { + orders_summary_report(user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -8051,8 +9332,8 @@ async orders_summary_report({args, fields, headers}:{args?: OrdersSummaryReport async conversions_summary_report({args, fields, headers}:{args?: ConversionsSummaryReportArgs, fields:((keyof ConversionsSummaryReportItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$dateRange: DateRangeInput) { - conversions_summary_report(user_id:$user_id,dateRange:$dateRange) + query($user_id: String) { + conversions_summary_report(user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -8075,8 +9356,8 @@ async liquidity_report({ fields, headers}:{ fields:((keyof LiquidityReportResul async daily_balances_report({args, fields, headers}:{args?: DailyBalancesReportArgs, fields:((keyof DailyBalancesReportItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$dateRange: DateRangeInput) { - daily_balances_report(user_id:$user_id,dateRange:$dateRange) + query($user_id: String) { + daily_balances_report(user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -8087,8 +9368,8 @@ async daily_balances_report({args, fields, headers}:{args?: DailyBalancesReport async open_exposure_report({args, fields, headers}:{args?: OpenExposureReportArgs, fields:((keyof OpenExposureReportResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($base_currency_id: String,$quote_currency_id: String,$pager: PagerInput) { - open_exposure_report(base_currency_id:$base_currency_id,quote_currency_id:$quote_currency_id,pager:$pager) + query($base_currency_id: String,$quote_currency_id: String) { + open_exposure_report(base_currency_id:$base_currency_id,quote_currency_id:$quote_currency_id) { ${buildGraphQLQuery(fields)} } @@ -8131,8 +9412,8 @@ async all_permission_subjects({ headers}:{ headers?:HeadersInit}={}):Promise>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($search: String,$user_id: String,$subject: String,$pager: PagerInput,$sort: SortInput,$group_by: FindPermissionsShareGroupBy) { - permissions_share(search:$search,user_id:$user_id,subject:$subject,pager:$pager,sort:$sort,group_by:$group_by) + query($search: String,$user_id: String,$subject: String,$group_by: FindPermissionsShareGroupBy) { + permissions_share(search:$search,user_id:$user_id,subject:$subject,group_by:$group_by) { ${buildGraphQLQuery(fields)} } @@ -8167,8 +9448,8 @@ async vasps_list({ fields, headers}:{ fields:((keyof Vasp) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($is_active: ToggleSwitch,$user_id: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - webhooks(is_active:$is_active,user_id:$user_id,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange) + query($is_active: ToggleSwitch,$user_id: String,$search: String) { + webhooks(is_active:$is_active,user_id:$user_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8201,8 +9482,8 @@ async hedging_adapters({ fields, headers}:{ fields:((keyof HedgingAdapter) | Pa async timeline({args, fields, headers}:{args: TimelineArgs, fields:((keyof TimelineEvent) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$event_data: String,$created_at: String,$search: String,$event_name: [NotificationTrigger!]!,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - timeline(user_id:$user_id,event_data:$event_data,created_at:$created_at,search:$search,event_name:$event_name,pager:$pager,sort:$sort,dateRange:$dateRange) + query($user_id: String,$event_data: String,$created_at: String,$search: String,$event_name: NotificationTrigger!) { + timeline(user_id:$user_id,event_data:$event_data,created_at:$created_at,search:$search,event_name:$event_name) { ${buildGraphQLQuery(fields)} } @@ -8213,8 +9494,8 @@ async timeline({args, fields, headers}:{args: TimelineArgs, fields:((keyof Time async trading_limits({args, fields, headers}:{args?: TradingLimitsArgs, fields:((keyof TradingLimit) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($limit_group_id: String,$instrument_id: String,$pager: PagerInput,$sort: SortInput) { - trading_limits(limit_group_id:$limit_group_id,instrument_id:$instrument_id,pager:$pager,sort:$sort) + query($limit_group_id: String,$instrument_id: String) { + trading_limits(limit_group_id:$limit_group_id,instrument_id:$instrument_id) { ${buildGraphQLQuery(fields)} } @@ -8225,8 +9506,8 @@ async trading_limits({args, fields, headers}:{args?: TradingLimitsArgs, fields: async trading_volumes({args, fields, headers}:{args?: TradingVolumesArgs, fields:((keyof UsersTradingVolume) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$instrument_id: String,$pager: PagerInput,$sort: SortInput,$volume: TradingVolumeType) { - trading_volumes(user_id:$user_id,instrument_id:$instrument_id,pager:$pager,sort:$sort,volume:$volume) + query($user_id: String,$instrument_id: String,$volume: TradingVolumeType) { + trading_volumes(user_id:$user_id,instrument_id:$instrument_id,volume:$volume) { ${buildGraphQLQuery(fields)} } @@ -8261,8 +9542,8 @@ async provinces({args, fields, headers}:{args: ProvincesArgs, fields:((keyof Pr async delayed_requests({args, fields, headers}:{args?: DelayedRequestsArgs, fields:((keyof DelayedRequest) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($delayed_request_id: String,$request_name: String,$approval_status: DelayedRequestStatus,$admin_id: String,$admin_email: String,$approved_by: String,$pager: PagerInput,$sort: SortInput,$search: String) { - delayed_requests(delayed_request_id:$delayed_request_id,request_name:$request_name,approval_status:$approval_status,admin_id:$admin_id,admin_email:$admin_email,approved_by:$approved_by,pager:$pager,sort:$sort,search:$search) + query($delayed_request_id: String,$request_name: String,$approval_status: DelayedRequestStatus,$admin_id: String,$admin_email: String,$approved_by: String,$search: String) { + delayed_requests(delayed_request_id:$delayed_request_id,request_name:$request_name,approval_status:$approval_status,admin_id:$admin_id,admin_email:$admin_email,approved_by:$approved_by,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8273,7 +9554,7 @@ async delayed_requests({args, fields, headers}:{args?: DelayedRequestsArgs, fie async kyc_user_data({args, fields, headers}:{args: KycUserDataArgs, fields:((keyof KycUserData) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$search: String,$kyc_properties: [string!]!) { + query($user_id: String,$search: String,$kyc_properties: String!) { kyc_user_data(user_id:$user_id,search:$search,kyc_properties:$kyc_properties) { ${buildGraphQLQuery(fields)} @@ -8309,8 +9590,8 @@ async instruments_strategies_schedule({args, fields, headers}:{args?: Instrumen async currencies_prices({args, fields, headers}:{args?: CurrenciesPricesArgs, fields:((keyof CurrencyPrice) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($base_currency_id: String,$quote_currency_id: String,$source: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - currencies_prices(base_currency_id:$base_currency_id,quote_currency_id:$quote_currency_id,source:$source,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange) + query($base_currency_id: String,$quote_currency_id: String,$source: String,$search: String) { + currencies_prices(base_currency_id:$base_currency_id,quote_currency_id:$quote_currency_id,source:$source,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8321,7 +9602,7 @@ async currencies_prices({args, fields, headers}:{args?: CurrenciesPricesArgs, f async currency_prices({args, fields, headers}:{args: CurrencyPricesArgs, fields:((keyof CurrencyPrice) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($base_currencies: [string!]!,$quote_currency: String!) { + query($base_currencies: String!,$quote_currency: String!) { currency_prices(base_currencies:$base_currencies,quote_currency:$quote_currency) { ${buildGraphQLQuery(fields)} @@ -8343,8 +9624,8 @@ async convert_currency_amount({args, headers}:{args: ConvertCurrencyAmountArgs, async ip_whitelist({args, fields, headers}:{args?: IpWhitelistArgs, fields:((keyof IpWhitelistItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($ip_address: String,$email: String,$ip_whitelist_id: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - ip_whitelist(ip_address:$ip_address,email:$email,ip_whitelist_id:$ip_whitelist_id,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange) + query($ip_address: String,$email: String,$ip_whitelist_id: String,$search: String) { + ip_whitelist(ip_address:$ip_address,email:$email,ip_whitelist_id:$ip_whitelist_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8355,8 +9636,8 @@ async ip_whitelist({args, fields, headers}:{args?: IpWhitelistArgs, fields:((ke async hedging_accounts({args, fields, headers}:{args?: HedgingAccountsArgs, fields:((keyof HedgingAccount) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($hedging_adapter_id: String,$currency_id: String,$is_active: ToggleSwitch,$pager: PagerInput,$sort: SortInput) { - hedging_accounts(hedging_adapter_id:$hedging_adapter_id,currency_id:$currency_id,is_active:$is_active,pager:$pager,sort:$sort) + query($hedging_adapter_id: String,$currency_id: String,$is_active: ToggleSwitch) { + hedging_accounts(hedging_adapter_id:$hedging_adapter_id,currency_id:$currency_id,is_active:$is_active) { ${buildGraphQLQuery(fields)} } @@ -8364,30 +9645,6 @@ async hedging_accounts({args, fields, headers}:{args?: HedgingAccountsArgs, fie `,args || {},headers,'hedging_accounts') } -async margin_account_transactions({args, fields, headers}:{args?: MarginAccountTransactionsArgs, fields:((keyof AccountTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ - if(!headers) headers = {}; - return this.gql_request(gql` - query($account_transaction_id: String,$parent_transaction_id: String,$client_transaction_id: String,$account_id: String,$payment_id: String,$currency_id: String,$transaction_class: AccountTransactionClass,$type: AccountTransactionType,$order_id: String,$trade_id: String,$conversion_id: String,$margin_trade_id: String,$comment: String,$created_by: String,$user_id: String,$search: String,$instrument_id: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput) { - margin_account_transactions(account_transaction_id:$account_transaction_id,parent_transaction_id:$parent_transaction_id,client_transaction_id:$client_transaction_id,account_id:$account_id,payment_id:$payment_id,currency_id:$currency_id,transaction_class:$transaction_class,type:$type,order_id:$order_id,trade_id:$trade_id,conversion_id:$conversion_id,margin_trade_id:$margin_trade_id,comment:$comment,created_by:$created_by,user_id:$user_id,search:$search,instrument_id:$instrument_id,pager:$pager,sort:$sort,dateRange:$dateRange,serialIdRange:$serialIdRange) - { - ${buildGraphQLQuery(fields)} - } - } - `,args || {},headers,'margin_account_transactions') - } - -async margin_users_free_balances({args, fields, headers}:{args: MarginUsersFreeBalancesArgs, fields:((keyof MarginUserFreeBalanceItem) | Partial>)[], headers?:HeadersInit}):Promise{ - if(!headers) headers = {}; - return this.gql_request(gql` - query($users_ids: [string!]!) { - margin_users_free_balances(users_ids:$users_ids) - { - ${buildGraphQLQuery(fields)} - } - } - `,args || {},headers,'margin_users_free_balances') - } - async admin_properties({args, fields, headers}:{args?: AdminPropertiesArgs, fields:((keyof AdminProperty) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` @@ -8400,16 +9657,6 @@ async admin_properties({args, fields, headers}:{args?: AdminPropertiesArgs, fie `,args || {},headers,'admin_properties') } -async admin_mfa_status({ headers}:{ headers?:HeadersInit}={}):Promise{ - if(!headers) headers = {}; - return this.gql_request(gql` - query { - admin_mfa_status - - } - `,{},headers,'admin_mfa_status') - } - async elliptic_screenings({ fields, headers}:{ fields:((keyof KytScreening) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` @@ -8435,8 +9682,8 @@ async elliptic_risk_threshold({ headers}:{ headers?:HeadersInit}={}):Promise>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($screening_id: String,$payment_id: String,$analysis_target: KytAnalysisTarget,$provider: KytProvider!,$pager: PagerInput,$sort: SortInput) { - scorechain_screenings(screening_id:$screening_id,payment_id:$payment_id,analysis_target:$analysis_target,provider:$provider,pager:$pager,sort:$sort) + query($screening_id: String,$payment_id: String,$analysis_target: KytAnalysisTarget,$provider: KytProvider!) { + scorechain_screenings(screening_id:$screening_id,payment_id:$payment_id,analysis_target:$analysis_target,provider:$provider) { ${buildGraphQLQuery(fields)} } @@ -8457,8 +9704,8 @@ async scorechain_minimal_risk_score({ headers}:{ headers?:HeadersInit}={}):Pro async instruments_strategies_rules({args, fields, headers}:{args?: InstrumentsStrategiesRulesArgs, fields:((keyof InstrumentStrategyRule) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($instrument_strategy_id: String,$instrument_id: String,$hedging_adapter_id: String,$search: String,$sort: SortInput,$pager: PagerInput) { - instruments_strategies_rules(instrument_strategy_id:$instrument_strategy_id,instrument_id:$instrument_id,hedging_adapter_id:$hedging_adapter_id,search:$search,sort:$sort,pager:$pager) + query($instrument_strategy_id: String,$instrument_id: String,$hedging_adapter_id: String,$search: String) { + instruments_strategies_rules(instrument_strategy_id:$instrument_strategy_id,instrument_id:$instrument_id,hedging_adapter_id:$hedging_adapter_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8469,8 +9716,8 @@ async instruments_strategies_rules({args, fields, headers}:{args?: InstrumentsS async instruments_strategies_alerts({args, fields, headers}:{args?: InstrumentsStrategiesAlertsArgs, fields:((keyof InstrumentsStrategiesAlert) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($instrument_strategy_id: String,$alert_trigger: InstrumentStrategyAlertTrigger,$instrument_id: String,$hedging_adapter_id: String,$search: String,$pager: PagerInput,$sort: SortInput) { - instruments_strategies_alerts(instrument_strategy_id:$instrument_strategy_id,alert_trigger:$alert_trigger,instrument_id:$instrument_id,hedging_adapter_id:$hedging_adapter_id,search:$search,pager:$pager,sort:$sort) + query($instrument_strategy_id: String,$alert_trigger: InstrumentStrategyAlertTrigger,$instrument_id: String,$hedging_adapter_id: String,$search: String) { + instruments_strategies_alerts(instrument_strategy_id:$instrument_strategy_id,alert_trigger:$alert_trigger,instrument_id:$instrument_id,hedging_adapter_id:$hedging_adapter_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8493,8 +9740,8 @@ async instruments_strategies_alerts_settings({ fields, headers}:{ fields:((keyo async vaults({args, fields, headers}:{args?: VaultsArgs, fields:((keyof Vault) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($vault_id: String,$currency_id: String,$is_active: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch,$withdrawal_policy: VaultWithdrawalPolicy,$search: String,$pager: PagerInput,$sort: SortInput) { - vaults(vault_id:$vault_id,currency_id:$currency_id,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,withdrawal_policy:$withdrawal_policy,search:$search,pager:$pager,sort:$sort) + query($vault_id: String,$currency_id: String,$is_active: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch,$lock_strategy: VaultLockStrategy,$rate_type: VaultRateType,$withdrawal_policy: VaultWithdrawalPolicy,$search: String) { + vaults(vault_id:$vault_id,currency_id:$currency_id,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,lock_strategy:$lock_strategy,rate_type:$rate_type,withdrawal_policy:$withdrawal_policy,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8505,8 +9752,8 @@ async vaults({args, fields, headers}:{args?: VaultsArgs, fields:((keyof Vault) async vaults_average_user_apy({args, headers}:{args?: VaultsAverageUserApyArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String) { - vaults_average_user_apy(user_id:$user_id) + query($user_id: String,$quote_currency_id: String,$wallet_id: String) { + vaults_average_user_apy(user_id:$user_id,quote_currency_id:$quote_currency_id,wallet_id:$wallet_id) } `,args || {},headers,'vaults_average_user_apy') @@ -8515,8 +9762,8 @@ async vaults_average_user_apy({args, headers}:{args?: VaultsAverageUserApyArgs, async estimate_vault_interests({args, headers}:{args: EstimateVaultInterestsArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($vault_id: String!,$amount: Float!,$duration_seconds: Int) { - estimate_vault_interests(vault_id:$vault_id,amount:$amount,duration_seconds:$duration_seconds) + query($vault_id: String!,$amount: Float!,$duration_seconds: Int,$user_id: String) { + estimate_vault_interests(vault_id:$vault_id,amount:$amount,duration_seconds:$duration_seconds,user_id:$user_id) } `,args || {},headers,'estimate_vault_interests') @@ -8525,8 +9772,8 @@ async estimate_vault_interests({args, headers}:{args: EstimateVaultInterestsArg async vaults_accounts({args, fields, headers}:{args?: VaultsAccountsArgs, fields:((keyof VaultAccount) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($vault_account_id: String,$vault_id: String,$user_id: String,$currency_id: String,$hide_zero_balances: ToggleSwitch,$search: String,$pager: PagerInput,$sort: SortInput) { - vaults_accounts(vault_account_id:$vault_account_id,vault_id:$vault_id,user_id:$user_id,currency_id:$currency_id,hide_zero_balances:$hide_zero_balances,search:$search,pager:$pager,sort:$sort) + query($vault_account_id: String,$vault_id: String,$user_id: String,$currency_id: String,$hide_zero_balances: ToggleSwitch,$search: String,$wallet_id: String) { + vaults_accounts(vault_account_id:$vault_account_id,vault_id:$vault_id,user_id:$user_id,currency_id:$currency_id,hide_zero_balances:$hide_zero_balances,search:$search,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -8537,8 +9784,8 @@ async vaults_accounts({args, fields, headers}:{args?: VaultsAccountsArgs, field async vaults_total_user_balance_quoted({args, headers}:{args: VaultsTotalUserBalanceQuotedArgs, headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($quote_currency_id: String!,$user_id: String) { - vaults_total_user_balance_quoted(quote_currency_id:$quote_currency_id,user_id:$user_id) + query($quote_currency_id: String!,$user_id: String,$wallet_id: String) { + vaults_total_user_balance_quoted(quote_currency_id:$quote_currency_id,user_id:$user_id,wallet_id:$wallet_id) } `,args || {},headers,'vaults_total_user_balance_quoted') @@ -8547,8 +9794,8 @@ async vaults_total_user_balance_quoted({args, headers}:{args: VaultsTotalUserBa async vaults_transactions({args, fields, headers}:{args?: VaultsTransactionsArgs, fields:((keyof VaultTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($vault_id: String,$user_id: String,$vault_transaction_id: String,$account_transaction_id: String,$transaction_type: AccountTransactionType,$transaction_class: VaultsTransactionClass,$search: String,$currency_id: String,$pager: PagerInput,$date_range: DateRangeInput,$sort: SortInput) { - vaults_transactions(vault_id:$vault_id,user_id:$user_id,vault_transaction_id:$vault_transaction_id,account_transaction_id:$account_transaction_id,transaction_type:$transaction_type,transaction_class:$transaction_class,search:$search,currency_id:$currency_id,pager:$pager,date_range:$date_range,sort:$sort) + query($vault_id: String,$user_id: String,$vault_transaction_id: String,$account_transaction_id: String,$transaction_type: AccountTransactionType,$transaction_class: VaultsTransactionClass,$search: String,$currency_id: String,$wallet_id: String) { + vaults_transactions(vault_id:$vault_id,user_id:$user_id,vault_transaction_id:$vault_transaction_id,account_transaction_id:$account_transaction_id,transaction_type:$transaction_type,transaction_class:$transaction_class,search:$search,currency_id:$currency_id,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -8559,8 +9806,8 @@ async vaults_transactions({args, fields, headers}:{args?: VaultsTransactionsArg async vaults_transactions_total_sum({args, fields, headers}:{args: VaultsTransactionsTotalSumArgs, fields:((keyof VaultTransactionCalculatedEarned) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($vault_id: String,$user_id: String,$pager: PagerInput,$quote_currency_id: String!) { - vaults_transactions_total_sum(vault_id:$vault_id,user_id:$user_id,pager:$pager,quote_currency_id:$quote_currency_id) + query($vault_id: String,$user_id: String,$quote_currency_id: String!,$wallet_id: String) { + vaults_transactions_total_sum(vault_id:$vault_id,user_id:$user_id,quote_currency_id:$quote_currency_id,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -8643,8 +9890,8 @@ async summary_dashboard({args, fields, headers}:{args: SummaryDashboardArgs, fi async unified_transactions({args, fields, headers}:{args: UnifiedTransactionsArgs, fields:((keyof UnifiedTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($start_date: String!,$end_date: String!,$side: OrderSide,$currencies: [string!]!,$exchanges: [string!]!,$search: String,$pager: PagerInput) { - unified_transactions(start_date:$start_date,end_date:$end_date,side:$side,currencies:$currencies,exchanges:$exchanges,search:$search,pager:$pager) + query($start_date: String!,$end_date: String!,$side: OrderSide,$currencies: String!,$exchanges: String!,$search: String) { + unified_transactions(start_date:$start_date,end_date:$end_date,side:$side,currencies:$currencies,exchanges:$exchanges,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8665,8 +9912,8 @@ async unified_transactions_lps({ headers}:{ headers?:HeadersInit}={}):Promise< async vaults_transactions_requests({args, fields, headers}:{args?: VaultsTransactionsRequestsArgs, fields:((keyof VaultTransactionRequest) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($serial_id: Int,$request_id: String,$user_id: String,$vault_id: String,$transaction_type: AccountTransactionType,$transaction_class: VaultsTransactionClass,$status: VaultTransactionRequestStatus,$approved_by: String,$search: String,$pager: PagerInput,$date_range: DateRangeInput,$sort: SortInput,$currency_id: String) { - vaults_transactions_requests(serial_id:$serial_id,request_id:$request_id,user_id:$user_id,vault_id:$vault_id,transaction_type:$transaction_type,transaction_class:$transaction_class,status:$status,approved_by:$approved_by,search:$search,pager:$pager,date_range:$date_range,sort:$sort,currency_id:$currency_id) + query($serial_id: Int,$request_id: String,$user_id: String,$vault_id: String,$transaction_type: AccountTransactionType,$transaction_class: VaultsTransactionClass,$status: VaultTransactionRequestStatus,$approved_by: String,$lock_id: String,$search: String,$currency_id: String,$wallet_id: String) { + vaults_transactions_requests(serial_id:$serial_id,request_id:$request_id,user_id:$user_id,vault_id:$vault_id,transaction_type:$transaction_type,transaction_class:$transaction_class,status:$status,approved_by:$approved_by,lock_id:$lock_id,search:$search,currency_id:$currency_id,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -8677,8 +9924,8 @@ async vaults_transactions_requests({args, fields, headers}:{args?: VaultsTransa async referrals({args, fields, headers}:{args?: ReferralsArgs, fields:((keyof Referral) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($referral_id: String,$user_id: String,$search: String,$pager: PagerInput,$sort: SortInput) { - referrals(referral_id:$referral_id,user_id:$user_id,search:$search,pager:$pager,sort:$sort) + query($referral_id: String,$user_id: String,$search: String) { + referrals(referral_id:$referral_id,user_id:$user_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8689,8 +9936,8 @@ async referrals({args, fields, headers}:{args?: ReferralsArgs, fields:((keyof R async aggregated_payments_limits({args, fields, headers}:{args?: AggregatedPaymentsLimitsArgs, fields:((keyof AggregatedPaymentLimit) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($limit_group_id: String,$currency_id: String,$pager: PagerInput,$sort: SortInput) { - aggregated_payments_limits(limit_group_id:$limit_group_id,currency_id:$currency_id,pager:$pager,sort:$sort) + query($limit_group_id: String,$currency_id: String,$auto_reject: ToggleSwitch) { + aggregated_payments_limits(limit_group_id:$limit_group_id,currency_id:$currency_id,auto_reject:$auto_reject) { ${buildGraphQLQuery(fields)} } @@ -8701,8 +9948,8 @@ async aggregated_payments_limits({args, fields, headers}:{args?: AggregatedPaym async audit_trail_log({args, fields, headers}:{args?: AuditTrailLogArgs, fields:((keyof AuditTrailLog) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($entity: String,$action: String,$actor_id: String,$actor_ip: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$search: String,$search_expression: String) { - audit_trail_log(entity:$entity,action:$action,actor_id:$actor_id,actor_ip:$actor_ip,pager:$pager,sort:$sort,dateRange:$dateRange,search:$search,search_expression:$search_expression) + query($entity: String,$action: String,$actor_id: String,$actor_ip: String,$search: String) { + audit_trail_log(entity:$entity,action:$action,actor_id:$actor_id,actor_ip:$actor_ip,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8713,8 +9960,8 @@ async audit_trail_log({args, fields, headers}:{args?: AuditTrailLogArgs, fields async my_audit_trail_log({args, fields, headers}:{args?: MyAuditTrailLogArgs, fields:((keyof AuditTrailLog) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($entity: String,$action: String,$actor_id: String,$actor_ip: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput,$search: String,$search_expression: String) { - my_audit_trail_log(entity:$entity,action:$action,actor_id:$actor_id,actor_ip:$actor_ip,pager:$pager,sort:$sort,dateRange:$dateRange,search:$search,search_expression:$search_expression) + query($entity: String,$action: String,$actor_id: String,$actor_ip: String,$search: String) { + my_audit_trail_log(entity:$entity,action:$action,actor_id:$actor_id,actor_ip:$actor_ip,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8725,8 +9972,8 @@ async my_audit_trail_log({args, fields, headers}:{args?: MyAuditTrailLogArgs, f async admin_events_log({args, fields, headers}:{args?: AdminEventsLogArgs, fields:((keyof AdminEventsLog) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($search: String,$action: String,$actor_id: String,$pager: PagerInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput) { - admin_events_log(search:$search,action:$action,actor_id:$actor_id,pager:$pager,dateRange:$dateRange,serialIdRange:$serialIdRange) + query($search: String,$action: String,$actor_id: String) { + admin_events_log(search:$search,action:$action,actor_id:$actor_id) { ${buildGraphQLQuery(fields)} } @@ -8737,8 +9984,8 @@ async admin_events_log({args, fields, headers}:{args?: AdminEventsLogArgs, fiel async referrals_history({args, fields, headers}:{args?: ReferralsHistoryArgs, fields:((keyof ReferralHistory) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($referral_id: String,$parent_user_id: String,$child_user_id: String,$search: String,$date_range: DateRangeInput,$pager: PagerInput,$sort: SortInput) { - referrals_history(referral_id:$referral_id,parent_user_id:$parent_user_id,child_user_id:$child_user_id,search:$search,date_range:$date_range,pager:$pager,sort:$sort) + query($referral_id: String,$parent_user_id: String,$child_user_id: String,$search: String) { + referrals_history(referral_id:$referral_id,parent_user_id:$parent_user_id,child_user_id:$child_user_id,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8769,8 +10016,8 @@ async referrer_total_reward_quoted({args, headers}:{args: ReferrerTotalRewardQu async blacklist_items({args, fields, headers}:{args?: BlacklistItemsArgs, fields:((keyof IpBlacklistItem) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($ip_address: String,$reason: String,$search: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - blacklist_items(ip_address:$ip_address,reason:$reason,search:$search,pager:$pager,sort:$sort,dateRange:$dateRange) + query($ip_address: String,$reason: String,$search: String) { + blacklist_items(ip_address:$ip_address,reason:$reason,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8781,8 +10028,8 @@ async blacklist_items({args, fields, headers}:{args?: BlacklistItemsArgs, field async system_logs({args, fields, headers}:{args?: SystemLogsArgs, fields:((keyof Log) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($stem: String,$event: String,$rrn: String,$pager: PagerInput,$dateRange: DateRangeInput,$serialIdRange: SerialIdRangeInput) { - system_logs(stem:$stem,event:$event,rrn:$rrn,pager:$pager,dateRange:$dateRange,serialIdRange:$serialIdRange) + query($stem: String,$event: String,$rrn: String) { + system_logs(stem:$stem,event:$event,rrn:$rrn) { ${buildGraphQLQuery(fields)} } @@ -8793,8 +10040,8 @@ async system_logs({args, fields, headers}:{args?: SystemLogsArgs, fields:((keyo async logs_config({args, fields, headers}:{args?: LogsConfigArgs, fields:((keyof LogConfig) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($event_name: String,$write_log: ToggleSwitch,$write_console: ToggleSwitch,$is_active: ToggleSwitch,$pager: PagerInput) { - logs_config(event_name:$event_name,write_log:$write_log,write_console:$write_console,is_active:$is_active,pager:$pager) + query($event_name: String,$write_log: ToggleSwitch,$write_console: ToggleSwitch,$is_active: ToggleSwitch) { + logs_config(event_name:$event_name,write_log:$write_log,write_console:$write_console,is_active:$is_active) { ${buildGraphQLQuery(fields)} } @@ -8824,11 +10071,23 @@ async is_trading_allowed({ headers}:{ headers?:HeadersInit}={}):Promise>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($vault_id: String,$currency_id: String,$is_active: ToggleSwitch,$withdrawal_enabled: ToggleSwitch,$deposit_enabled: ToggleSwitch,$lock_strategy: VaultLockStrategy,$rate_type: VaultRateType,$withdrawal_policy: VaultWithdrawalPolicy,$search: String) { + enabled_vaults(vault_id:$vault_id,currency_id:$currency_id,is_active:$is_active,withdrawal_enabled:$withdrawal_enabled,deposit_enabled:$deposit_enabled,lock_strategy:$lock_strategy,rate_type:$rate_type,withdrawal_policy:$withdrawal_policy,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'enabled_vaults') + } + async referrals_transactions_info({args, fields, headers}:{args?: ReferralsTransactionsInfoArgs, fields:((keyof ReferralTransactionInfo) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($account_transaction_id: String,$target_user_id: String,$referral_id: String,$reward_type: ReferralRewardType,$currency_id: String,$is_delayed: ToggleSwitch,$date_range: DateRangeInput,$search: String,$pager: PagerInput,$sort: SortInput) { - referrals_transactions_info(account_transaction_id:$account_transaction_id,target_user_id:$target_user_id,referral_id:$referral_id,reward_type:$reward_type,currency_id:$currency_id,is_delayed:$is_delayed,date_range:$date_range,search:$search,pager:$pager,sort:$sort) + query($account_transaction_id: String,$target_user_id: String,$referral_id: String,$reward_type: ReferralRewardType,$currency_id: String,$is_delayed: ToggleSwitch,$search: String) { + referrals_transactions_info(account_transaction_id:$account_transaction_id,target_user_id:$target_user_id,referral_id:$referral_id,reward_type:$reward_type,currency_id:$currency_id,is_delayed:$is_delayed,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8872,11 +10131,11 @@ async required_actions({ fields, headers}:{ fields:((keyof RequiredActions) | P `,{},headers,'required_actions') } -async trading_grids({args, fields, headers}:{args?: TradingGridsArgs, fields:((keyof TradingGrid) | Partial>)[], headers?:HeadersInit}):Promise{ +async trading_grids({args, fields, headers}:{args: TradingGridsArgs, fields:((keyof TradingGrid) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($instrument_id: String,$status: TradingGridStatus,$price_from: Float,$price_to: Float,$pager: PagerInput,$sort: SortInput,$wallet_id: String) { - trading_grids(instrument_id:$instrument_id,status:$status,price_from:$price_from,price_to:$price_to,pager:$pager,sort:$sort,wallet_id:$wallet_id) + query($instrument_id: String,$status: TradingGridStatus,$price_from: Float,$price_to: Float,$wallet_id: String!) { + trading_grids(instrument_id:$instrument_id,status:$status,price_from:$price_from,price_to:$price_to,wallet_id:$wallet_id) { ${buildGraphQLQuery(fields)} } @@ -8887,8 +10146,8 @@ async trading_grids({args, fields, headers}:{args?: TradingGridsArgs, fields:(( async trading_grid_levels({args, fields, headers}:{args?: TradingGridLevelsArgs, fields:((keyof TradingGridLevel) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($instrument_id: String,$status: TradingGridLevelStatus,$sell_order_id: String,$buy_order_id: String,$trading_grid_id: String,$pager: PagerInput,$sort: SortInput) { - trading_grid_levels(instrument_id:$instrument_id,status:$status,sell_order_id:$sell_order_id,buy_order_id:$buy_order_id,trading_grid_id:$trading_grid_id,pager:$pager,sort:$sort) + query($instrument_id: String,$status: TradingGridLevelStatus,$sell_order_id: String,$buy_order_id: String,$trading_grid_id: String) { + trading_grid_levels(instrument_id:$instrument_id,status:$status,sell_order_id:$sell_order_id,buy_order_id:$buy_order_id,trading_grid_id:$trading_grid_id) { ${buildGraphQLQuery(fields)} } @@ -8921,8 +10180,8 @@ async estimate_payment_notional_fee({args, headers}:{args: EstimatePaymentNotio async cash_holdings_report({args, fields, headers}:{args?: CashHoldingsReportArgs, fields:((keyof CashHoldingsReport) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($user_id: String,$date_range: DateRangeInput) { - cash_holdings_report(user_id:$user_id,date_range:$date_range) + query($user_id: String) { + cash_holdings_report(user_id:$user_id) { ${buildGraphQLQuery(fields)} } @@ -8930,11 +10189,43 @@ async cash_holdings_report({args, fields, headers}:{args?: CashHoldingsReportAr `,args || {},headers,'cash_holdings_report') } +async totalValueOfCryptoAssetsInUSD({args, headers}:{args?: TotalValueOfCryptoAssetsInUSDArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($user_id: String,$currency_id: String,$hide_zero_balances: ToggleSwitch,$wallet_id: String) { + totalValueOfCryptoAssetsInUSD(user_id:$user_id,currency_id:$currency_id,hide_zero_balances:$hide_zero_balances,wallet_id:$wallet_id) + + } + `,args || {},headers,'totalValueOfCryptoAssetsInUSD') + } + +async totalValueOfCryptoAssetsInEUR({args, headers}:{args?: TotalValueOfCryptoAssetsInEURArgs, headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($user_id: String,$currency_id: String,$hide_zero_balances: ToggleSwitch,$wallet_id: String) { + totalValueOfCryptoAssetsInEUR(user_id:$user_id,currency_id:$currency_id,hide_zero_balances:$hide_zero_balances,wallet_id:$wallet_id) + + } + `,args || {},headers,'totalValueOfCryptoAssetsInEUR') + } + +async total_assets_value({args, fields, headers}:{args: TotalAssetsValueArgs, fields:((keyof TotalAssetsValue) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($user_id: String,$currency_id: String!) { + total_assets_value(user_id:$user_id,currency_id:$currency_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'total_assets_value') + } + async trade_tiers({args, fields, headers}:{args?: TradeTiersArgs, fields:((keyof TradeTier) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($tier_id: String,$fee_group_id: String,$name: String,$pager: PagerInput,$sort: SortInput) { - trade_tiers(tier_id:$tier_id,fee_group_id:$fee_group_id,name:$name,pager:$pager,sort:$sort) + query($tier_id: String,$name: String,$search: String) { + trade_tiers(tier_id:$tier_id,name:$name,search:$search) { ${buildGraphQLQuery(fields)} } @@ -8942,23 +10233,35 @@ async trade_tiers({args, fields, headers}:{args?: TradeTiersArgs, fields:((keyo `,args || {},headers,'trade_tiers') } -async trade_volumes({args, fields, headers}:{args?: TradeVolumesArgs, fields:((keyof TradesVolume) | Partial>)[], headers?:HeadersInit}):Promise{ +async tier_fees({args, fields, headers}:{args?: TierFeesArgs, fields:((keyof TierFee) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($tier_fee_id: String,$tier_id: String,$instrument_id: String,$search: String) { + tier_fees(tier_fee_id:$tier_fee_id,tier_id:$tier_id,instrument_id:$instrument_id,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'tier_fees') + } + +async trades_rolling_volumes({args, fields, headers}:{args?: TradesRollingVolumesArgs, fields:((keyof TradeRollingVolume) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($serial_id: Int,$user_id: String,$pager: PagerInput,$sort: SortInput) { - trade_volumes(serial_id:$serial_id,user_id:$user_id,pager:$pager,sort:$sort) + query($serial_id: Int,$user_id: String) { + trades_rolling_volumes(serial_id:$serial_id,user_id:$user_id) { ${buildGraphQLQuery(fields)} } } - `,args || {},headers,'trade_volumes') + `,args || {},headers,'trades_rolling_volumes') } -async wallets({args, fields, headers}:{args?: WalletsArgs, fields:((keyof Wallet) | Partial>)[], headers?:HeadersInit}):Promise{ +async wallets({args, fields, headers}:{args?: WalletsArgs, fields:((keyof WalletsResult) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` - query($wallet_id: String,$user_id: String,$name: String,$description: String,$pager: PagerInput,$sort: SortInput,$dateRange: DateRangeInput) { - wallets(wallet_id:$wallet_id,user_id:$user_id,name:$name,description:$description,pager:$pager,sort:$sort,dateRange:$dateRange) + query($wallet_id: String,$user_id: String,$name: String,$description: String,$is_active: String,$type: String) { + wallets(wallet_id:$wallet_id,user_id:$user_id,name:$name,description:$description,is_active:$is_active,type:$type) { ${buildGraphQLQuery(fields)} } @@ -8966,6 +10269,150 @@ async wallets({args, fields, headers}:{args?: WalletsArgs, fields:((keyof Walle `,args || {},headers,'wallets') } +async wallet_transfers({args, fields, headers}:{args?: WalletTransfersArgs, fields:((keyof WalletTransfer) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($user_id: String,$from_wallet_id: String,$to_wallet_id: String,$currency_id: String,$transfer_id: String) { + wallet_transfers(user_id:$user_id,from_wallet_id:$from_wallet_id,to_wallet_id:$to_wallet_id,currency_id:$currency_id,transfer_id:$transfer_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'wallet_transfers') + } + +async vouchers({args, fields, headers}:{args?: VouchersArgs, fields:((keyof Voucher) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($search: String,$voucher_id: String,$status: VoucherStatus) { + vouchers(search:$search,voucher_id:$voucher_id,status:$status) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'vouchers') + } + +async voucher_codes({args, fields, headers}:{args?: VoucherCodesArgs, fields:((keyof VoucherCode) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($search: String,$voucher_id: String,$user_id: String,$code: String,$status: VoucherCodeStatus) { + voucher_codes(search:$search,voucher_id:$voucher_id,user_id:$user_id,code:$code,status:$status) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'voucher_codes') + } + +async yield_adapters({args, fields, headers}:{args?: YieldAdaptersArgs, fields:((keyof YieldAdapter) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($yield_adapter_id: String,$service_url: String,$sync: ToggleSwitch,$search: String) { + yield_adapters(yield_adapter_id:$yield_adapter_id,service_url:$service_url,sync:$sync,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'yield_adapters') + } + +async yield_transactions({args, fields, headers}:{args?: YieldTransactionsArgs, fields:((keyof YieldTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($yield_transaction_id: String,$type: YieldTransactionType,$status: YieldTransactionStatus,$yield_adapter_id: String,$vault_transaction_request_id: String,$search: String) { + yield_transactions(yield_transaction_id:$yield_transaction_id,type:$type,status:$status,yield_adapter_id:$yield_adapter_id,vault_transaction_request_id:$vault_transaction_request_id,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'yield_transactions') + } + +async vaults_strategies({args, fields, headers}:{args?: VaultsStrategiesArgs, fields:((keyof VaultStrategy) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($vault_strategy_id: String,$vault_id: String,$yield_adapter_id: String,$yield_sync: ToggleSwitch,$funding_sync: ToggleSwitch,$search: String,$currency_id: String) { + vaults_strategies(vault_strategy_id:$vault_strategy_id,vault_id:$vault_id,yield_adapter_id:$yield_adapter_id,yield_sync:$yield_sync,funding_sync:$funding_sync,search:$search,currency_id:$currency_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'vaults_strategies') + } + +async pts_account_transactions({args, fields, headers}:{args?: PtsAccountTransactionsArgs, fields:((keyof PTSAccountTransaction) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($pts_transaction_id: String,$account_id: String,$target_account: PTSTargetAccount,$type: AccountTransactionType,$comment: String,$user_id: String,$currency_id: String,$search: String) { + pts_account_transactions(pts_transaction_id:$pts_transaction_id,account_id:$account_id,target_account:$target_account,type:$type,comment:$comment,user_id:$user_id,currency_id:$currency_id,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'pts_account_transactions') + } + +async trading_view_templates({args, fields, headers}:{args?: TradingViewTemplatesArgs, fields:((keyof TradingViewTemplateModel) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($template_id: String,$template_type: SpotMargin,$instrument_id: String,$periodicity: InstrumentHistoryPeriodicity) { + trading_view_templates(template_id:$template_id,template_type:$template_type,instrument_id:$instrument_id,periodicity:$periodicity) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'trading_view_templates') + } + +async otc_orders({args, fields, headers}:{args?: OtcOrdersArgs, fields:((keyof OtcOrder) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($order_id: String,$instrument_id: String,$side: OtcOrderSide,$status: OtcOrderStatus,$search: String) { + otc_orders(order_id:$order_id,instrument_id:$instrument_id,side:$side,status:$status,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'otc_orders') + } + +async admin_otc_orders({args, fields, headers}:{args?: AdminOtcOrdersArgs, fields:((keyof OtcOrder) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($status: OtcOrderStatus,$search: String,$order_id: String,$instrument_id: String,$side: OtcOrderSide,$user_id: String) { + admin_otc_orders(status:$status,search:$search,order_id:$order_id,instrument_id:$instrument_id,side:$side,user_id:$user_id) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'admin_otc_orders') + } + +async otc_hedging_orders({args, fields, headers}:{args?: OtcHedgingOrdersArgs, fields:((keyof OtcHedgingOrder) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($order_id: String,$user_id: String,$instrument_id: String,$side: OtcOrderSide,$status: OtcOrderStatus,$search: String) { + otc_hedging_orders(order_id:$order_id,user_id:$user_id,instrument_id:$instrument_id,side:$side,status:$status,search:$search) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'otc_hedging_orders') + } + +async otc_hedging_balances({args, fields, headers}:{args: OtcHedgingBalancesArgs, fields:((keyof OtcHedgingBalance) | Partial>)[], headers?:HeadersInit}):Promise{ + if(!headers) headers = {}; + return this.gql_request(gql` + query($instruments: String!) { + otc_hedging_balances(instruments:$instruments) + { + ${buildGraphQLQuery(fields)} + } + } + `,args || {},headers,'otc_hedging_balances') + } + async user_ip_geo_history({args, fields, headers}:{args?: UserIpGeoHistoryArgs, fields:((keyof UserIpGeoHistory) | Partial>)[], headers?:HeadersInit}):Promise{ if(!headers) headers = {}; return this.gql_request(gql` @@ -9005,4 +10452,5 @@ async user_ip_geo_history_detail({args, fields, headers}:{args: UserIpGeoHistor } + export const SdkClientInstance = new SdkClient('https://vakotrade.cryptosrvc-dev.com/graphql'); \ No newline at end of file