{"openapi": "3.1.0", "info": {"title": "Cornix API", "version": "1.0.0", "description": ""}, "paths": {"/app/openapi.json": {"get": {"operationId": "cryptosite_ninja_app_openapi", "summary": "Openapi", "parameters": [], "responses": {"200": {"description": "OK"}}}}, "/app/ping/": {"get": {"operationId": "cryptosite_ninja_app_ping", "summary": "Ping", "parameters": [], "responses": {"200": {"description": "OK"}}}}, "/app/get_portfolio_data/": {"post": {"operationId": "cryptoview_new_views_portfolio_get_coin_distribution", "summary": "Get Coin Distribution", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Accounts"], "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/export_signals/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_export_signals", "summary": "Export Signals", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ExportSignalsSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_sub_group_signal_frequency/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_get_sub_group_signal_frequency", "summary": "Get Sub Group Signal Frequency", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "security": [{"Token": []}]}}, "/app/create_personal_sub_group/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_create_personal_sub_group", "summary": "Create Personal Sub Group", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateSubGroupSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/edit_personal_sub_group/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_edit_personal_sub_group", "summary": "Edit Personal Sub Group", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EditSubGroupSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/delete_personal_sub_group/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_delete_personal_sub_group", "summary": "Delete Personal Sub Group", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteSubGroupSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/create_sub_group/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_create_sub_group", "summary": "Create Sub Group", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateSubGroupSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/edit_sub_group/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_edit_sub_group", "summary": "Edit Sub Group", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EditSubGroupSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/delete_sub_group/": {"post": {"operationId": "cryptoview_new_views_signal_signals_page_delete_sub_group", "summary": "Delete Sub Group", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteSubGroupSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_whitelist_ips/": {"post": {"operationId": "cryptoview_new_views_client_configuration_get_whitelist_ips_from_request", "summary": "Get Whitelist Ips From Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Accounts"], "security": [{"CreateAccountInviteToken": []}, {"Token": []}]}}, "/app/add_client/": {"post": {"operationId": "cryptoview_new_views_client_configuration_add_client_from_request", "summary": "Add Client From Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Accounts"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AddAccountSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/change_clients_status/": {"post": {"operationId": "cryptoview_new_views_client_configuration_change_clients_status", "summary": "Change Clients Status", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Accounts"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChangeClientsStatusSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_clients_list/": {"post": {"operationId": "cryptoview_new_views_client_configuration_get_clients_list", "summary": "Get Clients List", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Accounts"], "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/get_exchanges_list/": {"post": {"operationId": "cryptoview_new_views_client_configuration_get_exchanges_list", "summary": "Get Exchanges List", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Account Configuration"], "security": [{"CreateAccountInviteToken": []}, {"Token": []}]}}, "/app/get_account_configuration/": {"post": {"operationId": "cryptoview_new_views_client_configuration_get_account_configuration", "summary": "Get Account Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Account Configuration"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AccountConfigurationSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/set_account_configuration/": {"post": {"operationId": "cryptoview_new_views_client_configuration_set_account_configuration", "summary": "Set Account Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Account Configuration"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SetAccountConfigurationSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/create_account_invite/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_create_account_invite", "summary": "Create Account Invite", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateAccountInviteSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/delete_account_invite/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_delete_account_invite", "summary": "Delete Account Invite", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AccountInviteTokenSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/set_asset_manager_configuration/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_set_asset_manager_configuration", "summary": "Set Asset Manager Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AssetManagerConfigurationSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_asset_manager_configuration/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_get_asset_manager_configuration", "summary": "Get Asset Manager Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "security": [{"Token": []}]}}, "/app/get_account_invites/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_get_account_invites", "summary": "Get Account Invites", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "security": [{"Token": []}]}}, "/app/get_account_invite/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_get_account_invite", "summary": "Get Account Invite", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "security": [{"CreateAccountInviteToken": []}]}}, "/app/create_account_from_invite/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_create_account_from_invite", "summary": "Create Account From Invite", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AddAccountFromInviteSchema"}}}, "required": true}, "security": [{"CreateAccountInviteToken": []}]}}, "/app/finalize_account_invite/": {"post": {"operationId": "cryptoview_new_views_asset_manager_client_invites_finalize_account_invite", "summary": "Finalize Account Invite", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "security": [{"CreateAccountInviteToken": []}]}}, "/app/get_whitelabel_configuration/": {"get": {"operationId": "cryptoview_new_views_asset_manager_client_invites_get_whitelabel_configuration", "summary": "Get Whitelabel Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "security": [{"Token": []}, {"CreateAccountInviteToken": []}]}}, "/app/generate_asset_manager_invoice/": {"post": {"operationId": "cryptoview_new_views_asset_manager_invoices_generate_asset_manager_invoice", "summary": "Generate Asset Manager Invoice", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GenerateInvoiceSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_asset_manager_invoices/": {"post": {"operationId": "cryptoview_new_views_asset_manager_invoices_get_asset_manager_invoices", "summary": "Get Asset Manager Invoices", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "security": [{"Token": []}]}}, "/app/update_asset_manager_invoice_visibility/": {"post": {"operationId": "cryptoview_new_views_asset_manager_invoices_update_asset_manager_invoice_visibility", "summary": "Update Asset Manager Invoice Visibility", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateInvoiceVisibilitySchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/update_asset_manager_invoice_status/": {"post": {"operationId": "cryptoview_new_views_asset_manager_invoices_update_asset_manager_invoice_status", "summary": "Update Asset Manager Invoice Status", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Asset Manager"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateInvoiceStatusSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_login_devices/": {"post": {"operationId": "cryptoview_new_views_login_devices_get_login_devices", "summary": "Get Login Devices", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "security": [{"Token": []}]}}, "/app/get_mcp_sessions/": {"post": {"operationId": "cryptoview_new_views_login_devices_get_mcp_sessions", "summary": "Get Mcp Sessions", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "security": [{"Token": []}]}}, "/app/revoke_login_device/": {"post": {"operationId": "cryptoview_new_views_login_devices_revoke_login_device", "summary": "Revoke Login Device", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RevokeLoginDeviceSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_user/": {"post": {"operationId": "cryptoview_new_views_authenticate_get_user", "summary": "Get User", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/get_user_lite/": {"post": {"operationId": "cryptoview_new_views_authenticate_get_user_lite", "summary": "Get User Lite", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "security": [{"Token": []}]}}, "/app/set_allow_sending_pm/": {"post": {"operationId": "cryptoview_new_views_authenticate_set_allow_sending_pm", "summary": "Set Allow Sending Pm", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Telegram"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SetAllowSendingPMSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/accept_terms/": {"post": {"operationId": "cryptoview_new_views_authenticate_accept_terms", "summary": "Accept Terms", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "security": [{"Token": []}]}}, "/app/connect_email/": {"post": {"operationId": "cryptoview_new_views_authenticate_connect_email", "summary": "Connect Email", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConnectEmailSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/confirm_email_connection/": {"post": {"operationId": "cryptoview_new_views_authenticate_confirm_email_connection", "summary": "Confirm Email Connection", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConfirmEmailConnectionSchema"}}}, "required": true}}}, "/app/get_trade_data/": {"post": {"operationId": "cryptoview_new_views_trade_trade_extra_info_get_trade_data", "summary": "Returns all details for a single trade.", "parameters": [], "responses": {"200": {"description": "OK"}}, "description": "Returns all details for a single trade.", "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/TradeDataSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/edit_trade/": {"post": {"operationId": "cryptoview_new_views_trade_actions_edit_edit_trade_orders", "summary": "Edits the entry, take-profit, and stop-loss orders for an open trade.", "parameters": [], "responses": {"200": {"description": "OK"}}, "description": "Edits the entry, take-profit, and stop-loss orders for an open trade.", "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EditTradeSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/cancel_trade/": {"post": {"operationId": "cryptoview_new_views_trade_actions_cancel_cancel_trade", "summary": "Cancels an open trade and optionally sells part of the existing position.", "parameters": [], "responses": {"200": {"description": "OK"}}, "description": "Cancels an open trade and optionally sells part of the existing position.", "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CancelTradeSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/create_trade/": {"post": {"operationId": "cryptoview_new_views_trade_actions_create_create_trade", "summary": "Creates a manual trade for one of the user accounts.", "parameters": [], "responses": {"200": {"description": "OK"}}, "description": "Creates a manual trade for one of the user accounts.", "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateTradeSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/delete_bot/": {"post": {"operationId": "cryptoview_new_views_bots_bots_delete_bot", "summary": "Delete Bot", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteBotSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/bulk_change_bots_status/": {"post": {"operationId": "cryptoview_new_views_bots_bots_bulk_change_bots_status", "summary": "Bulk Change Bots Status", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkChangeBotsStatusSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/get_bots_graphs_data/": {"post": {"operationId": "cryptoview_new_views_bots_bots_get_bots_graphs_data", "summary": "Get Bots Graphs Data", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DCABotGraphDataFilterSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_bots_data/": {"post": {"operationId": "cryptoview_new_views_bots_bots_get_bots", "summary": "Get Bots", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DCABotFilterSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/get_bot_type_to_ids/": {"post": {"operationId": "cryptoview_new_views_bots_bots_get_bot_type_to_ids_view", "summary": "Get Bot Type To Ids View", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BotTypeToIdsFilterSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/create_bots/": {"post": {"operationId": "cryptoview_new_views_bots_bots_create_bots", "summary": "Create Bots", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DCABotSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/edit_bots/": {"post": {"operationId": "cryptoview_new_views_bots_bots_edit_bots", "summary": "Edit Bots", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EditBotsSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/set_sub_group_default_configuration/": {"post": {"operationId": "cryptoview_new_views_bots_bots_set_sub_group_default_configuration", "summary": "Set Sub Group Default Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Admin Panel"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SetSubGroupTradingConfigurationSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_sub_group_default_configuration/": {"post": {"operationId": "cryptoview_new_views_bots_bots_get_sub_group_default_configuration", "summary": "Get Sub Group Default Configuration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Admin Panel"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetSubGroupTradingConfigurationSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_bot_uuid/": {"post": {"operationId": "cryptoview_new_views_bots_bots_get_bot_uuid", "summary": "Get Bot Uuid", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Bots"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetBotUuidSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_trades_graphs_data/": {"post": {"operationId": "cryptoview_new_views_trade_trades_page_get_trades_graphs_data", "summary": "Get Trades Graphs Data", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/TradesGraphDataSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_open_trades_data/": {"post": {"operationId": "cryptoview_new_views_trade_trades_page_get_open_trades_data", "summary": "Get Open Trades Data", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/OpenTradesDataSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/get_closed_trades_data/": {"post": {"operationId": "cryptoview_new_views_trade_trades_page_get_closed_trades_data", "summary": "Get Closed Trades Data", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ClosedTradesDataSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/export_trades/": {"post": {"operationId": "cryptoview_new_views_trade_trades_page_export_trades", "summary": "Export Trades", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Trades"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ExportTradesSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_marketplace_info_full/": {"post": {"operationId": "cryptoview_new_views_marketplace_marketplace_get_marketplace_info_full", "summary": "Get Marketplace Info Full", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Marketplace"], "security": [{"Token": []}]}}, "/app/get_client_channels_information/": {"post": {"operationId": "cryptoview_new_views_marketplace_marketplace_get_client_channels_information", "summary": "Get Client Channels Information", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Marketplace"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/AccountsChannelsSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_exchange_channels_information/": {"post": {"operationId": "cryptoview_new_views_marketplace_marketplace_get_exchange_channels_information", "summary": "Get Exchange Channels Information", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Marketplace"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ExchangesChannelsSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/start_backtesting_run/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_start_backtesting_run", "summary": "Start Backtesting Run", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "security": [{"Token": []}]}}, "/app/get_backtesting_run/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_get_backtesting_run", "summary": "Get Backtesting Run", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BacktestingRunSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_backtesting_runs/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_get_backtesting_runs", "summary": "Get Backtesting Runs", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/BacktestingRunsSchema"}, {"type": "null"}]}}}, "required": false}, "security": [{"Token": []}]}}, "/app/delete_backtesting_run/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_delete_backtesting_run", "summary": "Delete Backtesting Run", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BacktestingRunSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_backtesting_trades_activities/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_get_backtesting_trades_activities", "summary": "Get Backtesting Trades Activities", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BacktestingRunSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_backtesting_periodic_stats/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_get_backtesting_periodic_stats", "summary": "Get Backtesting Periodic Stats", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BacktestingRunSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_minimum_backtesting_timestamp/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_get_minimum_backtesting_timestamp_old", "summary": "Get Minimum Backtesting Timestamp Old", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "security": [{"Token": []}]}, "get": {"operationId": "cryptoview_new_views_bots_backtesting_get_minimum_backtesting_timestamp", "summary": "Get Minimum Backtesting Timestamp", "parameters": [{"in": "query", "name": "exchange", "schema": {"title": "Exchange", "type": "string"}, "required": true}, {"in": "query", "name": "symbol", "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol"}, "required": false}, {"in": "query", "name": "include_site_db", "schema": {"default": false, "title": "Include Site Db", "type": "boolean"}, "required": false}], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"]}}, "/app/export_backtest_trades/": {"post": {"operationId": "cryptoview_new_views_bots_backtesting_export_backtest_trades", "summary": "Export Backtest Trades", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Backtesting"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ExportBacktestSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/generate_experience_connection_request/": {"post": {"operationId": "cryptoview_new_views_experience_generate_experience_connection_request", "summary": "Generate Experience Connection Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Experience"]}}, "/app/check_experience_connection_request/": {"post": {"operationId": "cryptoview_new_views_experience_check_experience_connection_request", "summary": "Check Experience Connection Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Experience"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CheckExperienceConnectionRequestSchema"}}}, "required": true}}}, "/app/change_experience_connection_status/": {"post": {"operationId": "cryptoview_new_views_experience_change_experience_connection_status", "summary": "Change Experience Connection Status", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Experience"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChangeExperienceConnectionStatusSchema"}}}, "required": true}}}, "/app/request_asset_manager_demo/": {"post": {"operationId": "cryptoview_new_views_marketing_request_asset_manager_demo", "summary": "Request Asset Manager Demo", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Marketing"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RequestAssetManagerDemoSchema"}}}, "required": true}}}, "/app/.well-known/oauth-authorization-server/app": {"get": {"operationId": "oauth_authorization_server_metadata_app", "summary": "Oauth Authorization Server Metadata", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/.well-known/oauth-authorization-server": {"get": {"operationId": "oauth_authorization_server_metadata", "summary": "Oauth Authorization Server Metadata", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/mcp/.well-known/openid-configuration": {"get": {"operationId": "mcp_openid_configuration", "summary": "Mcp Authorization Server Metadata", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/mcp/.well-known/oauth-authorization-server": {"get": {"operationId": "mcp_authorization_server_metadata", "summary": "Mcp Authorization Server Metadata", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/.well-known/oauth-protected-resource": {"get": {"operationId": "cryptoview_new_views_oauth_oauth_protected_resource_metadata", "summary": "Oauth Protected Resource Metadata", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/oauth/register/": {"post": {"operationId": "cryptoview_new_views_oauth_oauth_client_registration", "summary": "Oauth Client Registration", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/oauth/authorize/": {"post": {"operationId": "oauth_authorize_post", "summary": "Oauth Authorize", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}, "get": {"operationId": "oauth_authorize_get", "summary": "Oauth Authorize", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/oauth/token/": {"post": {"operationId": "cryptoview_new_views_oauth_oauth_token", "summary": "Oauth Token", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["OAuth"]}}, "/app/.well-known/oauth-protected-resource/mcp": {"get": {"operationId": "cryptoview_new_views_mcp_mcp_protected_resource_metadata", "summary": "Mcp Protected Resource Metadata", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["MCP"]}}, "/app/mcp": {"get": {"operationId": "cryptoview_new_views_mcp_mcp_get", "summary": "Mcp Get", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["MCP"]}, "post": {"operationId": "cryptoview_new_views_mcp_mcp_endpoint", "summary": "Mcp Endpoint", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["MCP"]}}, "/app/create_payout_method/": {"post": {"operationId": "cryptoview_new_views_payout_method_create_payout_method", "summary": "Create Payout Method", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Payout Methods"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreatePayoutMethodSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/edit_payout_method/": {"post": {"operationId": "cryptoview_new_views_payout_method_edit_payout_method", "summary": "Edit Payout Method", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Payout Methods"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/EditPayoutMethodSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_payout_methods/": {"post": {"operationId": "cryptoview_new_views_payout_method_get_payout_methods", "summary": "Get Payout Methods", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Payout Methods"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetPayoutMethodsSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_auth_url/": {"post": {"operationId": "cryptoview_new_views_quick_connect_quick_connect_get_auth_url", "summary": "Get Auth Url", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Quick Connect"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetAuthUrlSchema"}}}, "required": true}, "security": [{"CreateAccountInviteToken": []}, {"Token": []}]}}, "/app/create_access_token/": {"post": {"operationId": "cryptoview_new_views_quick_connect_quick_connect_create_access_token", "summary": "Create Access Token", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Quick Connect"], "security": [{"CreateAccountInviteToken": []}, {"Token": []}]}}, "/app/check_account_status/": {"post": {"operationId": "cryptoview_new_views_quick_connect_quick_connect_check_account_status", "summary": "Check Account Status", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Quick Connect"], "security": [{"CreateAccountInviteToken": []}, {"Token": []}]}}, "/app/create_api_keys/": {"post": {"operationId": "cryptoview_new_views_quick_connect_quick_connect_create_api_keys", "summary": "Create Api Keys", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Quick Connect"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateApiKeysSchema"}}}, "required": true}, "security": [{"CreateAccountInviteToken": []}, {"Token": []}]}}, "/app/get_telegram_bot_username/": {"post": {"operationId": "cryptoview_new_views_telegram_get_telegram_bot_username_request", "summary": "Get Telegram Bot Username Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Telegram"]}}, "/app/mark_visit/": {"post": {"operationId": "cryptoview_new_views_utm_mark_visit", "summary": "Mark Visit", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["UTM"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/UtmSchema"}}}, "required": true}}}, "/app/get_position_extra_general_data/": {"post": {"operationId": "cryptoview_new_views_account_extra_info_get_position_extra_general_data", "summary": "Get Position Extra General Data", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Accounts"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PositionExtraGeneralDataSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_email_preferences/": {"post": {"operationId": "cryptoview_new_views_app_settings_get_email_preferences", "summary": "Get Email Preferences", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "security": [{"Token": []}]}}, "/app/set_email_preferences/": {"post": {"operationId": "cryptoview_new_views_app_settings_set_email_preferences", "summary": "Set Email Preferences", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Authenticate"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SetEmailPreferencesSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_job_results/": {"post": {"operationId": "cryptoview_new_views_general_get_job_results", "summary": "Polls a background job started by calling an endpoint with run_as_job=true.", "parameters": [], "responses": {"200": {"description": "OK"}}, "description": "Polls a background job started by calling an endpoint with run_as_job=true.", "tags": ["General"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetJobResultsSchema"}}}, "required": true}, "security": [{"Token": []}, {"MCPToken": []}]}}, "/app/get_cancellation_reasons/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_get_cancellation_reasons", "summary": "Get Cancellation Reasons", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "security": [{"Token": []}]}}, "/app/save_cancellation_reason/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_save_cancellation_reason", "summary": "Save Cancellation Reason", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SaveCancellationReasonRequest"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_cancel_subscription_promo_code/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_get_cancel_subscription_promo_code", "summary": "Get Cancel Subscription Promo Code", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "security": [{"Token": []}]}}, "/app/get_current_discount/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_get_current_discount", "summary": "Get Current Discount", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "security": [{"Token": []}]}}, "/app/get_payment_link/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_get_payment_link_request", "summary": "Get Payment Link Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/GetPaymentLinkSchema"}, {"type": "null"}]}}}, "required": false}, "security": [{"Token": []}]}}, "/app/get_payment_status/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_get_payment_status", "summary": "Get Payment Status", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetPaymentStatusSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/approve_subscription/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_approve_subscription", "summary": "Approve Subscription", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApproveSubscriptionRequestSchema"}}}, "required": true}}}, "/app/get_upgrade_prices/": {"post": {"operationId": "cryptoview_new_views_subscriptions_subscription_get_upgrade_prices", "summary": "Get Upgrade Prices", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Subscription"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetUpgradePricesSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/bulk_cancel_signals/": {"post": {"operationId": "cryptoview_new_views_signal_actions_cancel_bulk_cancel_signals_request", "summary": "Bulk Cancel Signals Request", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/BulkCancelSignalsSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/get_signal_create_general_data/": {"post": {"operationId": "cryptoview_new_views_signal_actions_create_get_signal_create_general_data", "summary": "Get Signal Create General Data", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GetSignalCreateGeneralDataSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/create_signal/": {"post": {"operationId": "cryptoview_new_views_signal_actions_create_create_signal", "summary": "Create Signal", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateSignalSchema"}}}, "required": true}, "security": [{"Token": []}]}}, "/app/create_sub_group_custom_strategy/": {"post": {"operationId": "cryptoview_new_views_signal_actions_create_create_sub_group_custom_strategy", "summary": "Create Sub Group Custom Strategy", "parameters": [], "responses": {"200": {"description": "OK"}}, "tags": ["Signals"], "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateSubGroupCustomStrategySchema"}}}, "required": true}, "security": [{"Token": []}]}}}, "components": {"schemas": {"ExportSignalsSchema": {"properties": {"sub_group_id": {"title": "Sub Group Id", "type": "integer"}, "open_signals": {"default": true, "title": "Open Signals", "type": "boolean"}, "closed_signals": {"default": true, "title": "Closed Signals", "type": "boolean"}}, "required": ["sub_group_id"], "title": "ExportSignalsSchema", "type": "object"}, "CreateSubGroupSchema": {"properties": {"name": {"minLength": 1, "title": "Name", "type": "string"}, "sub_group_type": {"default": 3, "title": "Sub Group Type", "type": "integer"}}, "required": ["name"], "title": "CreateSubGroupSchema", "type": "object"}, "EditSubGroupSchema": {"properties": {"sub_group_id": {"title": "Sub Group Id", "type": "integer"}, "name": {"minLength": 1, "title": "Name", "type": "string"}}, "required": ["sub_group_id", "name"], "title": "EditSubGroupSchema", "type": "object"}, "DeleteSubGroupSchema": {"properties": {"sub_group_id": {"title": "Sub Group Id", "type": "integer"}}, "required": ["sub_group_id"], "title": "DeleteSubGroupSchema", "type": "object"}, "AddAccountSchema": {"properties": {"demo_maker_fee": {"anyOf": [{"maximum": 5, "minimum": 0, "type": "number"}, {"type": "null"}], "title": "Demo Maker Fee"}, "demo_taker_fee": {"anyOf": [{"maximum": 5, "minimum": 0, "type": "number"}, {"type": "null"}], "title": "Demo Taker Fee"}, "exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Exchange"}, "client_name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Client Name"}, "api_key": {"default": "", "title": "Api Key", "type": "string"}, "api_secret": {"default": "", "title": "Api Secret", "type": "string"}, "api_passphrase": {"title": "Api Passphrase", "type": "string"}, "uid": {"title": "Uid", "type": "string"}, "demo_initial_funds": {"default": 0.0, "title": "Demo Initial Funds", "type": "number"}, "exchange_to_client_name": {"anyOf": [{"additionalProperties": {"type": "string"}, "type": "object"}, {"type": "null"}], "title": "Exchange To Client Name"}}, "title": "AddAccountSchema", "type": "object"}, "ChangeClientsStatusSchema": {"properties": {"client_ids": {"items": {"type": "integer"}, "title": "Client Ids", "type": "array"}, "status": {"title": "Status", "type": "integer"}}, "required": ["client_ids", "status"], "title": "ChangeClientsStatusSchema", "type": "object"}, "AccountConfigurationSchema": {"properties": {"account_id": {"title": "Account Id", "type": "integer"}}, "required": ["account_id"], "title": "AccountConfigurationSchema", "type": "object"}, "SetAccountConfigurationSchema": {"properties": {"account_id": {"title": "Account Id", "type": "integer"}, "is_hedge_mode": {"title": "Is Hedge Mode", "type": "boolean"}}, "required": ["account_id", "is_hedge_mode"], "title": "SetAccountConfigurationSchema", "type": "object"}, "CreateAccountInviteSchema": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}, "permission_level": {"allOf": [{"$ref": "#/components/schemas/PermissionLevel"}], "default": 1}, "asset_manager_permission_level": {"allOf": [{"$ref": "#/components/schemas/PermissionLevel"}], "default": 3}, "type": {"default": 1, "title": "Type", "type": "integer"}, "language": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Language"}}, "title": "CreateAccountInviteSchema", "type": "object"}, "PermissionLevel": {"enum": [1, 2, 3], "title": "PermissionLevel", "type": "integer"}, "AccountInviteTokenSchema": {"properties": {"token": {"title": "Token", "type": "string"}}, "required": ["token"], "title": "AccountInviteTokenSchema", "type": "object"}, "AssetManagerConfigurationSchema": {"properties": {"tab_title": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Tab Title"}, "display_name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Display Name"}, "supported_exchanges": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Supported Exchanges"}, "light_mode_logo": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Light Mode Logo"}, "dark_mode_logo": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Dark Mode Logo"}, "favicon": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Favicon"}, "cname": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Cname"}, "light_mode_display_image": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Light Mode Display Image"}, "dark_mode_display_image": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Dark Mode Display Image"}, "modified_create_bot_button_texts": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Modified Create Bot Button Texts"}, "follow_signal_timeout": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Follow Signal Timeout"}, "display_trade_details": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Display Trade Details"}, "hide_quick_connect": {"default": false, "title": "Hide Quick Connect", "type": "boolean"}, "light_mode_primary_color": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Light Mode Primary Color"}, "dark_mode_primary_color": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Dark Mode Primary Color"}, "show_social_login": {"default": true, "title": "Show Social Login", "type": "boolean"}, "display_mobile_app_qr_code": {"default": true, "title": "Display Mobile App Qr Code", "type": "boolean"}, "remove_links": {"default": false, "title": "Remove Links", "type": "boolean"}, "allow_view_only_users_to_view_bots": {"default": false, "title": "Allow View Only Users To View Bots", "type": "boolean"}, "language": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Language"}}, "required": ["tab_title", "display_name", "supported_exchanges"], "title": "AssetManagerConfigurationSchema", "type": "object"}, "AddAccountFromInviteSchema": {"properties": {"api_key": {"title": "Api Key", "type": "string"}, "api_secret": {"title": "Api Secret", "type": "string"}, "api_passphrase": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Api Passphrase"}, "exchanges": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Exchanges"}, "exchange_to_client_name": {"anyOf": [{"additionalProperties": {"type": "string"}, "type": "object"}, {"type": "null"}], "title": "Exchange To Client Name"}, "user_auth_token": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "User Auth Token"}}, "required": ["api_key", "api_secret"], "title": "AddAccountFromInviteSchema", "type": "object"}, "GenerateInvoiceSchema": {"properties": {"period_start": {"title": "Period Start", "type": "number"}, "period_end": {"title": "Period End", "type": "number"}, "profit_sharing_percent": {"title": "Profit Sharing Percent", "type": "number"}, "payout_method_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Payout Method Id"}, "client_ids": {"items": {"type": "integer"}, "title": "Client Ids", "type": "array"}, "is_visible_to_sub_users": {"default": false, "title": "Is Visible To Sub Users", "type": "boolean"}}, "required": ["period_start", "period_end", "profit_sharing_percent", "client_ids"], "title": "GenerateInvoiceSchema", "type": "object"}, "UpdateInvoiceVisibilitySchema": {"properties": {"invoice_id": {"title": "Invoice Id", "type": "integer"}, "is_visible_to_sub_users": {"title": "Is Visible To Sub Users", "type": "boolean"}}, "required": ["invoice_id", "is_visible_to_sub_users"], "title": "UpdateInvoiceVisibilitySchema", "type": "object"}, "UpdateInvoiceStatusSchema": {"properties": {"invoice_id": {"title": "Invoice Id", "type": "integer"}, "status": {"title": "Status", "type": "integer"}}, "required": ["invoice_id", "status"], "title": "UpdateInvoiceStatusSchema", "type": "object"}, "RevokeLoginDeviceSchema": {"properties": {"device_id": {"title": "Device Id", "type": "integer"}}, "required": ["device_id"], "title": "RevokeLoginDeviceSchema", "type": "object"}, "SetAllowSendingPMSchema": {"properties": {"allow_sending_pm": {"title": "Allow Sending Pm", "type": "boolean"}}, "required": ["allow_sending_pm"], "title": "SetAllowSendingPMSchema", "type": "object"}, "ConnectEmailSchema": {"properties": {"email": {"title": "Email", "type": "string"}, "password": {"title": "Password", "type": "string"}}, "required": ["email", "password"], "title": "ConnectEmailSchema", "type": "object"}, "ConfirmEmailConnectionSchema": {"properties": {"auth_code": {"title": "Auth Code", "type": "string"}, "email_validator_uuid": {"title": "Email Validator Uuid", "type": "string"}}, "required": ["auth_code", "email_validator_uuid"], "title": "ConfirmEmailConnectionSchema", "type": "object"}, "TradeDataSchema": {"properties": {"trade_id": {"title": "Trade Id", "type": "integer"}, "trade_open": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Trade Open"}, "ignore_status": {"default": true, "title": "Ignore Status", "type": "boolean"}}, "required": ["trade_id"], "title": "TradeDataSchema", "type": "object"}, "EditTradeEntryTargetSchema": {"properties": {"price": {"title": "Price", "type": "number"}, "ratio": {"description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%.", "title": "Ratio", "type": "number"}, "amount": {"description": "Capital allocated to this entry before leverage. For spot, use the quote currency, such as 10 USDT for BTC/USDT. For linear futures, use settlement-currency margin; for example, 10 USDT at 10x creates approximately 100 USDT of position notional before fees and exchange precision. For inverse futures, use collateral-coin margin, such as BTC for BTC/USD.", "title": "Amount", "type": "number"}, "quantity": {"default": 0, "description": "Exchange-facing base-asset or contract quantity. Use only when is_existing_coins=true to specify the exact existing position size. Leave this as 0 for a new entry; Cornix calculates it from amount, price, leverage, fees, and contract size.", "title": "Quantity", "type": "number"}, "is_existing_coins": {"default": false, "description": "Whether this entry represents an existing asset or position instead of a new order", "title": "Is Existing Coins", "type": "boolean"}, "order_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Existing order ID, or null for a new target", "title": "Order Id"}, "is_closed": {"default": false, "description": "Whether this target is already closed", "title": "Is Closed", "type": "boolean"}, "target_number": {"description": "Target number from the trade orders list", "title": "Target Number", "type": "integer"}, "amount_filled": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": 0, "description": "Amount already filled for this target", "title": "Amount Filled"}, "ratio_filled": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": 0, "description": "Ratio already filled for this target", "title": "Ratio Filled"}}, "required": ["price", "ratio", "amount", "target_number"], "title": "EditTradeEntryTargetSchema", "type": "object"}, "EditTradeExitTargetSchema": {"properties": {"price": {"title": "Price", "type": "number"}, "ratio": {"description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%.", "title": "Ratio", "type": "number"}, "order_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Existing order ID, or null for a new target", "title": "Order Id"}, "is_closed": {"default": false, "description": "Whether this target is already closed", "title": "Is Closed", "type": "boolean"}, "target_number": {"description": "Target number from the trade orders list", "title": "Target Number", "type": "integer"}, "amount": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": 0, "description": "Target amount", "title": "Amount"}, "amount_filled": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": 0, "description": "Amount already filled for this target", "title": "Amount Filled"}, "quantity": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": 0, "description": "Target quantity", "title": "Quantity"}, "is_existing_coins": {"default": false, "description": "Whether the target uses existing coins", "title": "Is Existing Coins", "type": "boolean"}, "ratio_filled": {"anyOf": [{"type": "number"}, {"type": "null"}], "default": 0, "description": "Ratio already filled for this target", "title": "Ratio Filled"}}, "required": ["price", "ratio", "target_number"], "title": "EditTradeExitTargetSchema", "type": "object"}, "EditTradeSchema": {"properties": {"trade_id": {"description": "Trade ID to edit", "title": "Trade Id", "type": "integer"}, "disable_time_stop": {"default": false, "description": "Disable the existing time stop for this open trade. Order targets may be left unchanged.", "title": "Disable Time Stop", "type": "boolean"}, "buy_section": {"description": "Entry targets", "items": {"anyOf": [{"$ref": "#/components/schemas/EditTradeEntryTargetSchema"}, {"maxItems": 10, "minItems": 10, "prefixItems": [{"anyOf": [{"type": "integer"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%."}, {"type": "boolean"}, {"type": "integer"}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"type": "boolean"}, {"anyOf": [{"type": "number"}, {"type": "null"}]}], "type": "array"}]}, "minItems": 1, "title": "Buy Section", "type": "array"}, "sell_section": {"description": "Take-profit targets", "items": {"anyOf": [{"$ref": "#/components/schemas/EditTradeExitTargetSchema"}, {"maxItems": 10, "minItems": 10, "prefixItems": [{"anyOf": [{"type": "integer"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%."}, {"type": "boolean"}, {"type": "integer"}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"type": "boolean"}, {"anyOf": [{"type": "number"}, {"type": "null"}]}], "type": "array"}]}, "title": "Sell Section", "type": "array"}, "stop_section": {"description": "Stop-loss targets", "items": {"anyOf": [{"$ref": "#/components/schemas/EditTradeExitTargetSchema"}, {"maxItems": 10, "minItems": 10, "prefixItems": [{"anyOf": [{"type": "integer"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%."}, {"type": "boolean"}, {"type": "integer"}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"anyOf": [{"type": "number"}, {"type": "null"}]}, {"type": "boolean"}, {"anyOf": [{"type": "number"}, {"type": "null"}]}], "type": "array"}]}, "title": "Stop Section", "type": "array"}}, "required": ["trade_id", "buy_section"], "title": "EditTradeSchema", "type": "object"}, "CancelTradeSchema": {"properties": {"trade_id": {"description": "Trade ID to cancel", "title": "Trade Id", "type": "integer"}, "ratio": {"description": "Percentage of the existing position to sell, expressed as a number between 0 and 100. For example, 10 means 10%.", "title": "Ratio", "type": "number"}, "add_trailing": {"default": false, "description": "Whether to add a trailing trade after cancelling", "title": "Add Trailing", "type": "boolean"}}, "required": ["trade_id", "ratio"], "title": "CancelTradeSchema", "type": "object"}, "CreateTradeEntryTargetSchema": {"properties": {"price": {"title": "Price", "type": "number"}, "ratio": {"description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%.", "title": "Ratio", "type": "number"}, "amount": {"description": "Capital allocated to this entry before leverage. For spot, use the quote currency, such as 10 USDT for BTC/USDT. For linear futures, use settlement-currency margin; for example, 10 USDT at 10x creates approximately 100 USDT of position notional before fees and exchange precision. For inverse futures, use collateral-coin margin, such as BTC for BTC/USD.", "title": "Amount", "type": "number"}, "quantity": {"default": 0, "description": "Exchange-facing base-asset or contract quantity. Use only when is_existing_coins=true to specify the exact existing position size. Leave this as 0 for a new entry; Cornix calculates it from amount, price, leverage, fees, and contract size.", "title": "Quantity", "type": "number"}, "is_existing_coins": {"default": false, "description": "Whether this entry represents an existing asset or position instead of a new order", "title": "Is Existing Coins", "type": "boolean"}}, "required": ["price", "ratio", "amount"], "title": "CreateTradeEntryTargetSchema", "type": "object"}, "CreateTradeExitTargetSchema": {"properties": {"price": {"title": "Price", "type": "number"}, "ratio": {"description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%.", "title": "Ratio", "type": "number"}}, "required": ["price", "ratio"], "title": "CreateTradeExitTargetSchema", "type": "object"}, "CreateTradeSchema": {"properties": {"account_id": {"description": "Account ID that will execute the trade", "title": "Account Id", "type": "integer"}, "symbol": {"description": "Trading symbol, for example BTC/USDT", "title": "Symbol", "type": "string"}, "buy_section": {"description": "Entry targets", "items": {"$ref": "#/components/schemas/CreateTradeEntryTargetSchema"}, "minItems": 1, "title": "Buy Section", "type": "array"}, "sell_section": {"description": "Take-profit targets", "items": {"$ref": "#/components/schemas/CreateTradeExitTargetSchema"}, "title": "Sell Section", "type": "array"}, "stop_section": {"description": "Stop-loss targets", "items": {"$ref": "#/components/schemas/CreateTradeStopTargetSchema"}, "title": "Stop Section", "type": "array"}, "trade_type": {"$ref": "#/components/schemas/CreateTradeType", "description": "Trade type: regular=1, breakout=4"}, "reverse": {"default": false, "description": "Whether to create a short trade", "title": "Reverse", "type": "boolean"}, "margin_type": {"anyOf": [{"$ref": "#/components/schemas/MarginType"}, {"type": "null"}], "description": "Margin type: isolated=1, cross=2"}, "leverage": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Leverage multiplier", "title": "Leverage"}, "cancel_on_first_target_reached": {"description": "Cancel remaining entries after the first entry fills", "title": "Cancel On First Target Reached", "type": "boolean"}, "trailing_entry": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Trailing entry percentage. Expressed as a whole-number percentage. For example, 1 means 1%.", "title": "Trailing Entry"}, "trailing_take_profit": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Trailing take-profit percentage. Expressed as a whole-number percentage. For example, 1 means 1%.", "title": "Trailing Take Profit"}, "trailing_stop": {"anyOf": [{"$ref": "#/components/schemas/CreateTradeTrailingStopSchema"}, {"type": "null"}], "description": "Trailing-stop configuration"}}, "required": ["account_id", "symbol", "buy_section", "trade_type", "cancel_on_first_target_reached"], "title": "CreateTradeSchema", "type": "object"}, "CreateTradeStopTargetSchema": {"properties": {"price": {"title": "Price", "type": "number"}, "ratio": {"description": "Percentage allocated to this target, expressed as a fraction between 0 and 1. For example, 0.1 means 10%.", "title": "Ratio", "type": "number"}, "stop_timeout": {"anyOf": [{"maximum": 86400, "minimum": 0, "type": "number"}, {"type": "null"}], "description": "Delay in seconds before executing a triggered stop-loss order", "title": "Stop Timeout"}}, "required": ["price", "ratio"], "title": "CreateTradeStopTargetSchema", "type": "object"}, "CreateTradeTrailingStopSchema": {"properties": {"type": {"$ref": "#/components/schemas/TotalTrailingStopType", "description": "Trailing-stop type: without=0, moving_target=1, percent_below_highest=2, breakeven=3, percent_below_triggers=4, moving_2_target=5"}, "value": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Trailing-stop percentage. Expressed as a whole-number percentage. For example, 1 means 1%. Use null for modes that do not require a percentage.", "title": "Value"}, "trigger": {"$ref": "#/components/schemas/CreateTradeTrailingStopTriggerSchema", "description": "Trailing-stop activation trigger"}}, "required": ["type", "trigger"], "title": "CreateTradeTrailingStopSchema", "type": "object"}, "CreateTradeTrailingStopTriggerSchema": {"properties": {"type": {"$ref": "#/components/schemas/TriggerType", "description": "Trigger type: target=1, percent=2"}, "value": {"description": "Target number when type=target=1. When type=percent=2, use a whole-number percentage; for example, 1 means 1%.", "title": "Value", "type": "number"}}, "required": ["type", "value"], "title": "CreateTradeTrailingStopTriggerSchema", "type": "object"}, "CreateTradeType": {"enum": [1, 4], "title": "CreateTradeType", "type": "integer"}, "MarginType": {"enum": [1, 2], "title": "MarginType", "type": "integer"}, "TotalTrailingStopType": {"enum": [0, 1, 2, 3, 4, 5], "title": "TotalTrailingStopType", "type": "integer"}, "TriggerType": {"enum": [1, 2], "title": "TriggerType", "type": "integer"}, "DeleteBotSchema": {"properties": {"bot_id": {"description": "ID of the bot to delete", "title": "Bot Id", "type": "integer"}}, "required": ["bot_id"], "title": "DeleteBotSchema", "type": "object"}, "BulkChangeBotsStatusSchema": {"properties": {"bot_ids": {"description": "IDs of the bots to activate or deactivate. All bots must have the same bot type.", "items": {"type": "integer"}, "title": "Bot Ids", "type": "array"}, "bot_type": {"description": "Bot type: TRADINGVIEW=1, DCA=2, SIGNALS=3, GRID=4, TRADINGVIEW_SIGNALS=5, HEDGING=6", "title": "Bot Type", "type": "integer"}, "is_active": {"description": "True activates the bots; false deactivates them.", "title": "Is Active", "type": "boolean"}, "should_cancel_trade": {"default": false, "description": "When deactivating, whether to cancel the bots\u2019 open trades first. Must be false when activating.", "title": "Should Cancel Trade", "type": "boolean"}, "ratio": {"default": 100, "description": "Percentage of each open position to sell when should_cancel_trade is true, from 0 to 100. For example, 25 means 25%.", "title": "Ratio", "type": "number"}}, "required": ["bot_ids", "bot_type", "is_active"], "title": "BulkChangeBotsStatusSchema", "type": "object"}, "DCABotGraphDataFilterSchema": {"properties": {"bot_type": {"title": "Bot Type", "type": "integer"}, "timezone_difference": {"default": 0.0, "title": "Timezone Difference", "type": "number"}, "time_range": {"default": "1m", "title": "Time Range", "type": "string"}, "time_aggregation": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Time Aggregation"}, "include_archived": {"default": false, "title": "Include Archived", "type": "boolean"}}, "required": ["bot_type"], "title": "DCABotGraphDataFilterSchema", "type": "object"}, "DCABotFilterSchema": {"properties": {"include_without": {"default": true, "title": "Include Without", "type": "boolean"}, "bot_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Bot Ids"}, "return_list": {"default": false, "title": "Return List", "type": "boolean"}, "bot_type": {"title": "Bot Type", "type": "integer"}, "bot_page_source": {"default": 2, "title": "Bot Page Source", "type": "integer"}, "sub_group_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Sub Group Id"}, "skip_extra_filters": {"default": false, "title": "Skip Extra Filters", "type": "boolean"}, "ws_from_timestamp": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Ws From Timestamp"}, "include_archived": {"default": false, "title": "Include Archived", "type": "boolean"}}, "required": ["bot_type"], "title": "DCABotFilterSchema", "type": "object"}, "BotTypeToIdsFilterSchema": {"properties": {"bot_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Bot Ids"}}, "title": "BotTypeToIdsFilterSchema", "type": "object"}, "BuiltinStrategyConfigurationSchema": {"properties": {"price_difference": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Difference"}, "price_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Scale"}, "number_of_active_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Active Orders"}, "first_order_percentage": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "First Order Percentage"}, "baseline": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Baseline"}, "targets": {"anyOf": [{"items": {"type": "number"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Targets"}, "amount_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Amount Scale"}, "number_of_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Orders"}, "builtin_strategy_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Builtin Strategy Type"}, "strategy_style": {"const": 3, "title": "Strategy Style", "type": "integer"}}, "required": ["number_of_orders", "builtin_strategy_type", "strategy_style"], "title": "BuiltinStrategyConfigurationSchema", "type": "object"}, "CustomStrategyConfigurationSchema": {"properties": {"price_difference": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Difference"}, "price_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Scale"}, "number_of_active_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Active Orders"}, "first_order_percentage": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "First Order Percentage"}, "baseline": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Baseline"}, "targets": {"anyOf": [{"items": {"type": "number"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Targets"}, "amount_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Amount Scale"}, "number_of_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Orders"}, "builtin_strategy_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Builtin Strategy Type"}, "strategy_style": {"const": 1, "title": "Strategy Style", "type": "integer"}}, "required": ["targets", "strategy_style"], "title": "CustomStrategyConfigurationSchema", "type": "object"}, "DCABotSchema": {"properties": {"account_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "description": "Exchange account IDs on which to create the bot. Multiple IDs create one bot per account.", "title": "Account Ids"}, "bot_type": {"description": "Bot type: TRADINGVIEW=1, DCA=2, SIGNALS=3, GRID=4, TRADINGVIEW_SIGNALS=5, HEDGING=6", "title": "Bot Type", "type": "integer"}, "sub_group_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "description": "Signal-group IDs followed by a Signals or TradingView Signals bot.", "title": "Sub Group Ids"}, "dca_bot_name": {"description": "Bot name. It must be unique among the user\u2019s bots of the same type.", "title": "Dca Bot Name", "type": "string"}, "amount_configuration": {"anyOf": [{"discriminator": {"mapping": {"1": "#/components/schemas/PercentageAmountConfigurationSchema", "2": "#/components/schemas/FixedBTCAmountConfigurationSchema", "3": "#/components/schemas/RiskPercentageAmountConfigurationSchema", "4": "#/components/schemas/FixedUSDAmountConfigurationSchema"}, "propertyName": "type"}, "oneOf": [{"$ref": "#/components/schemas/PercentageAmountConfigurationSchema"}, {"$ref": "#/components/schemas/FixedBTCAmountConfigurationSchema"}, {"$ref": "#/components/schemas/RiskPercentageAmountConfigurationSchema"}, {"$ref": "#/components/schemas/FixedUSDAmountConfigurationSchema"}]}, {"type": "null"}], "description": "Position-size configuration. Amount type: percentage=1, fixed_btc_amount=2, risk_percentage=3, fixed_usd_amount=4. For percentage and risk_percentage, value is a fraction where 0.01 means 1%. TradingView Signals bots may use null to inherit the channel configuration.", "title": "Amount Configuration"}, "symbol_to_leverage_data": {"anyOf": [{"additionalProperties": {"items": {"anyOf": [{"type": "number"}, {"type": "integer"}, {"type": "null"}]}, "type": "array"}, "type": "object"}, {"type": "null"}], "description": "Per-symbol leverage map. Each value is [margin_type, leverage, leverage_type]. Margin type: isolated=1, cross=2. Leverage type: EXACT=1, UP_TO=2. Use null values for spot symbols. Use the \"FALLBACK_SYMBOL\" key to apply leverage to every symbol without an explicit entry; explicit symbol entries override the fallback. For example {\"BTC/USDT\": [2, 5, 1]}. When this map has any entries, multiplier and margin_type are ignored and do not fill missing symbols.", "title": "Symbol To Leverage Data"}, "concurrent_max_usd_invested": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Maximum total USD value the bot may have invested across concurrent trades.", "title": "Concurrent Max Usd Invested"}, "cooldown_after_trade_close": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Seconds to wait after closing a trade before opening another trade.", "title": "Cooldown After Trade Close"}, "cooldown_between_opening_trades": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Seconds to wait between opening any two trades.", "title": "Cooldown Between Opening Trades"}, "cooldown_between_opening_trades_per_symbol": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Seconds to wait between opening trades for the same symbol.", "title": "Cooldown Between Opening Trades Per Symbol"}, "cancel_on_profit_before_entry": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Whether to cancel a pending trade if its take-profit price is reached before entry.", "title": "Cancel On Profit Before Entry"}, "default_stop": {"anyOf": [{"$ref": "#/components/schemas/DefaultOrderSchema"}, {"const": "off", "type": "string"}, {"type": "null"}], "description": "Default stop-loss configuration. Use \"off\" to disable it. When unused, omit it or use null; never send {}.", "title": "Default Stop"}, "default_take_profit": {"anyOf": [{"$ref": "#/components/schemas/DefaultOrderSchema"}, {"const": "off", "type": "string"}, {"type": "null"}], "description": "Default take-profit configuration. Use \"off\" to disable it. When unused, omit it or use null; never send {}.", "title": "Default Take Profit"}, "entry_grace_percent": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Allowed entry-price deviation as a fraction where 0.05 means 5%.", "title": "Entry Grace Percent"}, "entry_grace_baseline": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Entry grace behavior: PRICE_REACHED=1, IMMEDIATE=2.", "title": "Entry Grace Baseline"}, "entry_grace_target_exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Exchange identifier whose price is used for entry grace, for example bybit.", "title": "Entry Grace Target Exchange"}, "entry_strategy": {"anyOf": [{"discriminator": {"mapping": {"1": "#/components/schemas/CustomStrategyConfigurationSchema", "2": "#/components/schemas/DCAStrategyConfigurationSchema", "3": "#/components/schemas/BuiltinStrategyConfigurationSchema", "4": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema", "null": "#/components/schemas/LegacyStrategyConfigurationSchema"}, "propertyName": "strategy_style"}, "oneOf": [{"$ref": "#/components/schemas/CustomStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/DCAStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/BuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyStrategyConfigurationSchema"}]}, {"type": "null"}], "description": "Entry-order strategy. When unused, omit it or use null; never send {}. strategy_style values are Strategy style: CUSTOM=1, DCA=2, BUILTIN=3, LEGACY_BUILTIN=4. CUSTOM requires targets; DCA requires amount_scale and number_of_orders; BUILTIN requires builtin_strategy_type and number_of_orders. Built-in strategy type: personal=0, evenly_divided=1, one_target=2, two_targets=3, three_targets=4, fifty_on_first_target=5, decreasing_exponential=6, increasing_exponential=7, skip_first=8. Optional keys are price_difference, price_scale, number_of_active_orders, first_order_percentage, and baseline. Percentages are fractions. Price baseline: first_order=1, previous_order=2", "title": "Entry Strategy"}, "multiplier": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Leverage multiplier used only when symbol_to_leverage_data is omitted, null, or empty. It applies to every bot symbol, does not fill missing entries in a non-empty map, and defaults to 1 when omitted. It is not used by Signals bots, and spot or exchange-specific rules may override it.", "title": "Multiplier"}, "long_short": {"anyOf": [{"enum": [1, 2], "type": "integer"}, {"type": "null"}], "description": "Direction: long=1, short=2. Use integer 1 for long or 2 for short; never use strings.", "title": "Long Short"}, "margin_type": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Margin type used only when symbol_to_leverage_data is omitted, null, or empty. It applies to every bot symbol, does not fill missing entries in a non-empty map, and defaults to isolated when omitted. It is not used by Signals bots. Margin type: isolated=1, cross=2", "title": "Margin Type"}, "max_grid_price": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Maximum market price covered by a grid strategy.", "title": "Max Grid Price"}, "lower_price_long_exposure_ratio": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Hedging-grid long exposure at the lower grid price, from 0 to 1.", "title": "Lower Price Long Exposure Ratio"}, "upper_price_long_exposure_ratio": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Hedging-grid long exposure at the upper grid price, from 0 to 1.", "title": "Upper Price Long Exposure Ratio"}, "min_symbol_price": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Minimum symbol price required to open a trade.", "title": "Min Symbol Price"}, "min_symbol_volume": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Minimum 24-hour symbol volume required to open a trade.", "title": "Min Symbol Volume"}, "number_of_continuous_stops_till_bot_stop": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Stop the bot after this many consecutive stopped-out trades.", "title": "Number Of Continuous Stops Till Bot Stop"}, "number_of_simultaneous_trades": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Maximum number of trades the bot may keep open simultaneously.", "title": "Number Of Simultaneous Trades"}, "number_of_simultaneous_trades_per_symbol": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Maximum simultaneous open trades per symbol, up to 30.", "title": "Number Of Simultaneous Trades Per Symbol"}, "number_of_trades_till_bot_stop": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Stop the bot after it opens this many trades in total.", "title": "Number Of Trades Till Bot Stop"}, "override_amount_per_trade": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's amount-per-trade setting.", "title": "Override Amount Per Trade"}, "override_cancel_on_profit_before_entry": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's cancel-before-entry setting.", "title": "Override Cancel On Profit Before Entry"}, "override_default_stop": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's default stop-loss setting.", "title": "Override Default Stop"}, "override_default_take_profit": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's default take-profit setting.", "title": "Override Default Take Profit"}, "override_entry_strategy": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's entry strategy.", "title": "Override Entry Strategy"}, "override_take_profit_strategy": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's take-profit strategy.", "title": "Override Take Profit Strategy"}, "override_trailing_entry": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's trailing-entry setting.", "title": "Override Trailing Entry"}, "override_trailing_stop": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's trailing-stop setting.", "title": "Override Trailing Stop"}, "override_trailing_take_profit": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's trailing-take-profit setting.", "title": "Override Trailing Take Profit"}, "override_leverage": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's leverage setting.", "title": "Override Leverage"}, "status": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Bot status: INACTIVE=1, ACTIVE=2, INTERRUPTED=3, STOPPED_BY_USER=4, STOPPED_BY_SYSTEM=5, STOPPED_BY_SETTINGS=6, DELETED=7, STOPPED_BY_VALIDATION=8, SUBSCRIPTION_ENDED=9, SUBSCRIPTION_TYPE_CHANGED=10, STOPPED_BY_UNKNOWN_ERROR=11, EDITED=12, QUOTA_EXCEEDED=13, CLIENT_DELETED=14, CLIENT_DEACTIVATED=15, GROUP_SUBSCRIPTION_ENDED=16, GROUP_DELETED=17, ARCHIVED=18", "title": "Status"}, "skip_without_stoploss": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Whether signals without a stop-loss should be ignored.", "title": "Skip Without Stoploss"}, "stop_limit_price_reduction": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Stop-limit order price multiplier as a fraction; for example, 0.99 places the limit price 1% beyond the stop trigger.", "title": "Stop Limit Price Reduction"}, "stop_timeout": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Minutes to wait before a triggered stop is executed.", "title": "Stop Timeout"}, "stop_type": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Stop order type: limit=1, market=2", "title": "Stop Type"}, "symbols": {"anyOf": [{"items": {}, "type": "array"}, {"type": "string"}, {"type": "null"}], "description": "Trading symbols in BASE/QUOTE form, for example [\"BTC/USDT\", \"ETH/USDT\"].", "title": "Symbols"}, "take_profit_strategy": {"anyOf": [{"discriminator": {"mapping": {"1": "#/components/schemas/CustomStrategyConfigurationSchema", "2": "#/components/schemas/DCAStrategyConfigurationSchema", "3": "#/components/schemas/BuiltinStrategyConfigurationSchema", "4": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema", "null": "#/components/schemas/LegacyStrategyConfigurationSchema"}, "propertyName": "strategy_style"}, "oneOf": [{"$ref": "#/components/schemas/CustomStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/DCAStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/BuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyStrategyConfigurationSchema"}]}, {"type": "null"}], "description": "Take-profit order strategy. Uses the same structure and values as entry_strategy. When unused, omit it or use null; never send {}.", "title": "Take Profit Strategy"}, "trailing_entry": {"anyOf": [{"type": "number"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Trailing-entry distance as a fraction where 0.01 means 1%. The frontend may send \"empty\" for mixed values or \"off\" to disable the override.", "title": "Trailing Entry"}, "trailing_stop": {"anyOf": [{"additionalProperties": true, "type": "object"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Trailing-stop configuration with type, value, and trigger={type, value}. Trailing-stop type: without=0, moving_target=1, percent_below_highest=2, breakeven=3, percent_below_triggers=4, moving_2_target=5. Trigger type: target=1, percent=2. Percentage values are fractions where 0.01 means 1%; a target trigger value is a target number. The frontend may send \"empty\" for mixed values or \"off\" to disable the override.", "title": "Trailing Stop"}, "trailing_take_profit": {"anyOf": [{"type": "number"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Trailing-take-profit distance as a fraction where 0.01 means 1%. The frontend may send \"empty\" for mixed values or \"off\" to disable the override.", "title": "Trailing Take Profit"}, "trailing_take_profit_last_target_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Whether trailing take-profit applies only to the last take-profit target.", "title": "Trailing Take Profit Last Target Only"}, "follow_futures_as_spot": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Opt in to following equivalent futures long signals on a Signals bot spot account without leverage.", "title": "Follow Futures As Spot"}, "alternative_usd_pairs": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "description": "Allowed alternative USD quote currencies for Signals bots, such as USDT or USDC.", "title": "Alternative Usd Pairs"}, "exchanges": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "description": "Only for TradingView Signals bots with bot_type=5. Each item must be an exchange identifier string such as \"Binance Futures\". Omit this field for DCA bots and use account_ids to select exchange accounts; never put account IDs or objects here.", "title": "Exchanges"}, "blacklist_symbols": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "description": "Symbols the bot must ignore, in BASE/QUOTE form.", "title": "Blacklist Symbols"}, "blacklisted_operation_hours": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "description": "Blocked trading periods. Each item contains day (0-6), start_hour and end_hour in HH:MM format, and an IANA timezone such as Asia/Jerusalem.", "title": "Blacklisted Operation Hours"}, "take_profit_grace_percent": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Allowed take-profit price deviation as a fraction where 0.05 means 5%.", "title": "Take Profit Grace Percent"}, "take_profit_grace_target_exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Exchange identifier whose price is used for take-profit grace, for example bybit.", "title": "Take Profit Grace Target Exchange"}, "auto_cancel_timeout_seconds": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Seconds after which the bot automatically cancels a pending trade.", "title": "Auto Cancel Timeout Seconds"}, "time_stop_seconds": {"anyOf": [{"maximum": 2592000, "minimum": 60, "type": "integer"}, {"type": "null"}], "description": "Close the remaining position at market this many seconds after the first entry fill, including a partial fill, up to 30 days. No timeout before an entry fills. Null disables the time stop. Applies to new trades.", "title": "Time Stop Seconds"}, "daily_loss_limit_value": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Daily loss limit as a fraction where 0.05 means 5%.", "title": "Daily Loss Limit Value"}, "keyword_to_symbol_mapping": {"anyOf": [{"additionalProperties": {"type": "string"}, "type": "object"}, {"type": "null"}], "description": "Signal keyword to trading-symbol map, for example {\"GOLD\": \"PAXG/USDT\"}.", "title": "Keyword To Symbol Mapping"}, "long_exposure_ratio": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Fixed long exposure for a Hedging bot, from 0 to 1. Use this instead of the hedging-grid exposure fields.", "title": "Long Exposure Ratio"}}, "required": ["bot_type", "dca_bot_name", "amount_configuration"], "title": "DCABotSchema", "type": "object"}, "DCAStrategyConfigurationSchema": {"properties": {"price_difference": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Difference"}, "price_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Scale"}, "number_of_active_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Active Orders"}, "first_order_percentage": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "First Order Percentage"}, "baseline": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Baseline"}, "targets": {"anyOf": [{"items": {"type": "number"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Targets"}, "amount_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Amount Scale"}, "number_of_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Orders"}, "builtin_strategy_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Builtin Strategy Type"}, "strategy_style": {"const": 2, "title": "Strategy Style", "type": "integer"}}, "required": ["amount_scale", "number_of_orders", "strategy_style"], "title": "DCAStrategyConfigurationSchema", "type": "object"}, "DefaultOrderSchema": {"properties": {"baseline": {"anyOf": [{"type": "integer"}, {"enum": ["empty", "off"], "type": "string"}], "description": "Baseline: first_entry=1, first_take_profit=2, average_entries=3, last_entry=4, original_first_entry=5. Use \"empty\" to keep the existing value when editing.", "title": "Baseline"}, "percent": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Distance as a fraction where 0.05 means 5%. Use \"empty\" to keep the existing value when editing.", "title": "Percent"}}, "required": ["baseline", "percent"], "title": "DefaultOrderSchema", "type": "object"}, "FixedBTCAmountConfigurationSchema": {"properties": {"type": {"const": 2, "title": "Type", "type": "integer"}, "value": {"description": "Fixed amount denominated in BTC.", "minimum": 0, "title": "Value", "type": "number"}}, "required": ["type", "value"], "title": "FixedBTCAmountConfigurationSchema", "type": "object"}, "FixedUSDAmountConfigurationSchema": {"properties": {"type": {"const": 4, "title": "Type", "type": "integer"}, "value": {"description": "Fixed amount denominated in USD; use 20 for $20.", "minimum": 0, "title": "Value", "type": "number"}}, "required": ["type", "value"], "title": "FixedUSDAmountConfigurationSchema", "type": "object"}, "LegacyBuiltinStrategyConfigurationSchema": {"properties": {"price_difference": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Difference"}, "price_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Scale"}, "number_of_active_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Active Orders"}, "first_order_percentage": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "First Order Percentage"}, "baseline": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Baseline"}, "targets": {"anyOf": [{"items": {"type": "number"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Targets"}, "amount_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Amount Scale"}, "number_of_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Orders"}, "builtin_strategy_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Builtin Strategy Type"}, "strategy_style": {"const": 4, "title": "Strategy Style", "type": "integer"}}, "required": ["builtin_strategy_type", "strategy_style"], "title": "LegacyBuiltinStrategyConfigurationSchema", "type": "object"}, "LegacyStrategyConfigurationSchema": {"properties": {"price_difference": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Difference"}, "price_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Price Scale"}, "number_of_active_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Active Orders"}, "first_order_percentage": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "First Order Percentage"}, "baseline": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Baseline"}, "targets": {"anyOf": [{"items": {"type": "number"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Targets"}, "amount_scale": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Amount Scale"}, "number_of_orders": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Number Of Orders"}, "builtin_strategy_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "title": "Builtin Strategy Type"}, "strategy_style": {"const": null, "title": "Strategy Style", "type": "null"}}, "required": ["number_of_orders", "strategy_style"], "title": "LegacyStrategyConfigurationSchema", "type": "object"}, "PercentageAmountConfigurationSchema": {"properties": {"type": {"const": 1, "title": "Type", "type": "integer"}, "value": {"description": "Fraction of available funds; 0.2 means 20%.", "maximum": 1, "minimum": 0, "title": "Value", "type": "number"}}, "required": ["type", "value"], "title": "PercentageAmountConfigurationSchema", "type": "object"}, "RiskPercentageAmountConfigurationSchema": {"properties": {"type": {"const": 3, "title": "Type", "type": "integer"}, "value": {"description": "Risk fraction; 0.02 means 2%.", "maximum": 1, "minimum": 0, "title": "Value", "type": "number"}}, "required": ["type", "value"], "title": "RiskPercentageAmountConfigurationSchema", "type": "object"}, "EditAmountConfigurationSchema": {"properties": {"type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}], "description": "Amount type: percentage=1, fixed_btc_amount=2, risk_percentage=3, fixed_usd_amount=4. Use \"empty\" to keep the existing value when editing.", "title": "Type"}, "value": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}], "description": "Position size. Use \"empty\" to keep the existing value when editing.", "title": "Value"}}, "required": ["type", "value"], "title": "EditAmountConfigurationSchema", "type": "object"}, "EditBotsSchema": {"properties": {"account_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Exchange account IDs. Use \"empty\" to keep each bot on its existing account.", "title": "Account Ids"}, "bot_type": {"description": "Bot type: TRADINGVIEW=1, DCA=2, SIGNALS=3, GRID=4, TRADINGVIEW_SIGNALS=5, HEDGING=6", "title": "Bot Type", "type": "integer"}, "sub_group_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "description": "Signal-group IDs followed by a Signals or TradingView Signals bot.", "title": "Sub Group Ids"}, "dca_bot_name": {"description": "Bot name. Use \"empty\" to keep each bot\u2019s existing name.", "title": "Dca Bot Name", "type": "string"}, "amount_configuration": {"$ref": "#/components/schemas/EditAmountConfigurationSchema", "description": "Position-size configuration. Amount type: percentage=1, fixed_btc_amount=2, risk_percentage=3, fixed_usd_amount=4. For percentage and risk_percentage, value is a fraction where 0.01 means 1%. TradingView Signals bots may use null to inherit the channel configuration."}, "symbol_to_leverage_data": {"anyOf": [{"additionalProperties": {"items": {"anyOf": [{"type": "number"}, {"type": "integer"}, {"type": "null"}]}, "type": "array"}, "type": "object"}, {"type": "null"}], "description": "Per-symbol leverage map. Each value is [margin_type, leverage, leverage_type]. Margin type: isolated=1, cross=2. Leverage type: EXACT=1, UP_TO=2. Use null values for spot symbols. Use the \"FALLBACK_SYMBOL\" key to apply leverage to every symbol without an explicit entry; explicit symbol entries override the fallback. For example {\"BTC/USDT\": [2, 5, 1]}. When this map has any entries, multiplier and margin_type are ignored and do not fill missing symbols.", "title": "Symbol To Leverage Data"}, "concurrent_max_usd_invested": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Maximum concurrent USD investment. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Concurrent Max Usd Invested"}, "cooldown_after_trade_close": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Cooldown after closing a trade in seconds. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Cooldown After Trade Close"}, "cooldown_between_opening_trades": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Seconds to wait between opening any two trades. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Cooldown Between Opening Trades"}, "cooldown_between_opening_trades_per_symbol": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Per-symbol opening cooldown in seconds. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Cooldown Between Opening Trades Per Symbol"}, "cancel_on_profit_before_entry": {"anyOf": [{"type": "boolean"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Whether to cancel before entry when take profit is reached. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Cancel On Profit Before Entry"}, "default_stop": {"anyOf": [{"$ref": "#/components/schemas/DefaultOrderSchema"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Default stop-loss configuration. Use \"empty\" to keep each bot\u2019s existing value or \"off\" to disable it.", "title": "Default Stop"}, "default_take_profit": {"anyOf": [{"$ref": "#/components/schemas/DefaultOrderSchema"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Default take-profit configuration. Use \"empty\" to keep each bot\u2019s existing value or \"off\" to disable it.", "title": "Default Take Profit"}, "entry_grace_percent": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Allowed entry-price deviation as a fraction where 0.05 means 5%.", "title": "Entry Grace Percent"}, "entry_grace_baseline": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Entry grace behavior: PRICE_REACHED=1, IMMEDIATE=2.", "title": "Entry Grace Baseline"}, "entry_grace_target_exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Exchange identifier whose price is used for entry grace, for example bybit.", "title": "Entry Grace Target Exchange"}, "entry_strategy": {"anyOf": [{"discriminator": {"mapping": {"1": "#/components/schemas/CustomStrategyConfigurationSchema", "2": "#/components/schemas/DCAStrategyConfigurationSchema", "3": "#/components/schemas/BuiltinStrategyConfigurationSchema", "4": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema", "null": "#/components/schemas/LegacyStrategyConfigurationSchema"}, "propertyName": "strategy_style"}, "oneOf": [{"$ref": "#/components/schemas/CustomStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/DCAStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/BuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyStrategyConfigurationSchema"}]}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Entry-order strategy. Use \"empty\" to keep each bot\u2019s existing strategy.", "title": "Entry Strategy"}, "multiplier": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Leverage multiplier. Use \"empty\" to keep each bot\u2019s existing leverage.", "title": "Multiplier"}, "long_short": {"anyOf": [{"enum": [1, 2], "type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Direction: long=1, short=2. Use \"empty\" to keep each bot\u2019s existing direction.", "title": "Long Short"}, "margin_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Margin type: isolated=1, cross=2. Use \"empty\" to keep each bot\u2019s existing margin type.", "title": "Margin Type"}, "max_grid_price": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Maximum market price covered by a grid strategy. Use \"empty\" to keep the existing value.", "title": "Max Grid Price"}, "lower_price_long_exposure_ratio": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Hedging-grid long exposure at the lower grid price, from 0 to 1. Use \"empty\" to keep the existing value.", "title": "Lower Price Long Exposure Ratio"}, "upper_price_long_exposure_ratio": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Hedging-grid long exposure at the upper grid price, from 0 to 1. Use \"empty\" to keep the existing value.", "title": "Upper Price Long Exposure Ratio"}, "min_symbol_price": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Minimum symbol price. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Min Symbol Price"}, "min_symbol_volume": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Minimum symbol volume. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Min Symbol Volume"}, "number_of_continuous_stops_till_bot_stop": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Consecutive stops limit. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Number Of Continuous Stops Till Bot Stop"}, "number_of_simultaneous_trades": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Simultaneous trades limit. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Number Of Simultaneous Trades"}, "number_of_simultaneous_trades_per_symbol": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Per-symbol simultaneous trades limit. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Number Of Simultaneous Trades Per Symbol"}, "number_of_trades_till_bot_stop": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Total trades limit. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Number Of Trades Till Bot Stop"}, "override_amount_per_trade": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's amount-per-trade setting.", "title": "Override Amount Per Trade"}, "override_cancel_on_profit_before_entry": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's cancel-before-entry setting.", "title": "Override Cancel On Profit Before Entry"}, "override_default_stop": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's default stop-loss setting.", "title": "Override Default Stop"}, "override_default_take_profit": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's default take-profit setting.", "title": "Override Default Take Profit"}, "override_entry_strategy": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's entry strategy.", "title": "Override Entry Strategy"}, "override_take_profit_strategy": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's take-profit strategy.", "title": "Override Take Profit Strategy"}, "override_trailing_entry": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's trailing-entry setting.", "title": "Override Trailing Entry"}, "override_trailing_stop": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's trailing-stop setting.", "title": "Override Trailing Stop"}, "override_trailing_take_profit": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's trailing-take-profit setting.", "title": "Override Trailing Take Profit"}, "override_leverage": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "For signal bots, override the source group's leverage setting.", "title": "Override Leverage"}, "status": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Bot status: INACTIVE=1, ACTIVE=2, INTERRUPTED=3, STOPPED_BY_USER=4, STOPPED_BY_SYSTEM=5, STOPPED_BY_SETTINGS=6, DELETED=7, STOPPED_BY_VALIDATION=8, SUBSCRIPTION_ENDED=9, SUBSCRIPTION_TYPE_CHANGED=10, STOPPED_BY_UNKNOWN_ERROR=11, EDITED=12, QUOTA_EXCEEDED=13, CLIENT_DELETED=14, CLIENT_DEACTIVATED=15, GROUP_SUBSCRIPTION_ENDED=16, GROUP_DELETED=17, ARCHIVED=18. Use \"empty\" to keep each bot\u2019s existing status.", "title": "Status"}, "skip_without_stoploss": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Whether signals without a stop-loss should be ignored.", "title": "Skip Without Stoploss"}, "stop_limit_price_reduction": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Stop-limit price multiplier. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Stop Limit Price Reduction"}, "stop_timeout": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Stop execution timeout in minutes. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Stop Timeout"}, "stop_type": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Stop order type: limit=1, market=2. Use \"empty\" to keep each bot\u2019s existing stop type.", "title": "Stop Type"}, "symbols": {"anyOf": [{"items": {}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Trading symbols. Use \"empty\" to keep each bot\u2019s existing symbols.", "title": "Symbols"}, "take_profit_strategy": {"anyOf": [{"discriminator": {"mapping": {"1": "#/components/schemas/CustomStrategyConfigurationSchema", "2": "#/components/schemas/DCAStrategyConfigurationSchema", "3": "#/components/schemas/BuiltinStrategyConfigurationSchema", "4": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema", "null": "#/components/schemas/LegacyStrategyConfigurationSchema"}, "propertyName": "strategy_style"}, "oneOf": [{"$ref": "#/components/schemas/CustomStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/DCAStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/BuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyBuiltinStrategyConfigurationSchema"}, {"$ref": "#/components/schemas/LegacyStrategyConfigurationSchema"}]}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Take-profit order strategy. Use \"empty\" to keep each bot\u2019s existing strategy.", "title": "Take Profit Strategy"}, "trailing_entry": {"anyOf": [{"type": "number"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Trailing-entry distance as a fraction where 0.01 means 1%. The frontend may send \"empty\" for mixed values or \"off\" to disable the override.", "title": "Trailing Entry"}, "trailing_stop": {"anyOf": [{"additionalProperties": true, "type": "object"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Trailing-stop configuration with type, value, and trigger={type, value}. Trailing-stop type: without=0, moving_target=1, percent_below_highest=2, breakeven=3, percent_below_triggers=4, moving_2_target=5. Trigger type: target=1, percent=2. Percentage values are fractions where 0.01 means 1%; a target trigger value is a target number. The frontend may send \"empty\" for mixed values or \"off\" to disable the override.", "title": "Trailing Stop"}, "trailing_take_profit": {"anyOf": [{"type": "number"}, {"enum": ["empty", "off"], "type": "string"}, {"type": "null"}], "description": "Trailing-take-profit distance as a fraction where 0.01 means 1%. The frontend may send \"empty\" for mixed values or \"off\" to disable the override.", "title": "Trailing Take Profit"}, "trailing_take_profit_last_target_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Whether trailing take-profit applies only to the last take-profit target.", "title": "Trailing Take Profit Last Target Only"}, "follow_futures_as_spot": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Opt in to following equivalent futures long signals on a Signals bot spot account without leverage.", "title": "Follow Futures As Spot"}, "alternative_usd_pairs": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "description": "Allowed alternative USD quote currencies for Signals bots, such as USDT or USDC.", "title": "Alternative Usd Pairs"}, "exchanges": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "TradingView Signals exchanges. Use \"empty\" to keep each bot\u2019s existing exchanges.", "title": "Exchanges"}, "blacklist_symbols": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "description": "Symbols the bot must ignore, in BASE/QUOTE form.", "title": "Blacklist Symbols"}, "blacklisted_operation_hours": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "description": "Blocked trading periods. Each item contains day (0-6), start_hour and end_hour in HH:MM format, and an IANA timezone such as Asia/Jerusalem.", "title": "Blacklisted Operation Hours"}, "take_profit_grace_percent": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Allowed take-profit price deviation as a fraction where 0.05 means 5%.", "title": "Take Profit Grace Percent"}, "take_profit_grace_target_exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Exchange identifier whose price is used for take-profit grace, for example bybit.", "title": "Take Profit Grace Target Exchange"}, "auto_cancel_timeout_seconds": {"anyOf": [{"type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Automatic cancellation timeout in seconds. Use \"empty\" to keep each bot\u2019s existing value.", "title": "Auto Cancel Timeout Seconds"}, "time_stop_seconds": {"anyOf": [{"maximum": 2592000, "minimum": 60, "type": "integer"}, {"const": "empty", "type": "string"}, {"type": "null"}], "default": "empty", "description": "Seconds after the first entry fill until market close, up to 30 days. Use \"empty\" to keep each bot\u2019s existing value or null to disable.", "title": "Time Stop Seconds"}, "daily_loss_limit_value": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Daily loss limit as a fraction where 0.05 means 5%.", "title": "Daily Loss Limit Value"}, "keyword_to_symbol_mapping": {"anyOf": [{"additionalProperties": {"type": "string"}, "type": "object"}, {"type": "null"}], "description": "Signal keyword to trading-symbol map, for example {\"GOLD\": \"PAXG/USDT\"}.", "title": "Keyword To Symbol Mapping"}, "long_exposure_ratio": {"anyOf": [{"type": "number"}, {"const": "empty", "type": "string"}, {"type": "null"}], "description": "Fixed long exposure for a Hedging bot, from 0 to 1. Use \"empty\" to keep the existing value.", "title": "Long Exposure Ratio"}, "bot_ids": {"description": "IDs of the bots to edit with the supplied settings", "items": {"type": "integer"}, "title": "Bot Ids", "type": "array"}}, "required": ["bot_type", "dca_bot_name", "amount_configuration", "bot_ids"], "title": "EditBotsSchema", "type": "object"}, "SetSubGroupTradingConfigurationSchema": {"properties": {"is_channel_configuration": {"title": "Is Channel Configuration", "type": "boolean"}, "exchange": {"title": "Exchange", "type": "string"}, "sub_group_ids": {"items": {"type": "integer"}, "title": "Sub Group Ids", "type": "array"}}, "required": ["is_channel_configuration", "exchange", "sub_group_ids"], "title": "SetSubGroupTradingConfigurationSchema", "type": "object"}, "GetSubGroupTradingConfigurationSchema": {"properties": {"exchange": {"title": "Exchange", "type": "string"}, "sub_group_id": {"title": "Sub Group Id", "type": "integer"}}, "required": ["exchange", "sub_group_id"], "title": "GetSubGroupTradingConfigurationSchema", "type": "object"}, "GetBotUuidSchema": {"properties": {"bot_id": {"title": "Bot Id", "type": "integer"}}, "required": ["bot_id"], "title": "GetBotUuidSchema", "type": "object"}, "TradesGraphDataSchema": {"properties": {"time_range": {"title": "Time Range", "type": "string"}, "timezone_difference": {"title": "Timezone Difference", "type": "number"}, "time_aggregation": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Time Aggregation"}}, "required": ["time_range", "timezone_difference"], "title": "TradesGraphDataSchema", "type": "object"}, "OpenTradesDataSchema": {"properties": {"run_as_job": {"default": false, "description": "If true, starts a background job and returns job_id; call get_job_results with that job_id.", "title": "Run As Job", "type": "boolean"}, "coin": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Coin"}, "exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Exchange"}, "account_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Account Id"}, "dca_bot_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dca Bot Id"}, "signal_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Signal Id"}, "filters": {"anyOf": [{"additionalProperties": true, "type": "object"}, {"type": "null"}], "title": "Filters"}, "add_extra_info": {"default": false, "title": "Add Extra Info", "type": "boolean"}, "should_limit": {"default": false, "title": "Should Limit", "type": "boolean"}, "trade_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Trade Ids"}, "ws_from_timestamp": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Ws From Timestamp"}, "include_closest_pending_order": {"default": false, "title": "Include Closest Pending Order", "type": "boolean"}, "add_price_graph_data": {"default": false, "title": "Add Price Graph Data", "type": "boolean"}, "is_backtesting": {"default": false, "title": "Is Backtesting", "type": "boolean"}}, "title": "OpenTradesDataSchema", "type": "object"}, "ClosedTradesDataSchema": {"properties": {"run_as_job": {"default": false, "description": "If true, starts a background job and returns job_id; call get_job_results with that job_id.", "title": "Run As Job", "type": "boolean"}, "coin": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Coin"}, "exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Exchange"}, "account_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Account Id"}, "dca_bot_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dca Bot Id"}, "signal_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Signal Id"}, "filters": {"anyOf": [{"additionalProperties": true, "type": "object"}, {"type": "null"}], "title": "Filters"}, "add_extra_info": {"default": false, "title": "Add Extra Info", "type": "boolean"}, "should_limit": {"default": false, "title": "Should Limit", "type": "boolean"}, "trade_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Trade Ids"}, "ws_from_timestamp": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Ws From Timestamp"}, "include_edited_status": {"default": false, "title": "Include Edited Status", "type": "boolean"}, "skip_limit": {"default": false, "title": "Skip Limit", "type": "boolean"}, "skip_aggregated_data": {"default": false, "title": "Skip Aggregated Data", "type": "boolean"}}, "title": "ClosedTradesDataSchema", "type": "object"}, "ExportFiltersSchema": {"properties": {"client_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Client Ids"}, "close_timestamp": {"anyOf": [{"$ref": "#/components/schemas/MinMaxFilterSchema"}, {"type": "null"}]}, "margin_type": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Margin Type"}, "multiplier": {"anyOf": [{"$ref": "#/components/schemas/MinMaxFilterSchema"}, {"type": "null"}]}, "open_timestamp": {"anyOf": [{"$ref": "#/components/schemas/MinMaxFilterSchema"}, {"type": "null"}]}, "reverse": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Reverse"}, "source": {"anyOf": [{"additionalProperties": {"items": {"type": "integer"}, "type": "array"}, "type": "object"}, {"type": "null"}], "title": "Source"}, "trade_types": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Trade Types"}}, "title": "ExportFiltersSchema", "type": "object"}, "ExportTradesSchema": {"properties": {"open_trades": {"default": true, "title": "Open Trades", "type": "boolean"}, "closed_trades": {"default": true, "title": "Closed Trades", "type": "boolean"}, "filters": {"anyOf": [{"$ref": "#/components/schemas/ExportFiltersSchema"}, {"type": "null"}]}}, "title": "ExportTradesSchema", "type": "object"}, "MinMaxFilterSchema": {"properties": {"min": {"title": "Min", "type": "integer"}, "max": {"title": "Max", "type": "integer"}}, "required": ["min", "max"], "title": "MinMaxFilterSchema", "type": "object"}, "AccountsChannelsSchema": {"properties": {"client_ids": {"items": {"type": "integer"}, "title": "Client Ids", "type": "array"}}, "required": ["client_ids"], "title": "AccountsChannelsSchema", "type": "object"}, "ExchangesChannelsSchema": {"properties": {"exchanges": {"items": {"type": "string"}, "title": "Exchanges", "type": "array"}}, "required": ["exchanges"], "title": "ExchangesChannelsSchema", "type": "object"}, "BacktestingRunSchema": {"properties": {"backtesting_run_id": {"title": "Backtesting Run Id", "type": "integer"}}, "required": ["backtesting_run_id"], "title": "BacktestingRunSchema", "type": "object"}, "BacktestingRunsSchema": {"properties": {"account_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Account Ids"}, "backtesting_run_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Backtesting Run Ids"}, "sub_group_ids": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Sub Group Ids"}, "symbol": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Symbol"}, "bot_type": {"default": 3, "title": "Bot Type", "type": "integer"}}, "title": "BacktestingRunsSchema", "type": "object"}, "ExportBacktestSchema": {"properties": {"backtesting_run_id": {"title": "Backtesting Run Id", "type": "integer"}}, "required": ["backtesting_run_id"], "title": "ExportBacktestSchema", "type": "object"}, "CheckExperienceConnectionRequestSchema": {"properties": {"code": {"title": "Code", "type": "string"}}, "required": ["code"], "title": "CheckExperienceConnectionRequestSchema", "type": "object"}, "ChangeExperienceConnectionStatusSchema": {"properties": {"sub_group_id": {"title": "Sub Group Id", "type": "integer"}, "status": {"title": "Status", "type": "integer"}}, "required": ["sub_group_id", "status"], "title": "ChangeExperienceConnectionStatusSchema", "type": "object"}, "RequestAssetManagerDemoSchema": {"properties": {"first_name": {"title": "First Name", "type": "string"}, "last_name": {"title": "Last Name", "type": "string"}, "email": {"title": "Email", "type": "string"}, "number_of_clients": {"title": "Number Of Clients", "type": "string"}, "estimated_aum": {"title": "Estimated Aum", "type": "string"}, "goals_and_challenges": {"title": "Goals And Challenges", "type": "string"}}, "required": ["first_name", "last_name", "email", "number_of_clients", "estimated_aum", "goals_and_challenges"], "title": "RequestAssetManagerDemoSchema", "type": "object"}, "CreatePayoutMethodSchema": {"properties": {"type": {"default": 1, "title": "Type", "type": "integer"}, "name": {"title": "Name", "type": "string"}, "source": {"default": 1, "title": "Source", "type": "integer"}, "email": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Email"}, "asset": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Asset"}, "network": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Network"}, "address": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Address"}, "tag": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Tag"}}, "required": ["name"], "title": "CreatePayoutMethodSchema", "type": "object"}, "EditPayoutMethodSchema": {"properties": {"payout_method_id": {"title": "Payout Method Id", "type": "integer"}, "name": {"title": "Name", "type": "string"}}, "required": ["payout_method_id", "name"], "title": "EditPayoutMethodSchema", "type": "object"}, "GetPayoutMethodsSchema": {"properties": {"source": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Source"}}, "title": "GetPayoutMethodsSchema", "type": "object"}, "GetAuthUrlSchema": {"properties": {"exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Exchange"}, "nested_exchange": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Nested Exchange"}, "exchange_to_client_name": {"anyOf": [{"additionalProperties": {"type": "string"}, "type": "object"}, {"type": "null"}], "title": "Exchange To Client Name"}, "client_base_name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Client Base Name"}, "user_auth_token": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "User Auth Token"}}, "title": "GetAuthUrlSchema", "type": "object"}, "CreateApiKeysSchema": {"properties": {"exchanges": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Exchanges"}, "exchange_to_client_name": {"anyOf": [{"additionalProperties": {"type": "string"}, "type": "object"}, {"type": "null"}], "title": "Exchange To Client Name"}}, "title": "CreateApiKeysSchema", "type": "object"}, "UtmSchema": {"properties": {"utm_user_uuid": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "title": "Utm User Uuid"}, "utm_id": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Utm Id"}, "utm_source": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Utm Source"}, "utm_medium": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Utm Medium"}, "utm_campaign": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Utm Campaign"}, "gclid": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Gclid"}, "click_id": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Click Id"}}, "title": "UtmSchema", "type": "object"}, "PositionExtraGeneralDataSchema": {"properties": {"symbol": {"title": "Symbol", "type": "string"}, "margin_type": {"title": "Margin Type", "type": "integer"}, "reverse": {"title": "Reverse", "type": "boolean"}}, "required": ["symbol", "margin_type", "reverse"], "title": "PositionExtraGeneralDataSchema", "type": "object"}, "SetEmailPreferencesSchema": {"properties": {"enabled": {"title": "Enabled", "type": "boolean"}, "topic": {"default": 1, "title": "Topic", "type": "integer"}}, "required": ["enabled"], "title": "SetEmailPreferencesSchema", "type": "object"}, "GetJobResultsSchema": {"properties": {"job_id": {"title": "Job Id", "type": "string"}}, "required": ["job_id"], "title": "GetJobResultsSchema", "type": "object"}, "SaveCancellationReasonRequest": {"properties": {"reason_id": {"title": "Reason Id", "type": "integer"}, "additional_text": {"default": "", "title": "Additional Text", "type": "string"}}, "required": ["reason_id"], "title": "SaveCancellationReasonRequest", "type": "object"}, "GetPaymentLinkSchema": {"properties": {"payment_type": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Payment Type"}, "number_of_clients": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Number Of Clients"}, "payment_option": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Payment Option"}, "email": {"default": "", "title": "Email", "type": "string"}}, "title": "GetPaymentLinkSchema", "type": "object"}, "GetPaymentStatusSchema": {"properties": {"invoice_id": {"title": "Invoice Id", "type": "string"}}, "required": ["invoice_id"], "title": "GetPaymentStatusSchema", "type": "object"}, "ApproveSubscriptionRequestSchema": {"properties": {"promo_code": {"title": "Promo Code", "type": "string"}, "product_id": {"title": "Product Id", "type": "string"}, "original_transaction_id": {"title": "Original Transaction Id", "type": "string"}, "transaction_id": {"title": "Transaction Id", "type": "string"}, "user_uuid": {"title": "User Uuid", "type": "string"}, "payment_option": {"title": "Payment Option", "type": "string"}, "payment_type": {"default": 1, "title": "Payment Type", "type": "integer"}, "verification_result_ios": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Verification Result Ios"}}, "required": ["promo_code", "product_id", "original_transaction_id", "transaction_id", "user_uuid", "payment_option"], "title": "ApproveSubscriptionRequestSchema", "type": "object"}, "GetUpgradePricesSchema": {"properties": {"payment_type": {"title": "Payment Type", "type": "integer"}, "number_of_clients": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Number Of Clients"}, "plan_type": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Plan Type"}, "promo_code": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Promo Code"}}, "required": ["payment_type"], "title": "GetUpgradePricesSchema", "type": "object"}, "BulkCancelSignalsSchema": {"properties": {"signal_ids": {"items": {"type": "integer"}, "title": "Signal Ids", "type": "array", "uniqueItems": true}}, "required": ["signal_ids"], "title": "BulkCancelSignalsSchema", "type": "object"}, "GetSignalCreateGeneralDataSchema": {"properties": {"symbol": {"description": "Trading symbol", "title": "Symbol", "type": "string"}, "exchanges": {"description": "List of exchange names", "items": {"type": "string"}, "title": "Exchanges", "type": "array"}, "sub_group_ids": {"description": "List of sub-group IDs", "items": {"type": "integer"}, "title": "Sub Group Ids", "type": "array"}}, "required": ["symbol", "exchanges", "sub_group_ids"], "title": "GetSignalCreateGeneralDataSchema", "type": "object"}, "CreateSignalSchema": {"properties": {"symbol": {"description": "Trading symbol (e.g., BTC/USDT)", "title": "Symbol", "type": "string"}, "exchanges": {"description": "List of exchange names", "items": {"type": "string"}, "title": "Exchanges", "type": "array"}, "signal_type": {"description": "Signal type (e.g., breakout=4, regular=1)", "title": "Signal Type", "type": "integer"}, "buy_section": {"description": "List of entry targets", "items": {"$ref": "#/components/schemas/TargetSchema"}, "title": "Buy Section", "type": "array"}, "sell_section": {"anyOf": [{"items": {"$ref": "#/components/schemas/TargetSchema"}, "type": "array"}, {"type": "null"}], "description": "List of take profit targets", "title": "Sell Section"}, "stop_section": {"anyOf": [{"items": {"$ref": "#/components/schemas/TargetSchema"}, "type": "array"}, {"type": "null"}], "description": "List of stop loss targets", "title": "Stop Section"}, "reverse": {"default": false, "description": "Whether the signal is reversed (short position)", "title": "Reverse", "type": "boolean"}, "margin_type": {"anyOf": [{"type": "integer"}, {"type": "null"}], "default": 1, "description": "Margin type (e.g., isolated=1, cross=2)", "title": "Margin Type"}, "leverage": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Leverage multiplier", "title": "Leverage"}, "cancel_on_first_target_reached": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "Whether to cancel signal on first target", "title": "Cancel On First Target Reached"}, "amount_type": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Amount configuration type", "title": "Amount Type"}, "amount_value": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Amount configuration value", "title": "Amount Value"}, "sub_group_ids": {"description": "List of sub-group IDs to create signal for", "items": {"type": "integer"}, "title": "Sub Group Ids", "type": "array"}, "trailing_entry": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Trailing entry percentage", "title": "Trailing Entry"}, "trailing_take_profit": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Trailing take profit percentage", "title": "Trailing Take Profit"}, "trailing_stop": {"anyOf": [{"$ref": "#/components/schemas/TrailingStopSchema"}, {"type": "null"}], "description": "Trailing stop loss configuration"}}, "required": ["symbol", "exchanges", "signal_type", "buy_section", "sub_group_ids"], "title": "CreateSignalSchema", "type": "object"}, "TargetSchema": {"properties": {"price": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Price"}, "ratio": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Ratio"}, "number": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Number"}}, "title": "TargetSchema", "type": "object"}, "TrailingStopSchema": {"properties": {"type": {"title": "Type", "type": "integer"}, "value": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Value"}, "trigger": {"$ref": "#/components/schemas/TrailingStopTriggerSchema"}}, "required": ["type", "trigger"], "title": "TrailingStopSchema", "type": "object"}, "TrailingStopTriggerSchema": {"properties": {"type": {"title": "Type", "type": "integer"}, "value": {"title": "Value", "type": "number"}}, "required": ["type", "value"], "title": "TrailingStopTriggerSchema", "type": "object"}, "CreateSubGroupCustomStrategySchema": {"properties": {"sub_group_id": {"description": "Sub-group ID", "title": "Sub Group Id", "type": "integer"}, "name": {"description": "Strategy name", "title": "Name", "type": "string"}, "buy_or_sell": {"description": "Buy or sell strategy type", "title": "Buy Or Sell", "type": "integer"}, "ratios": {"description": "List of target ratios", "items": {"type": "number"}, "title": "Ratios", "type": "array"}}, "required": ["sub_group_id", "name", "buy_or_sell", "ratios"], "title": "CreateSubGroupCustomStrategySchema", "type": "object"}}, "securitySchemes": {"Token": {"type": "apiKey", "in": "header", "name": "Authorization"}, "MCPToken": {"type": "apiKey", "in": "header", "name": "Authorization"}, "CreateAccountInviteToken": {"type": "apiKey", "in": "header", "name": "Authorization"}}}, "servers": []}