{"openapi":"3.1.0","info":{"title":"3Commas Public API (unofficial)","description":"This file is an updated OpenAPI file for 3Commas, that tries to be as close as possible to 3Commas official API (current state: 2023-04-04). <p/> Even though most of the endpoint descriptions should already work, this file is still work in progress. <p/> To use the OpenAPI file in other tools or just to download it use the following <a href=\"httpssi://api.swaggerhub.com/apis/d_yo_r/3commas_openapidoc.yml/0.0.1\"> address of the definition itself</a> without the additional context of this homepage. <p/> To generate client and server code from that file visit the correstionding <a href=\"https://app.swaggerhub.com/apis/d_yo_r/3commas_openapidoc.yml/0.0.1\"> 3Commas Public API (unofficial) at SwaggerHub</a>. <p/> To use this file, you have to generate a signature for most of the endpoints. You can use <a href=\"https://sites.google.com/view/tiny-trading-toolbox/welcome/api/3commas/signature-calculator\"> my signature calculator</a> to do so. Check its code if you like, too. <p/> There's still some work to do to check whether all endpoints are fully functional. Further, missing response bodies have to be added, the file has to be modularized more, further type schemas should be added, ... You can find most of the TODO's by searching for TODO. Or check the <a href=\"https://ratemyopenapi.com/report/b7b22c65-74c1-45c2-a0a0-94e957ca3bb4\">report of Rate My OpenAPI</a>.\n<h2>Disclaimer</h2> <p/> <b><i>Use at your own risk.</i></b>\n<h2>Security advice</h2> <p/> Never ever publish your <i>webhook's email_token</i>, since it is unchangeable for you and valid for your whole 3Commas account. <b><i>Please, else directly contact 3Commas' support to reset it.</i></b> <p/> Also never ever publish your <i>API secret</i>. <b><i>Please, else directly delete your API key and create a new one.</i></b>\n<h2>Final notes</h2> <p/> In case, you want to help me, to <i>improve this file</i>, feel free to contact me at Telegram @d_yo_r.\n<p/> And please, always do your own research!\n","contact":{"name":"3Commas Public API","url":"https://github.com/3commas-io/3commas-official-api-docs"},"version":"0.0.1-oas3.1"},"servers":[{"url":"https://api.3commas.io/public/api","description":"API server"}],"tags":[{"name":"ping","description":"Test connectivity"},{"name":"time","description":"Get 3Commas' server time"},{"name":"general_validate","description":"Validating API credentials"},{"name":"mini_apps","description":"Operations about mini_apps"},{"name":"users","description":"Operations about users"},{"name":"portfolios","description":"Operations about portfolios"},{"name":"loose_accounts","description":"Operations about loose_accounts"},{"name":"accounts","description":"Operations about accounts"},{"name":"bots","description":"Operations about bots"},{"name":"deals","description":"Operations about deals"},{"name":"smart_trades_v2","description":"Operations about smart_trades_v2s"},{"name":"grid_bots","description":"Operations about grid_bots"},{"name":"marketplace","description":"Operations about marketplaces"},{"name":"webhooks","description":"Operations about webhooks"},{"name":"streams","description":"Operations about streams. <p/> Be aware, that this probably is not functional and currently could only be defined using <a href='https://www.asyncapi.com/'>Async API</a>. In a later version of OpenAPI it may be possible to do it with that as well.\n"}],"paths":{"/ver1/ping":{"get":{"security":[],"tags":["ping"],"description":"Test connectivity to the Rest API (Permission: NONE, Security: NONE)\n","operationId":"getVer1Ping","responses":{"200":{"$ref":"#/components/responses/PingResponse"}}}},"/ver1/time":{"get":{"security":[],"tags":["time"],"description":"Test connectivity to the Rest API and get the current server time (Permission: NONE, Security: NONE)\n","operationId":"getVer1Time","responses":{"200":{"$ref":"#/components/responses/TimeResponse"}}}},"/ver1/validate":{"get":{"tags":["general_validate"],"description":"Api credentials validity check (Permission: NONE, Security: SIGNED)\n","operationId":"getVer1Validate","responses":{"200":{"$ref":"#/components/responses/ValidateResponse"},"401":{"description":"Provided signature is invalid","$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/mini_apps/credentials":{"get":{"security":[],"tags":["mini_apps"],"description":"Fetch API credentials by token\n","operationId":"getVer1MiniAppsCredentials","parameters":[{"$ref":"#/components/parameters/miniAppsTokenParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"},"404":{"description":"Not Found","$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/mini_apps/storage":{"get":{"tags":["mini_apps"],"description":"Fetch data from storage (Security: SIGNED)\n","operationId":"getVer1MiniAppsStorage","parameters":[{"$ref":"#/components/parameters/miniAppsKeyParam"}],"responses":{"200":{"$ref":"#/components/responses/StorageResponse"},"403":{"description":"Api key must be created by Mini App","$ref":"#/components/responses/ErrorResponse"}}},"post":{"tags":["mini_apps"],"description":"Write data into storage (Security: SIGNED)\n","operationId":"postVer1MiniAppsStorage","requestBody":{"$ref":"#/components/requestBodies/StorageRequest"},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"},"201":{"$ref":"#/components/responses/TodoResponse"},"403":{"description":"Api key must be created by Mini App","$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/users/locale":{"put":{"tags":["users"],"description":"Change user locale (Security: SIGNED)\n","operationId":"putVer1UsersLocale","requestBody":{"$ref":"#/components/requestBodies/LocaleRequest"},"responses":{"200":{"$ref":"#/components/responses/BooleanResponse"}}}},"/ver1/users/permissions_info":{"get":{"tags":["users"],"description":"Api Key Permissions (Permission: NONE, Security: SIGNED)\n","operationId":"getVer1UsersPermissionsInfo","responses":{"200":{"$ref":"#/components/responses/UserPermissionResponse"}}}},"/ver1/users/current_mode":{"get":{"tags":["users"],"description":"Current User Mode (Paper or Real) (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1UsersCurrentMode","responses":{"200":{"$ref":"#/components/responses/UserCurrentModeResponse"}}}},"/ver1/users/change_mode":{"post":{"tags":["users"],"description":"Change User Mode (Paper or Real) (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1UsersChangeMode","requestBody":{"$ref":"#/components/requestBodies/UserChangeModeRequest"},"responses":{"201":{"$ref":"#/components/responses/BooleanResponse"}}}},"/ver1/portfolios":{"get":{"tags":["portfolios"],"description":"Show portfolios list (Permission: NONE, Security: SIGNED)\n","operationId":"getVer1Portfolios","parameters":[{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/perPageParam"}],"responses":{"200":{"$ref":"#/components/responses/PortfoliosResponse"}}}},"/ver1/portfolios/{portfolio_id}":{"get":{"tags":["portfolios"],"description":"Show portfolio info (Permission: NONE, Security: SIGNED)\n","operationId":"getVer1PortfoliosId","parameters":[{"$ref":"#/components/parameters/portfolioIdParam"}],"responses":{"200":{"$ref":"#/components/responses/PortfolioResponse"}}}},"/ver1/loose_accounts":{"post":{"tags":["loose_accounts"],"description":"Create Loose Account (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1LooseAccounts","requestBody":{"$ref":"#/components/requestBodies/LooseAccountsCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/LooseAccountResponse"}}}},"/ver1/loose_accounts/available_currencies":{"get":{"tags":["loose_accounts"],"description":"Available currencies (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1LooseAccountsAvailableCurrencies","parameters":[{"$ref":"#/components/parameters/containsParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"}],"responses":{"200":{"$ref":"#/components/responses/LooseAccountsAvailableCurrenciesResponse"}}}},"/ver1/loose_accounts/{account_id}":{"put":{"tags":["loose_accounts"],"description":"Update Loose Account (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"putVer1LooseAccountsAccountId","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/LooseAccountsUpdateRequest"},"responses":{"200":{"$ref":"#/components/responses/LooseAccountResponse"},"401":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/market_list":{"get":{"tags":["accounts"],"description":"Supported markets list (Permission: NONE, Security: NONE)\n","security":[],"operationId":"getVer1AccountsMarketList","responses":{"200":{"$ref":"#/components/responses/MarketListResponse"}}}},"/ver1/accounts/market_pairs":{"get":{"tags":["accounts"],"description":"All market pairs (Permission: NONE, Security: NONE)\n","security":[],"operationId":"getVer1AccountsMarketPairs","parameters":[{"$ref":"#/components/parameters/marketCodeParam"}],"responses":{"200":{"$ref":"#/components/responses/MarketPairsResponse"}}}},"/v2/accounts/market_pairs":{"get":{"tags":["accounts"],"description":"All market pairs (Permission: NONE, Security: NONE)\n","security":[],"operationId":"getV2AccountsMarketPairs","parameters":[{"$ref":"#/components/parameters/marketCodeParam"}],"responses":{"200":{"$ref":"#/components/responses/MarketPairsResponse"}}}},"/ver1/accounts/currency_rates":{"get":{"tags":["accounts"],"description":"Currency rates and limits (Permission: NONE, Security: NONE) If you are retrieving data for pairs, you must also include market_code\n","security":[],"operationId":"getVer1AccountsCurrencyRates","parameters":[{"$ref":"#/components/parameters/marketCodeRequiredParam"},{"$ref":"#/components/parameters/pairRequiredParam"},{"$ref":"#/components/parameters/limitTypeParam"}],"responses":{"200":{"$ref":"#/components/responses/CurrencyRatesResponse"},"400":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/currency_rates_with_leverage_data":{"get":{"tags":["accounts"],"description":"Currency rates and limits with leverage data (Permission: NONE, Security: NONE)\n","security":[],"operationId":"getVer1AccountsCurrencyRatesWithLeverageData","parameters":[{"$ref":"#/components/parameters/marketCodeRequiredParam"},{"$ref":"#/components/parameters/pairsRequiredParam"}],"responses":{"200":{"$ref":"#/components/responses/CurrencyRatesWithLeverageResponse"}}}},"/ver1/accounts":{"get":{"tags":["accounts"],"description":"User connected exchanges (and EthereumWallet) list (Permission: ACCOUNTS_READ, Security: SIGNED) +\n","operationId":"getVer1Accounts","parameters":[{"$ref":"#/components/parameters/apiKeyParam"},{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/perPageParam"}],"responses":{"200":{"$ref":"#/components/responses/AccountsResponse"},"401":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/types_to_connect":{"get":{"tags":["accounts"],"description":"Available market subtypes to connect\n","operationId":"getVer1AccountsTypesToConnect","parameters":[{"$ref":"#/components/parameters/marketTypeParam"},{"$ref":"#/components/parameters/nameParam"},{"$ref":"#/components/parameters/apiKeyParam"},{"$ref":"#/components/parameters/secretParam"}],"responses":{"200":{"$ref":"#/components/responses/TypesToConnectResponse"},"422":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/new":{"post":{"tags":["accounts"],"description":"Add exchange account  (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsNew","requestBody":{"$ref":"#/components/requestBodies/AccountsCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/AccountsNewResponse"},"400":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/update":{"post":{"tags":["accounts"],"description":"Edit exchange account","operationId":"postVer1AccountsUpdate","requestBody":{"$ref":"#/components/requestBodies/AccountsUpdateRequest"},"responses":{"201":{"$ref":"#/components/responses/AccountsUpdateResponse"},"400":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/{account_id}/load_balances":{"post":{"tags":["accounts"],"description":"Load balances for specified exchange  (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdLoadBalances","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"201":{"$ref":"#/components/responses/AccountResponse"}}}},"/ver1/accounts/{account_id}":{"get":{"tags":["accounts"],"description":"Single Account Info (Permission: ACCOUNTS_READ, Security: SIGNED)\nYou can send 'summary' instead of {account_id} to get summary account info\n","operationId":"getVer1AccountsAccountId","parameters":[{"$ref":"#/components/parameters/accountIdOrSummaryRequiredPathParam"}],"responses":{"200":{"$ref":"#/components/responses/AccountResponse"}}}},"/ver1/accounts/{account_id}/rename":{"post":{"tags":["accounts"],"description":"Rename exchange connection  (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdRename","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/AccountRenameRequest"},"responses":{"201":{"$ref":"#/components/responses/AccountResponse"}}}},"/ver1/accounts/{account_id}/remove":{"post":{"tags":["accounts"],"description":"Remove exchange connection  (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdRemove","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"201":{"$ref":"#/components/responses/BooleanResponse"}}}},"/ver1/accounts/{account_id}/active_trading_entities":{"get":{"tags":["accounts"],"description":"Active trade entities (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsAccountIdActiveTradingEntities","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"$ref":"#/components/responses/AccountActiveTradingEntitiesResponse"}}}},"/ver1/accounts/{account_id}/networks_info":{"get":{"tags":["accounts"],"description":"Deposit/withdraw networks info (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsAccountIdNetworksInfo","parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/depositWithdrawParam"}],"responses":{"200":{"$ref":"#/components/responses/AccountNetworksInfoResponse"},"403":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/transfer_data":{"get":{"tags":["accounts"],"description":"Data for transfer between accounts (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsTransferData","responses":{"200":{"$ref":"#/components/responses/TodoResponse"},"404":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/transfer":{"post":{"tags":["accounts"],"description":"Transfer coins between accounts (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsTransfer","requestBody":{"$ref":"#/components/requestBodies/AccountsTransferRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"},"404":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/transfer_history":{"get":{"tags":["accounts"],"description":"Transfers history (Permission:d ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsTransferHistory","parameters":[{"$ref":"#/components/parameters/accountIdTransferQueryRequiredParam"},{"$ref":"#/components/parameters/currencyRequiredParam"},{"$ref":"#/components/parameters/startTimeParam"},{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/perPageParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/accounts/{account_id}/deposit_data":{"get":{"tags":["accounts"],"description":"User Deposit Data (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsAccountIdDepositData","parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/currencyRequiredParam"},{"$ref":"#/components/parameters/networkRequiredParam"}],"responses":{"200":{"description":"Deposit data response","content":{"application/json":{"schema":{"description":"Deposit data","properties":{"address":{"type":"string","examples":["abcdefghijklmnopqrstuvwxyz12345890"]},"address_tag":{"type":"string","examples":[""]},"qr_image_path":{"type":"string","examples":["/qr/code?code=abcdefghijklmnopqrstuvwxyz12345890"]},"address_tag_qr_path":{"type":"string","examples":["/qr/code?code="]},"available_balance":{"type":"string","format":"double","examples":["12345.12345678"]},"in_orders":{"type":"string","format":"double","examples":["12345.12345678"]},"total_balance":{"type":"string","format":"double","examples":["12345.12345678"]}}}}}}}}},"/ver1/accounts/{account_id}/account_table_data":{"post":{"tags":["accounts"],"description":"Information about all user balances on specified exchange  (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdAccountTableData","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"201":{"description":"Account table data response","content":{"application/json":{"schema":{"type":"array","items":{"description":"Account table data","properties":{"currency_code":{"$ref":"#/components/schemas/SymbolStringType"},"currency_name":{"type":"string"},"currency_icon":{"type":"string","format":"url"},"currency_slug":{"$ref":"#/components/schemas/SymbolStringType"},"percentage":{"type":"number","format":"double"},"position":{"type":"number","format":"double"},"position_type":{"type":"number","format":"double"},"borrowed":{"type":"number","format":"double"},"on_orders":{"type":"number","format":"double"},"on_orders_long":{"type":"number","format":"double"},"on_orders_short":{"type":"number","format":"double"},"equity":{"type":"number","format":"double"},"current_price":{"type":"number","format":"double"},"current_price_usd":{"type":"number","format":"double"},"day_change_percent":{"type":"number","format":"double"},"day_change_percent_btc":{"type":"number","format":"double"},"day_change_percent_usd":{"type":"number","format":"double"},"btc_value":{"type":"number","format":"double"},"usd_value":{"type":"number","format":"double"},"available_long":{"type":"number","format":"double"},"available_short":{"type":"number","format":"double"},"available_with_leverage_long":{"type":"number","format":"double"},"available_with_leverage_short":{"type":"number","format":"double"},"account_id":{"type":"number","format":"integer"},"is_wallet":{"type":"boolean"}}}}}}}}}},"/ver1/accounts/{account_id}/balance_chart_data":{"get":{"tags":["accounts"],"description":"balance history data (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsAccountIdBalanceChartData","parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/dateFilterDateFromRequiredParam"},{"$ref":"#/components/parameters/dateFilterDateToParam"}],"responses":{"200":{"description":"Balance chart data response","content":{"application/json":{"schema":{"type":"array","items":{"description":"Balance chart data","properties":{"date":{"type":"string","format":"date"},"usd":{"type":"number","format":"double"},"btc":{"type":"number","format":"double"},"btc_deposit_amount":{"type":"number","format":"double"},"usd_deposit_amount":{"type":"number","format":"double"}}}}}}}}}},"/ver1/accounts/{account_id}/pie_chart_data":{"post":{"tags":["accounts"],"description":"Information about all user balances on specified exchange in pretty for pie chart format (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdPieChartData","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"201":{"description":"Pie chart data response","content":{"application/json":{"schema":{"type":"array","items":{"description":"Balance chart data","properties":{"code":{"type":"string","examples":["EUR"]},"coinmarketcapid":{"type":"string","format":"integer","examples":[825]},"name":{"type":"string","examples":["EUR (EUR)"]},"y":{"type":"number","format":"double","examples":[12.3]},"percentage":{"type":"number","format":"double","examples":[12.3]},"amount":{"type":"number","format":"double","examples":[123.456789]},"btc_value":{"type":"string","format":"double","examples":["1.23456789"]},"usd_value":{"type":"string","format":"double","examples":["1.23456789"]},"primary_display_currency":{"type":"object","properties":{"currency":{"type":"string","examples":["USD"]},"amount":{"type":"string","format":"double","examples":["1234.123412341234123412341234123412341234"]}}},"account_id":{"$ref":"#/components/schemas/AccountIdType"}}}}}}}}}},"/ver1/accounts/{account_id}/leverage_data":{"get":{"tags":["accounts"],"description":"Information about account leverage (Permission: ACCOUNTS_READ, Security: SIGNED)\n","operationId":"getVer1AccountsAccountIdLeverageData","parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/pairRequiredParam"}],"responses":{"200":{"description":"Leverage data response","content":{"application/json":{"schema":{"type":"array","items":{"description":"Leverage data","properties":{"code":{"type":"string","enum":["cross","isolated"]},"name":{"type":"string","enum":["Cross","Isolated"]},"can_set_leverage_value":{"type":"boolean"},"available_leverage_values":{"type":"array","items":{"description":"TODO"},"properties":{"todo":{"type":"string"}}},"valid":{"description":"Balance chart data","properties":{"min":{"type":"string","format":"double","examples":["1.0"]},"max":{"type":"string","format":"double","examples":["125.0"]}}}}}}}}}}}},"/ver1/accounts/{account_id}/convert_dust_to_bnb":{"post":{"tags":["accounts"],"description":"Convert dust coins to BNB (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdConvertDustToBnb","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/AccountsConvertDustToBnbRequest"},"responses":{"201":{"description":"Sell all to USD response","content":{"application/json":{"schema":{"description":"Sell all to USD","properties":{"totalTransfered":{"type":"string","format":"double","examples":["0.00000001"]},"totalServiceCharge":{"type":"string","format":"integer","examples":["0"]},"transferResult":{"type":"array","items":{"description":"Leverage data","properties":{"tranId":{"type":"integer"},"fromAsset":{"$ref":"#/components/schemas/SymbolStringType"},"amount":{"type":"string","format":"double"},"transferedAmount":{"type":"string","format":"double","examples":["0.00000001"]},"serviceChargeAmount":{"type":"string","format":"integer","examples":["0"]},"operateTime":{"$ref":"#/components/schemas/TimeUnitType"}}}}}}}}},"422":{"description":"Coin not found","$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/{account_id}/sell_all_to_usd":{"post":{"tags":["accounts"],"description":"Sell all to USD  (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdSellAllToUsd","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"},"403":{"description":"Forbidden. Unavailable for this account.","$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/accounts/{account_id}/sell_all_to_btc":{"post":{"tags":["accounts"],"description":"Sell all to BTC  (Permission: ACCOUNTS_WRITE, Security: SIGNED)\n","operationId":"postVer1AccountsAccountIdSellAllToBtc","parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"},"403":{"description":"Forbidden. Unavailable for this account.","$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/bots/account_trade_info_smart_sell":{"get":{"tags":["bots"],"description":"Smart Sell Account Table Info (Permission: NONE, Security: SIGNED)\n","operationId":"getVer1BotsAccountTradeInfoSmartSell","parameters":[{"$ref":"#/components/parameters/apiKeyParam"},{"$ref":"#/components/parameters/accountIdQueryRequiredParam"}],"responses":{"200":{"description":"Sell all to USD response","content":{"application/json":{"schema":{"description":"Sell all to USD","properties":{"available_for_sell_balances":{"type":"array","items":{"description":"Symbol (SymbolStringType) - Amount","type":"object","additionalProperties":{"type":"string","format":"double"},"examples":[{"USDT":"0.01","BTC":"0.000000001"}]}},"ticker":{"description":"Current ticker for all pairs of the current exchange's market<p/> Why isn't that a separate endpoint which only returns only the ticker that is currently needed?\n","type":"array","items":{"description":"Pair - Current ticker data","type":"object","additionalProperties":{"type":"object","properties":{"last":{"type":"string","format":"double","examples":["0.066703"]},"bid":{"type":"string","format":"double","examples":["0.066703"]},"ask":{"type":"string","format":"double","examples":["0.066704"]},"name":{"type":"string","examples":["Ethereum"]},"orderbook_ask":{"type":"string","format":"double","examples":["0.066704"]},"orderbook_bid":{"type":"string","format":"double","examples":["0.066703"]},"orderbook_last":{"type":"string","format":"double","examples":["0.066703"]},"orderbook_price_currency":{"$ref":"#/components/schemas/SymbolStringType"},"strategy_name":{"type":"string","examples":["orderbook_price"]},"contract_strategy_name":{"type":"string","examples":["orderbook_price"]},"minPrice":{"type":"string","format":"double","examples":["0.000001"]},"maxPrice":{"type":"string","format":"double","examples":["922327.0"]},"priceStep":{"type":"string","format":"double","examples":["0.000001"]},"minLotSize":{"type":"string","format":"double","examples":["0.0001"]},"lotStep":{"type":"string","format":"double","examples":["0.0001"]},"maxMarketBuyAmount":{"type":"string","format":"double","examples":["1527.51364395"]},"maxMarketSellAmount":{"type":"string","format":"double","examples":["1527.51364395"]},"priceMultiplierDown":{"type":"string","format":"double","examples":["0.2"]},"priceMultiplierUp":{"type":"string","format":"double","examples":["5.0"]},"minTotal":{"type":"string","format":"double","examples":["0.0001"]},"minMarketTotal":{"type":"string","format":"double","examples":["0.0001"]},"maxTotal":{"type":"string","format":"double","examples":["9000000.0"]},"maxLotSize":{"type":"string","format":"double","examples":["100000.0"]}}},"examples":[{"last":"0.066703","bid":"0.066703","ask":"0.066704","name":"Ethereum","orderbook_ask":"0.066704","orderbook_bid":"0.066703","orderbook_last":"0.066703","orderbook_price_currency":"BTC","strategy_name":"orderbook_price","contract_strategy_name":"orderbook_price","minPrice":"0.000001","maxPrice":"922327.0","priceStep":"0.000001","minLotSize":"0.0001","lotStep":"0.0001","maxMarketBuyAmount":"1527.51364395","maxMarketSellAmount":"1527.51364395","priceMultiplierDown":"0.2","priceMultiplierUp":"5.0","minTotal":"0.0001","minMarketTotal":"0.0001","maxTotal":"9000000.0","maxLotSize":"100000.0"}]}}}}}}}}}},"/ver1/bots/account_trade_info":{"get":{"description":"Account Trade Info (Permission: NONE, Security: SIGNED)\n","tags":["bots"],"operationId":"getVer1BotsAccountTradeInfo","parameters":[{"$ref":"#/components/parameters/accountIdQueryRequiredParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"},"400":{"$ref":"#/components/responses/ErrorResponse"},"401":{"$ref":"#/components/responses/ErrorResponse"},"404":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/bots/strategy_list":{"get":{"tags":["bots"],"description":"Available strategy list for bot (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsStrategyList","parameters":[{"$ref":"#/components/parameters/accountIdQueryParam"},{"$ref":"#/components/parameters/botQueryParam"},{"$ref":"#/components/parameters/strategyParam"}],"responses":{"200":{"$ref":"#/components/responses/BotsStrategyListResponse"}}}},"/ver1/bots/pairs_black_list":{"get":{"tags":["bots"],"description":"Black List for bot pairs (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsPairsBlackList","responses":{"200":{"$ref":"#/components/responses/BotsPairsBlackListResponse"}}}},"/ver1/bots/update_pairs_black_list":{"post":{"tags":["bots"],"description":"Create or Update pairs BlackList for bots (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsUpdatePairsBlackList","requestBody":{"$ref":"#/components/requestBodies/BotsUpdatePairsBlackListRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/create_bot":{"post":{"tags":["bots"],"description":"Create bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsCreateBot","requestBody":{"$ref":"#/components/requestBodies/BotCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots":{"get":{"tags":["bots"],"description":"User bots (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1Bots","parameters":[{"$ref":"#/components/parameters/botShowLimitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/dateFilterFromParam"},{"$ref":"#/components/parameters/accountIdQueryParam"},{"$ref":"#/components/parameters/activationParam"},{"$ref":"#/components/parameters/strategyParam"},{"$ref":"#/components/parameters/sortByParam"},{"$ref":"#/components/parameters/sortDirectionParam"},{"$ref":"#/components/parameters/quoteParam"},{"$ref":"#/components/parameters/botFormTypeParam"}],"responses":{"200":{"$ref":"#/components/schemas/MarketplaceBotEntities"}}}},"/ver1/bots/stats_by_date":{"get":{"tags":["bots"],"description":"Get bot stats by date (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsStatsByDate","parameters":[{"$ref":"#/components/parameters/dateRequiredParam"},{"$ref":"#/components/parameters/accountIdQueryParam"},{"$ref":"#/components/parameters/botIdQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/stats":{"get":{"tags":["bots"],"description":"Get bot stats (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsStats","parameters":[{"$ref":"#/components/parameters/accountIdQueryParam"},{"$ref":"#/components/parameters/botIdQueryParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/profit_by_day":{"get":{"tags":["bots"],"description":"Get bot profits grouped by day (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsIdProfitByDay","parameters":[{"$ref":"#/components/parameters/botIdParam"},{"name":"days","in":"query","schema":{"$ref":"#/components/schemas/TimeUnitType"}}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/copy_and_create":{"post":{"tags":["bots"],"description":"POST /bots/:id/copy_and_create. Permission: BOTS_WRITE, Security: SIGNED\n","operationId":"postVer1BotsBotIdCopyAndCreate","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/BotCopyAndCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/update":{"patch":{"tags":["bots"],"description":"Edit bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"patchVer1BotsBotIdUpdate","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/BotUpdateRequest"},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/disable":{"post":{"tags":["bots"],"description":"Disable bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsBotIdDisable","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"responses":{"201":{"$ref":"#/components/responses/BotResponse"}}}},"/ver1/bots/{bot_id}/enable":{"post":{"tags":["bots"],"description":"Enable bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsBotIdEnable","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/start_new_deal":{"post":{"tags":["bots"],"description":"Start new deal asap (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsBotIdStartNewDeal","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/BotStartNewDealRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/delete":{"post":{"tags":["bots"],"description":"Delete bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsBotIdDelete","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"responses":{"201":{"$ref":"#/components/responses/BooleanResponse"},"403":{"$ref":"#/components/responses/ErrorResponse"}}}},"/ver1/bots/{bot_id}/panic_sell_all_deals":{"post":{"tags":["bots"],"description":"Panic sell all bot deals (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsBotIdPanicSellAllDeals","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/cancel_all_deals":{"post":{"tags":["bots"],"description":"Cancel all bot deals (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1BotsBotIdCancelAllDeals","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/deals_stats":{"get":{"tags":["bots"],"description":"Bot deals stats (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsBotIdDealsStats","parameters":[{"$ref":"#/components/parameters/botIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/bots/{bot_id}/show":{"get":{"tags":["bots"],"description":"Bot info (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1BotsBotIdShow","parameters":[{"$ref":"#/components/parameters/botIdParam"},{"name":"include_events","in":"query","schema":{"type":"boolean","default":false}}],"responses":{"200":{"$ref":"#/components/schemas/MarketplaceBotEntity"}}}},"/ver1/deals":{"get":{"tags":["deals"],"description":"User deals (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1Deals","parameters":[{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/dateFilterFromParam"},{"$ref":"#/components/parameters/dateFilterToParam"},{"$ref":"#/components/parameters/accountIdQueryParam"},{"$ref":"#/components/parameters/botIdQueryParam"},{"name":"note","in":"query","description":"Note","schema":{"type":"string"}},{"name":"scope","in":"query","description":"active - active deals, finished - finished deals, completed - successfully completed, cancelled - cancelled deals, failed - failed deals, any other value or null (default) - all deals\n","schema":{"type":"string"}},{"name":"order","in":"query","schema":{"$ref":"#/components/schemas/SortByDealsEnum"}},{"$ref":"#/components/parameters/orderDirectionParam"},{"$ref":"#/components/parameters/baseParam"},{"$ref":"#/components/parameters/quoteParam"}],"responses":{"200":{"$ref":"#/components/responses/DealsResponse"}}}},"/ver1/deals/{deal_id}/convert_to_smart_trade":{"post":{"tags":["deals"],"description":"Convert to smart trade (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postVer1DealsDealIdConvertToSmartTrade","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/DealConvertToSmartTradeRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/update_max_safety_orders":{"post":{"tags":["deals"],"description":"Update max safety orders (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1DealsDealIdUpdateMaxSafetyOrders","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/DealUpdateMaxSafetyOrdersRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/panic_sell":{"post":{"tags":["deals"],"description":"Panic sell deal (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1DealsDealIdPanicSell","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/cancel":{"post":{"tags":["deals"],"description":"Cancel deal (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1DealsDealIdCancel","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/update_deal":{"patch":{"tags":["deals"],"description":"Update deal (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"patchVer1DealsDealIdUpdateDeal","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/DealUpdateRequest"},"responses":{"200":{"$ref":"#/components/responses/DealResponse"}}}},"/ver1/deals/{deal_id}/show":{"get":{"tags":["deals"],"description":"Info about specific deal (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1DealsDealIdShow","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"responses":{"200":{"$ref":"#/components/responses/DealResponse"}}}},"/ver1/deals/{deal_id}/cancel_order":{"post":{"tags":["deals"],"description":"Cancel manual safety orders (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1DealsDealIdCancelOrder","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/DealCancelOrderRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/market_orders":{"get":{"tags":["deals"],"description":"Deal safety orders (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1DealsDealIdMarketOrders","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/add_funds":{"post":{"tags":["deals"],"description":"Adding manual safety order (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1DealsDealIdAddFunds","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/DealAddFundsRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/deals/{deal_id}/data_for_adding_funds":{"get":{"tags":["deals"],"description":"Info required to add funds correctly: available amounts, exchange limitations etc  (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1DealsDealIdDataForAddingFunds","parameters":[{"$ref":"#/components/parameters/dealIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades":{"get":{"tags":["smart_trades_v2"],"description":"Get smart trade history (Permission: SMART_TRADE_READ, Security: SIGNED)\n","operationId":"getV2SmartTrades","parameters":[{"$ref":"#/components/parameters/accountIdQueryParam"},{"$ref":"#/components/parameters/pairParam"},{"$ref":"#/components/parameters/smartTradeTypeParam"},{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/perPageParam"},{"$ref":"#/components/parameters/smartTradeStatusParam"},{"$ref":"#/components/parameters/smartTradeOrderByParam"},{"$ref":"#/components/parameters/orderDirectionParam"},{"$ref":"#/components/parameters/dateFilterFromParam"},{"$ref":"#/components/parameters/dateFilterToParam"},{"$ref":"#/components/parameters/baseParam"},{"$ref":"#/components/parameters/quoteParam"}],"responses":{"200":{"$ref":"#/components/responses/SmartTradesResponse"}}},"post":{"tags":["smart_trades_v2"],"description":"Create smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTrades","requestBody":{"$ref":"#/components/requestBodies/SmartTradeCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/reduce_funds_info":{"get":{"tags":["smart_trades_v2"],"description":"Reduce funds for smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"getV2SmartTradesIdReduceFundsInfo","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}":{"get":{"tags":["smart_trades_v2"],"description":"Get smart trade v2 by id (Permission: SMART_TRADE_READ, Security: SIGNED)\n","operationId":"getV2SmartTradesId","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"200":{"$ref":"#/components/responses/SmartTradeResponse"}}},"delete":{"tags":["smart_trades_v2"],"description":"Cancel smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"deleteV2SmartTradesId","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"204":{"$ref":"#/components/responses/TodoResponse"}}},"patch":{"tags":["smart_trades_v2"],"description":"Update smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"patchV2SmartTradesId","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/SmartTradeUpdateRequest"},"responses":{"200":{"$ref":"#/components/responses/SmartTradeResponse"}}}},"/v2/smart_trades/{smart_trade_id}/reduce_funds":{"post":{"tags":["smart_trades_v2"],"description":"Reduce funds for smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesIdReduceFunds","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/SmartTradeReduceFundsRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/add_funds":{"post":{"tags":["smart_trades_v2"],"description":"Average for smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesIdAddFunds","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/SmartTradeAddFundsRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/close_by_market":{"post":{"tags":["smart_trades_v2"],"description":"Close by market smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesIdCloseByMarket","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/force_start":{"post":{"tags":["smart_trades_v2"],"description":"Force start smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesIdForceStart","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/force_process":{"post":{"tags":["smart_trades_v2"],"description":"Process smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesIdForceProcess","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/set_note":{"post":{"tags":["smart_trades_v2"],"description":"Set note to smart trade v2 (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesIdSetNote","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/SmartTradeSetNoteRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/trades":{"get":{"tags":["smart_trades_v2"],"description":"Get smart trade v2 trades (Permission: SMART_TRADE_READ, Security: SIGNED)\n","operationId":"getV2SmartTradesSmartTradeIdTrades","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/trades/{trade_id}/close_by_market":{"post":{"tags":["smart_trades_v2"],"description":"Panic close trade by market (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"postV2SmartTradesSmartTradeIdTradesIdCloseByMarket","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"},{"$ref":"#/components/parameters/tradeIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/v2/smart_trades/{smart_trade_id}/trades/{trade_id}":{"delete":{"tags":["smart_trades_v2"],"description":"Cancel trade (Permission: SMART_TRADE_WRITE, Security: SIGNED)\n","operationId":"deleteV2SmartTradesSmartTradeIdTradesId","parameters":[{"$ref":"#/components/parameters/smartTradeIdParam"},{"$ref":"#/components/parameters/tradeIdParam"}],"responses":{"204":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/ai":{"post":{"tags":["grid_bots"],"description":"Create AI Grid Bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1GridBotsAi","requestBody":{"$ref":"#/components/requestBodies/GridBotCreateAiRequest"},"responses":{"201":{"$ref":"#/components/responses/GridBotsResponse"}}}},"/ver1/grid_bots/manual":{"post":{"tags":["grid_bots"],"description":"Create Grid Bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1GridBotsManual","requestBody":{"$ref":"#/components/requestBodies/GridBotCreateManualRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/ai_settings":{"get":{"tags":["grid_bots"],"description":"Get AI settings (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBotsAiSettings","parameters":[{"$ref":"#/components/parameters/pairRequiredParam"},{"$ref":"#/components/parameters/marketCodeRequiredParam"},{"name":"total_quantity","in":"query","description":"Total amount for bot usage","schema":{"type":"number","format":"double"}}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots":{"get":{"tags":["grid_bots"],"description":"Grid bots list (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBots","parameters":[{"name":"account_ids","in":"query","description":"Filter by account id","schema":{"$ref":"#/components/schemas/AccountIdTypes"}},{"name":"account_types","in":"query","description":"Filter by account type","schema":{"type":"string"}},{"name":"state","in":"query","description":"Filter by bot state","schema":{"$ref":"#/components/schemas/EnabledEnum"}},{"$ref":"#/components/parameters/sortByGridBotParam"},{"$ref":"#/components/parameters/sortDirectionParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/dateFilterFromParam"},{"$ref":"#/components/parameters/baseParam"},{"$ref":"#/components/parameters/quoteParam"}],"responses":{"200":{"$ref":"#/components/responses/GridBotsResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/note":{"post":{"tags":["grid_bots"],"description":"Grid Bot Note (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1GridBotsIdNote","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/GridBotNoteRequest"},"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/events":{"get":{"tags":["grid_bots"],"description":"Grid Bot Events (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBotsIdEvents","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"},{"$ref":"#/components/parameters/pageParam"},{"$ref":"#/components/parameters/perPageParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/market_orders":{"get":{"tags":["grid_bots"],"description":"Grid Bot Market Orders (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBotsIdMarketOrders","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/profits":{"get":{"tags":["grid_bots"],"description":"Grid Bot Profits (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBotsIdProfits","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"},{"$ref":"#/components/parameters/dateFilterFromParam"},{"$ref":"#/components/parameters/dateFilterToParam"}],"responses":{"200":{"$ref":"#/components/responses/GridBotProfitsResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/ai":{"patch":{"tags":["grid_bots"],"description":"Edit Grid Bot (AI) (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"patchVer1GridBotsIdAi","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/GridBotEditAiRequest"},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/manual":{"patch":{"tags":["grid_bots"],"description":"Edit Grid Bot (Manual) (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"patchVer1GridBotsIdManual","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"requestBody":{"$ref":"#/components/requestBodies/GridBotEditManualRequest"},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}":{"get":{"tags":["grid_bots"],"description":"Show Grid Bot (Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBotsId","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}},"delete":{"tags":["grid_bots"],"description":"Delete Grid Bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"deleteVer1GridBotsId","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"responses":{"204":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/disable":{"post":{"tags":["grid_bots"],"description":"Disable Grid Bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1GridBotsIdDisable","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/enable":{"post":{"tags":["grid_bots"],"description":"Enable Grid Bot (Permission: BOTS_WRITE, Security: SIGNED)\n","operationId":"postVer1GridBotsIdEnable","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"responses":{"201":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/grid_bots/{grid_bot_id}/required_balances":{"get":{"tags":["grid_bots"],"description":"Get required balances to start bot(Permission: BOTS_READ, Security: SIGNED)\n","operationId":"getVer1GridBotsIdRequiredBalances","parameters":[{"$ref":"#/components/parameters/gridBotIdParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/marketplace/presets":{"get":{"tags":["marketplace"],"description":"Marketplace presets (Permission: NONE, Security: SIGNED)\n","operationId":"getVer1MarketplacePresets","parameters":[{"name":"profit_per_day_from","in":"query","schema":{"type":"number","format":"double"}},{"name":"profit_per_day_to","in":"query","schema":{"type":"number","format":"double"}},{"name":"profit_per_month_from","in":"query","schema":{"type":"number","format":"double"}},{"name":"profit_per_month_to","in":"query","schema":{"type":"number","format":"double"}},{"name":"with_all_market_pairs","in":"query","schema":{"type":"boolean"}},{"name":"days_running_from","in":"query","schema":{"$ref":"#/components/schemas/TimeUnitType"}},{"name":"days_running_to","in":"query","schema":{"$ref":"#/components/schemas/TimeUnitType"}},{"name":"bot_type","in":"query","schema":{"type":"string"}},{"name":"bot_strategy","in":"query","schema":{"type":"string"}},{"name":"cmc","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/sortByParam"},{"$ref":"#/components/parameters/sortDirectionParam"},{"name":"page","in":"query","schema":{"$ref":"#/components/schemas/PageType"}},{"name":"per_page","in":"query","schema":{"$ref":"#/components/schemas/PerPageType"}},{"name":"account_types","in":"query","schema":{"$ref":"#/components/schemas/MarketCodeTypes"}},{"name":"markets","in":"query","schema":{"$ref":"#/components/schemas/SymbolStringTypes"}},{"name":"pairs","in":"query","schema":{"$ref":"#/components/schemas/PairTypes"}},{"name":"deal_start_conditions","in":"query","schema":{"$ref":"#/components/schemas/MarketplacePresetsDealStartConditionEnums"}}],"responses":{"200":{"$ref":"#/components/responses/MarketplacePresetsResponse"}}}},"/ver1/marketplace/items":{"get":{"tags":["marketplace"],"description":"All marketplace items (Permission: NONE, Security: NONE)\n","security":[],"operationId":"getVer1MarketplaceItems","parameters":[{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"name":"scope","in":"query","description":"paid - show only paid signal providers. free - show only free signal providers\n","schema":{"$ref":"#/components/schemas/MarketPlaceScopeEnum"}},{"name":"order","in":"query","schema":{"$ref":"#/components/schemas/MarketPlaceOrderEnum"}},{"$ref":"#/components/parameters/localeParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/ver1/marketplaces/{marketplaceitem_id}/signals":{"get":{"tags":["marketplace"],"description":"Marketplace Item Signals (Permission: NONE, Security: NONE)\n","security":[],"operationId":"getVer1MarketplaceItemIdSignals","parameters":[{"$ref":"#/components/parameters/marketplaceitemIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"name":"order","in":"query","schema":{"$ref":"#/components/schemas/MarketPlaceSignalsOrderEnum"}},{"$ref":"#/components/parameters/orderDirectionParam"},{"$ref":"#/components/parameters/localeParam"}],"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/smart_trades/tv/webhooks":{"post":{"tags":["webhooks"],"security":[],"servers":[{"url":"https://app.3commas.io","description":"Webhooks server"}],"description":"Send webhooks to 3Commas SmartTrades\n","operationId":"tvsmarttrade","parameters":[{"description":"Insert your appropriate token from<br/> https://app.3commas.io/smart_trades/new > Presets\n","name":"tokens","in":"query","style":"form","explode":false,"required":true,"schema":{"type":"array","items":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}],"responses":{"200":{"$ref":"#/components/responses/BooleanResponse"}}}},"/trade_signal/trading_view":{"post":{"tags":["webhooks"],"security":[],"servers":[{"url":"https://app.3commas.io","description":"Webhooks server"}],"description":"Send webhooks to 3Commas DCA bot.<p/> Make sure to <i>never publish</i> your <i>email_token</i>,<br/> since it is valid for your whole 3Commas account.<p/> <b><i>Please, else directly contact 3Commas' support<br/> to reset the</i> email_token.</b>\n        <p/>\n<a href=\"https://3commas.io/trading-view\">How do custom [DCA] TradingView signals work?</a> <p/> <a href=\"https://help.3commas.io/en/articles/3108938-how-to-use-tradingview-custom-signals\">How to use custom [DCA] signals?</a>\n","operationId":"tradingview_dca","requestBody":{"description":"Send trading view webhooks","content":{"application/json":{"schema":{"type":"array","items":{"oneOf":[{"required":["message_type","action","bot_id","email_token","pair"],"properties":{"message_type":{"type":"string","default":"bot","enum":["bot"]},"action":{"type":"string","enum":["close_at_market_price","close_at_market_price_all","close_at_market_price_all_and_stop_bot","add_funds_in_quote","add_funds_in_base","cancel","cancel_all_and_stop_bot","cancel_all","stop_bot","start_bot","start_bot_and_start_deal","start_trailing"]},"bot_id":{"type":"integer","format":"int32"},"email_token":{"type":"string","pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},"delay_seconds":{"type":"integer","format":"int32"},"pair":{"$ref":"#/components/schemas/PairType"}}},{"required":["message_type","action","account_id","email_token"],"properties":{"message_type":{"type":"string","default":"account","enum":["account"]},"action":{"type":"string","enum":["start_all_long","stop_all_long","start_all_short","stop_all_short"]},"account_id":{"type":"integer","format":"int32"},"email_token":{"type":"string","pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},"delay_seconds":{"type":"integer","format":"int32"}}}]}}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/webhooks/trading_view":{"post":{"tags":["webhooks"],"security":[],"servers":[{"url":"https://app.3commas.io","description":"Webhooks server"}],"description":"Send webhooks to 3Commas signal bot.<p/> Make sure to <i>never publish</i> your <i>email_token</i>,<br/> since it is valid for your whole 3Commas account.<p/> <b><i>Please, else directly contact 3Commas' support<br/> to reset the</i> email_token.</b> <p/> <a href=\"https://help.3commas.io/en/collections/7070754-signal-bot\">How to configure a signal bot</a> </p> </p> <h3>TODO: Update requestBody and responseBody</h3>\n","operationId":"tradingview_signal","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SignalBotIndicatorEntity"},{"$ref":"#/components/schemas/SignalBotStrategyEntity"}]}}}},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/smart_trades":{"post":{"tags":["streams"],"servers":[{"url":"wss://ws.3commas.io/websocket","description":"Websocket server"}],"security":[],"description":"Subscribe to Smart Trades Stream (Permission: SMART_TRADES_READ, Security: SIGNED)\n","operationId":"subscribeSmartTradesStream","requestBody":{"description":"Storage data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMessageEntity"}}}},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}},"/deals":{"post":{"tags":["streams"],"servers":[{"url":"wss://ws.3commas.io/websocket","description":"Websocket server"}],"security":[],"description":"Subscribe to Deals Stream (Permission: NONE, Security: SIGNED)\n","operationId":"subscribeDealsStream","requestBody":{"description":"Storage data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMessageEntity"}}}},"responses":{"200":{"$ref":"#/components/responses/TodoResponse"}}}}},"components":{"schemas":{"PongEntity":{"description":"Pong - connectivity successfully tested\n","properties":{"pong":{"type":"string","enum":["pong"]}}},"TimeEntity":{"description":"3Commas server time as UNIX timestamp","properties":{"server_time":{"$ref":"#/components/schemas/TimeUnitType"}}},"DevApiValidEntity":{"properties":{"valid":{"type":"boolean"}}},"MiniAppsTokenType":{"type":"string"},"MiniAppsKeyType":{"type":"string"},"MiniAppsStorageEntity":{"required":["data","key"],"properties":{"key":{"$ref":"#/components/schemas/MiniAppsKeyType"},"data":{"type":"object"}}},"LocaleEnum":{"type":"string","description":"Available locales","default":"en","enum":["en","ru","zh","zh-CN","es","pt","ko","fr","cs","tr","de","it"]},"LocaleType":{"required":["locale"],"properties":{"locale":{"$ref":"#/components/schemas/LocaleEnum"}}},"UserPermissionEntity":{"properties":{"smart_trades_read":{"type":"boolean"},"smart_trades_write":{"type":"boolean"},"bots_read":{"type":"boolean"},"bots_write":{"type":"boolean"},"accounts_read":{"type":"boolean"},"accounts_write":{"type":"boolean"}},"examples":["{\n  \"smart_trades_read\": true,\n  \"smart_trades_write\": true,\n  \"bots_read\": true,\n  \"bots_write\": true,\n  \"accounts_read\": true,\n  \"accounts_write\": true\n}\n"]},"AccountModeEnum":{"type":"string","enum":["paper","real"]},"UserModeEntity":{"required":["mode"],"properties":{"mode":{"$ref":"#/components/schemas/AccountModeEnum"}}},"PortfolioEntity":{"properties":{"items":{"$ref":"#/components/schemas/PortfolioItemEntities"},"pagination":{"properties":{"page":{"$ref":"#/components/schemas/PageType"},"per_page":{"$ref":"#/components/schemas/PerPageType"},"has_more_items":{"type":"boolean"}}}}},"PortfolioItemEntities":{"type":"array","items":{"$ref":"#/components/schemas/PortfolioItemEntity"}},"PortfolioItemEntity":{"properties":{"name":{"$ref":"#/components/schemas/NameType"},"id":{"type":"string"},"created_at":{"$ref":"#/components/schemas/DateTimeType"},"portfolio_entries":{"$ref":"#/components/schemas/PortfolioEntryEntity"}}},"PortfolioEntryEntity":{"properties":{"target_percentage":{"type":"string"},"currency_code":{"type":"string"}}},"LooseAccountsCreateEntity":{"required":["name","tokens"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"tokens":{"$ref":"#/components/schemas/TokenEntities"},"include_in_summary":{"type":"boolean"}}},"LooseAccountsUpdateEntity":{"required":["tokens"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"tokens":{"$ref":"#/components/schemas/TokenEntities"},"include_in_summary":{"type":"boolean"}}},"LooseAccountsEntities":{"type":"array","items":{"$ref":"#/components/schemas/LooseAccountsEntity"}},"LooseAccountsEntity":{"properties":{"id":{"$ref":"#/components/schemas/AccountIdType"},"name":{"$ref":"#/components/schemas/NameType"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"type":{"type":"string","examples":["Accounts::LooseAccount"]},"is_deleted":{"type":"boolean","examples":[false]},"is_locked":{"type":"boolean","examples":[false]}}},"LooseAccountsCurrencyEntities":{"type":"array","items":{"$ref":"#/components/schemas/LooseAccountsCurrencyEntity"}},"LooseAccountsCurrencyEntity":{"properties":{"id":{"$ref":"#/components/schemas/LooseAccountCurrencyIdType"},"name_and_code":{"type":"string","examples":["Bitcoin (BTC)"]},"code":{"$ref":"#/components/schemas/SymbolStringType"},"name":{"$ref":"#/components/schemas/NameType"},"btc_price":{"$ref":"#/components/schemas/PriceType"},"usd_price":{"$ref":"#/components/schemas/PriceType"},"primary_display_currency_price":{"$ref":"#/components/schemas/DisplayValueEntity"}}},"NomicsIdType":{"description":"Market code from /accounts/market_list (market_code from account model)\n","type":"string","examples":["binance"]},"MarketCodeType":{"description":"Market code from /accounts/market_list (market_code from account model) As fast_connect_action_name only spot names are used.\n","type":"string","examples":["binance"]},"MarketCodeTypes":{"type":"array","items":{"$ref":"#/components/schemas/MarketCodeType"}},"FormFieldEntity":{"properties":{"field":{"type":"string"},"localized_name":{"$ref":"#/components/schemas/NameType"}},"required":["field","localized_name"],"examples":[{"field":"api_key","localized_name":"API Key:"}]},"FormFieldEntities":{"type":"array","items":{"$ref":"#/components/schemas/FormFieldEntity"}},"ConnectionTypeEnum":{"type":"string","enum":["fields"]},"ConnectionFlowEnums":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionFlowEnum"}},"ConnectionFlowEnum":{"type":"string","enum":["form","fast_connect"]},"TrustedIpType":{"type":"string","pattern":"^(\\d{1,3}\\.){4}$"},"TrustedIps":{"type":"array","items":{"$ref":"#/components/schemas/TrustedIpType"}},"TrustedIpsInputTypeEnum":{"type":"string","enum":["inline","one_by_one"]},"MarketListItemEntity":{"properties":{"market_name":{"$ref":"#/components/schemas/NameType"},"market_url":{"type":"string","examples":["https://www.binance.com/en/futures/ref/108190303"]},"market_icon":{"type":"string","examples":["https://3commas.io/img/exchanges/binance.png"]},"market_trust_message":{"type":"string","enum":["3Commas will not have access to transfer or withdraw your assets. Each exchange connects with encrypted API keys","1. Log in to your exchange account and go to API Settings \\n2. Select third-party apps and choose 3Commas \\n3. Paste generated data in inputs below."]},"help_link":{"type":"string","examples":["https://help.3commas.io/en/articles/3109051"]},"nomics_id":{"$ref":"#/components/schemas/NomicsIdType"},"market_code":{"$ref":"#/components/schemas/MarketCodeType"},"form_fields":{"description":"List of required and optional form fields to create a new account\n","properties":{"required":{"$ref":"#/components/schemas/FormFieldEntities"},"optional":{"$ref":"#/components/schemas/FormFieldEntities"}}},"connection_type":{"$ref":"#/components/schemas/ConnectionTypeEnum"},"available_connection_flows":{"$ref":"#/components/schemas/ConnectionFlowEnums"},"trusted_ips":{"$ref":"#/components/schemas/TrustedIps"},"trusted_ips_input_type":{"$ref":"#/components/schemas/TrustedIpsInputTypeEnum"},"fast_connect_action_name":{"$ref":"#/components/schemas/MarketCodeType"}}},"MarketListItemEntities":{"type":"array","items":{"$ref":"#/components/schemas/MarketListItemEntity"}},"PairType":{"type":"string","pattern":"^[A-Z]{3,}(_[A-Z0-9]{3,}){1,}$","description":"Format: QUOTE_BASE\n","examples":["BUSD_FTT"]},"PairTypes":{"description":"POST:<br/> SingleBot: Pass single pair MultiBot:  Pass any other number of pairs\n","type":"array","items":{"$ref":"#/components/schemas/PairType"},"examples":[["BTC_ETH","BTC_LTC"]]},"CurrencyRateEntity":{"properties":{"last":{"$ref":"#/components/schemas/PriceType"},"bid":{"$ref":"#/components/schemas/PriceType"},"ask":{"$ref":"#/components/schemas/PriceType"},"orderbook_ask":{"$ref":"#/components/schemas/PriceType"},"orderbook_bid":{"$ref":"#/components/schemas/PriceType"},"orderbook_last":{"$ref":"#/components/schemas/PriceType"},"orderbook_price_currency":{"$ref":"#/components/schemas/SymbolStringType"},"strategy_name":{"examples":["orderbook_price"],"type":"string"},"contract_strategy_name":{"examples":["orderbook_price"],"type":"string"},"minPrice":{"$ref":"#/components/schemas/PriceType"},"maxPrice":{"$ref":"#/components/schemas/PriceType"},"priceStep":{"$ref":"#/components/schemas/PriceType"},"minLotSize":{"$ref":"#/components/schemas/PriceType"},"lotStep":{"$ref":"#/components/schemas/PriceType"},"minTotal":{"$ref":"#/components/schemas/OrderVolumeType"},"maxMarketBuyAmount":{"$ref":"#/components/schemas/OrderVolumeType"},"maxMarketSellAmount":{"$ref":"#/components/schemas/OrderVolumeType"},"priceMultiplierDown":{"$ref":"#/components/schemas/PriceType"},"priceMultiplierUp":{"$ref":"#/components/schemas/PriceType"},"maxLotSize":{"$ref":"#/components/schemas/OrderVolumeType"}}},"CurrencyRateWithLeverageEntity":{"properties":{"last":{"$ref":"#/components/schemas/PriceType"},"bid":{"$ref":"#/components/schemas/PriceType"},"ask":{"$ref":"#/components/schemas/PriceType"},"orderbook_ask":{"$ref":"#/components/schemas/PriceType"},"orderbook_bid":{"$ref":"#/components/schemas/PriceType"},"orderbook_last":{"$ref":"#/components/schemas/PriceType"},"orderbook_price_currency":{"$ref":"#/components/schemas/SymbolStringType"},"strategy_name":{"examples":["orderbook_price"],"type":"string"},"contract_strategy_name":{"examples":["orderbook_price"],"type":"string"},"leverage_data":{"type":"array","items":{"properties":{"TODO":{"type":"string"}}}},"minPrice":{"$ref":"#/components/schemas/PriceType"},"maxPrice":{"$ref":"#/components/schemas/PriceType"},"priceStep":{"$ref":"#/components/schemas/PriceType"},"minLotSize":{"$ref":"#/components/schemas/PriceType"},"lotStep":{"$ref":"#/components/schemas/PriceType"},"minTotal":{"$ref":"#/components/schemas/OrderVolumeType"},"maxMarketBuyAmount":{"$ref":"#/components/schemas/OrderVolumeType"},"maxMarketSellAmount":{"$ref":"#/components/schemas/OrderVolumeType"},"priceMultiplierDown":{"$ref":"#/components/schemas/PriceType"},"priceMultiplierUp":{"$ref":"#/components/schemas/PriceType"},"maxLotSize":{"$ref":"#/components/schemas/OrderVolumeType"}}},"AccountEntity":{"properties":{"id":{"oneOf":[{"$ref":"#/components/schemas/AccountIdType"},{"enum":["summary"]}]},"auto_balance_period":{"$ref":"#/components/schemas/IntegerPositiveType"},"auto_balance_portfolio_id":{"$ref":"#/components/schemas/PortfolioIdType"},"auto_balance_currency_change_limit":{"$ref":"#/components/schemas/IntegerPositiveType"},"autobalance_enabled":{"type":"boolean"},"hedge_mode_available":{"type":"boolean"},"hedge_mode_enabled":{"type":"boolean"},"is_locked":{"type":"boolean"},"smart_trading_supported":{"type":"boolean"},"smart_selling_supported":{"type":"boolean"},"available_for_trading":{"type":"array","items":{"type":"string"}},"stats_supported":{"type":"boolean"},"trading_supported":{"type":"boolean"},"market_buy_supported":{"type":"boolean"},"market_sell_supported":{"type":"boolean"},"conditional_buy_supported":{"type":"boolean"},"bots_allowed":{"type":"boolean"},"bots_ttp_allowed":{"type":"boolean"},"bots_tsl_allowed":{"type":"boolean"},"gordon_bots_available":{"type":"boolean"},"multi_bots_allowed":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"last_auto_balance":{"type":"string","format":"date-time"},"fast_convert_available":{"description":"Sell all to USD/BTC possibility","type":"boolean"},"grid_bots_allowed":{"type":"boolean"},"api_key_invalid":{"type":"boolean","examples":[true]},"nomics_id":{"$ref":"#/components/schemas/NomicsIdType"},"market_icon":{"type":"string","format":"url"},"deposit_enabled":{"type":"boolean"},"include_in_summary":{"type":"boolean"},"supported_market_types":{"type":"array","items":{"type":"string","enum":["spot","futures","options"]}},"primary_display_currency_profit_percentage":{"$ref":"#/components/schemas/DisplayValueEntity"},"primary_display_currency_profit":{"$ref":"#/components/schemas/DisplayValueEntity"},"day_profit_primary_display_currency_percentage":{"$ref":"#/components/schemas/DisplayValueEntity"},"day_profit_primary_display_currency":{"$ref":"#/components/schemas/DisplayValueEntity"},"primary_display_currency_amount":{"$ref":"#/components/schemas/DisplayValueEntity"},"total_primary_display_currency_profit":{"$ref":"#/components/schemas/DisplayValueEntity"},"available_include_in_summary":{"type":"boolean"},"api_key":{"$ref":"#/components/schemas/AccountApiKeyType"},"name":{"$ref":"#/components/schemas/NameType"},"auto_balance_method":{"$ref":"#/components/schemas/AccountAutoBalanceMethodEnum"},"auto_balance_error":{"type":["string","null"],"examples":["Failed to autobalance"]},"customer_id":{"type":["string","null"]},"subaccount_name":{"$ref":"#/components/schemas/NameType"},"lock_reason":{"type":["string","null"],"examples":["API key is invalid"]},"btc_amount":{"$ref":"#/components/schemas/StringFloatType"},"usd_amount":{"$ref":"#/components/schemas/StringFloatType"},"day_profit_btc":{"$ref":"#/components/schemas/StringFloatType"},"day_profit_usd":{"$ref":"#/components/schemas/StringFloatType"},"day_profit_btc_percentage":{"$ref":"#/components/schemas/PercentageType"},"day_profit_usd_percentage":{"$ref":"#/components/schemas/PercentageType"},"btc_profit":{"$ref":"#/components/schemas/StringFloatType"},"usd_profit":{"$ref":"#/components/schemas/StringFloatType"},"usd_profit_percentage":{"$ref":"#/components/schemas/PercentageType"},"btc_profit_percentage":{"$ref":"#/components/schemas/PercentageType"},"total_btc_profit":{"$ref":"#/components/schemas/StringFloatNegativeType"},"total_usd_profit":{"$ref":"#/components/schemas/StringFloatNegativeType"},"pretty_display_type":{"type":"string"},"exchange_name":{"$ref":"#/components/schemas/NameType"},"market_code":{"$ref":"#/components/schemas/MarketCodeType"},"address":{"type":"string"},"api_keys_state":{"type":"string","enum":["ok","expired","expire_soon"]}}},"AccountEntities":{"type":"array","items":{"$ref":"#/components/schemas/AccountEntity"}},"ActiveBotsCountType":{"$ref":"#/components/schemas/CountType"},"ActiveDealsCountType":{"$ref":"#/components/schemas/CountType"},"ActiveSmartTradesCountType":{"$ref":"#/components/schemas/CountType"},"ActiveOrderCountType":{"$ref":"#/components/schemas/CountType"},"ActiveGridBotsCountType":{"$ref":"#/components/schemas/CountType"},"MaxActiveDealsType":{"$ref":"#/components/schemas/CountType"},"ActiveTradingEntity":{"properties":{"data":{"properties":{"active_bots_count":{"$ref":"#/components/schemas/ActiveBotsCountType"},"active_deals_count":{"$ref":"#/components/schemas/ActiveDealsCountType"},"active_smart_trades_count":{"$ref":"#/components/schemas/ActiveSmartTradesCountType"},"active_orders_count":{"$ref":"#/components/schemas/ActiveOrderCountType"},"active_grid_bots_count":{"$ref":"#/components/schemas/ActiveGridBotsCountType"}}}}},"NetworkInfoEntity":{"type":"array","items":{"$ref":"#/components/schemas/CurrencyNetworkList"}},"CurrencyNetworkList":{"properties":{"currency":{"$ref":"#/components/schemas/SymbolStringType"},"name":{"type":"string"},"deposit_enable":{"type":"boolean"},"withdraw_enable":{"type":"boolean"},"network_list":{"type":"array","items":{"$ref":"#/components/schemas/NetworkList"}}}},"NetworkList":{"properties":{"network":{"type":"string"},"default":{"type":"boolean"},"deposit_enable":{"type":"boolean"},"withdraw_enable":{"type":"boolean"},"deposit_tip":{"type":"string"},"withdraw_tip":{"type":"string"},"special_tip":{"type":"string"},"network_name":{"type":"string"},"network_url":{"type":"string","format":"url"},"address_regexp":{"type":"string"},"withdraw_fee":{"type":"string"},"withdraw_min":{"type":"string"},"withdrawMax":{"type":"string"},"withdrawMultiple":{"type":"string"},"memo_regexp":{"$ref":"#/components/schemas/NetworkListMemoRegexp"},"label":{"$ref":"#/components/schemas/NetworkListLabel"},"require_address_tag":{"type":"boolean"}}},"NetworkListLabel":{"type":"string","enum":["","MEMO/Tag"]},"NetworkListMemoRegexp":{"type":"string","enum":["","^[0-9A-Za-z\\-_]{1,120}$","\\w{0,120}","^((?!0)[0-9]{1,10})$","^[0-9A-Za-z\\-_,]{1,120}$","^[0-9a-zA-Z]{0,20}$","^[0-9A-Za-z\\-_]{1,32}$","^[0-9A-Za-z\\-_,.]{1,120}$","^[0-9A-Za-z-]{1,28}$"]},"TypesToConnectEntities":{"type":"array","items":{"$ref":"#/components/schemas/TypesToConnectEntity"}},"TypesToConnectEntity":{"properties":{"type":{"$ref":"#/components/schemas/MarketCodeType"},"connected":{"type":"boolean"},"available":{"type":"boolean"}}},"AccountNameType":{"properties":{"name":{"$ref":"#/components/schemas/NameType"}}},"AccountTypeType":{"properties":{"type":{"$ref":"#/components/schemas/MarketCodeType"}}},"AccountTypesToCreateType":{"properties":{"types_to_create":{"$ref":"#/components/schemas/MarketCodeTypes"}}},"AccountNameTypeEntity":{"allOf":[{"$ref":"#/components/schemas/AccountNameType"},{"$ref":"#/components/schemas/AccountTypeType"}]},"AccountNewBaseEntity":{"allOf":[{"$ref":"#/components/schemas/AccountNameTypeEntity"},{"$ref":"#/components/schemas/AccountTypesToCreateType"}]},"AccountApiKeyEntity":{"properties":{"api_key":{"$ref":"#/components/schemas/AccountApiKeyType"},"secret":{"$ref":"#/components/schemas/AccountApiKeySecretType"}}},"AccountPassphraseType":{"properties":{"passphrase":{"type":"string","description":"For Kucoin, OKX, Coinbase Pro"}}},"AccountCustomerIdType":{"properties":{"customer_id":{"type":"string","description":"For Bitstamp"}}},"AccountAddressType":{"properties":{"address":{"type":"string"}}},"AccountKeystoreEntity":{"properties":{"how_connect":{"type":"string","enum":["keystore"],"default":"keystore"},"keystore":{"description":"keystore file content. Requires if type = binance_dex and how_connect = keystore\n","type":"string","format":"binary"},"wallet_password":{"type":"string","format":"password","description":"Requires if type = binance_dex and how_connect = keystore"}}},"AccountMnenomicEntity":{"properties":{"how_connect":{"type":"string","enum":["mnemonic_phrase"],"default":"mnemonic_phrase"},"mnemonic_phrase":{"type":"string","description":"Requires if type = binance_dex and how_connect = mnemonic_phrase\n"}}},"AccountNew_ApiKeyEntity":{"required":["name","type","api_key","secret"],"allOf":[{"$ref":"#/components/schemas/AccountNewBaseEntity"},{"$ref":"#/components/schemas/AccountApiKeyEntity"}]},"AccountNew_PassphraseEntity":{"required":["passphrase"],"allOf":[{"$ref":"#/components/schemas/AccountNew_ApiKeyEntity"},{"$ref":"#/components/schemas/AccountPassphraseType"}]},"AccountNew_CustomerIdEntity":{"required":["customer_id"],"allOf":[{"$ref":"#/components/schemas/AccountNew_ApiKeyEntity"},{"$ref":"#/components/schemas/AccountCustomerIdType"}]},"AccountNew_WalletEntity":{"required":["name","type","address"],"allOf":[{"$ref":"#/components/schemas/AccountNameTypeEntity"},{"$ref":"#/components/schemas/AccountAddressType"}]},"AccountNew_BinanceDexKeystoreEntity":{"deprecated":true,"required":["name","type","how_connect","keystore","wallet_password"],"allOf":[{"$ref":"#/components/schemas/AccountNameTypeEntity"},{"$ref":"#/components/schemas/AccountKeystoreEntity"}]},"AccountNew_BinanceDexMnenomicEntity":{"deprecated":true,"required":["name","type","how_connect","mnemonic_phrase"],"allOf":[{"$ref":"#/components/schemas/AccountNameTypeEntity"},{"$ref":"#/components/schemas/AccountMnenomicEntity"}]},"AccountUpdateBaseEntity":{"properties":{"account_id":{"$ref":"#/components/schemas/AccountIdType"},"include_in_summary":{"type":"boolean"}}},"AccountUpdate_ApiKeyEntity":{"required":["account_id","api_key","secret"],"allOf":[{"$ref":"#/components/schemas/AccountUpdateBaseEntity"},{"$ref":"#/components/schemas/AccountNameType"},{"$ref":"#/components/schemas/AccountApiKeyEntity"}]},"AccountUpdate_PassphraseEntity":{"required":["passphrase"],"allOf":[{"$ref":"#/components/schemas/AccountUpdate_ApiKeyEntity"},{"$ref":"#/components/schemas/AccountPassphraseType"}]},"AccountUpdate_CustomerIdEntity":{"required":["customer_id"],"allOf":[{"$ref":"#/components/schemas/AccountUpdate_ApiKeyEntity"},{"$ref":"#/components/schemas/AccountCustomerIdType"}]},"AccountUpdate_WalletEntity":{"required":["account_id","address"],"allOf":[{"$ref":"#/components/schemas/AccountUpdateBaseEntity"},{"$ref":"#/components/schemas/AccountAddressType"}]},"AccountUpdate_BinanceDexKeystoreEntity":{"deprecated":true,"required":["account_id","how_connect","keystore","wallet_password"],"allOf":[{"$ref":"#/components/schemas/AccountUpdateBaseEntity"},{"$ref":"#/components/schemas/AccountKeystoreEntity"}]},"AccountUpdate_BinanceDexMnenomicEntity":{"deprecated":true,"required":["account_id","how_connect","mnemonic_phrase"],"allOf":[{"$ref":"#/components/schemas/AccountUpdateBaseEntity"},{"$ref":"#/components/schemas/AccountMnenomicEntity"}]},"SignalBotIndicatorEntity":{"properties":{"secret":{"type":"string","examples":["token"]},"max_lag":{"type":"string","examples":["300"]},"timestamp":{"type":"string","examples":["{{timenow}}"]},"trigger_price":{"type":"string","examples":["{{close}}"]},"tv_exchange":{"type":"string","examples":["{{exchange}}"]},"tv_instrument":{"type":"string","examples":["{{ticker}}"]},"action":{"type":"string","examples":["exit_long"]},"bot_uuid":{"type":"string","examples":["signal-bot-uuid"]},"order":{"type":"object","properties":{"amount":{"type":"string","examples":["{amount}"]},"currency_type":{"type":"string","enum":["margin_percent","quote","base"]}}}}},"SignalBotStrategyEntity":{"properties":{"secret":{"type":"string","examples":["token"]},"max_lag":{"type":"string","examples":["300"]},"timestamp":{"type":"string","examples":["{{timenow}}"]},"trigger_price":{"type":"string","examples":["{{close}}"]},"tv_exchange":{"type":"string","examples":["{{exchange}}"]},"tv_instrument":{"type":"string","examples":["{{ticker}}"]},"action":{"type":"string","examples":["{{strategy.order.action}}"]},"bot_uuid":{"type":"string","examples":["86a9ac05-8d79-44a9-bd34-a8dd2884db41"]},"strategy_info":{"type":"object","properties":{"market_position":{"type":"string","examples":["{{strategy.market_position}}"]},"market_position_size":{"type":"string","examples":["{{strategy.market_position_size}}"]},"prev_market_position":{"type":"string","examples":["{{strategy.prev_market_position}}"]},"prev_market_position_size":{"type":"string","examples":["{{strategy.prev_market_position_size}}"]}}},"order":{"type":"object","properties":{"amount":{"type":"string","examples":["{{strategy.order.contracts}}"]},"currency_type":{"type":"string","examples":["base"]}}}}},"IdType":{"description":"General ID type. Never use directly","type":"integer","format":"int32"},"PortfolioIdType":{"description":"Portfolio ID","$ref":"#/components/schemas/IdType"},"AccountIdType":{"description":"Account ID","$ref":"#/components/schemas/IdType"},"AccountIdTypes":{"type":"array","items":{"$ref":"#/components/schemas/AccountIdType"}},"LooseAccountCurrencyIdType":{"description":"Loose account currency ID","$ref":"#/components/schemas/IdType"},"BotIdType":{"description":"Bot ID","$ref":"#/components/schemas/IdType"},"DealIdType":{"description":"Deal ID","$ref":"#/components/schemas/IdType"},"SmartTradeIdType":{"description":"SmartTrade ID","$ref":"#/components/schemas/IdType"},"TradeIdType":{"description":"Trade ID","$ref":"#/components/schemas/IdType"},"GridBotIdType":{"description":"Grid bot ID","$ref":"#/components/schemas/IdType"},"GridLineIdType":{"description":"Grid line ID","$ref":"#/components/schemas/IdType"},"MarketplaceItemIdType":{"description":"Marketplace item ID","$ref":"#/components/schemas/IdType"},"MarketplaceBotIdType":{"description":"Marketplace bot ID","$ref":"#/components/schemas/IdType"},"AccountAutoBalanceMethodEnum":{"description":"Values: time, currency_change\n","type":"string","enum":["time","currency_change"]},"EnabledEnum":{"type":"string","enum":["enabled","disabled"]},"MarketPlaceScopeEnum":{"type":"string","default":"all","enum":["all","paid","free"]},"SmartTradeStatusEnum":{"type":"string","enum":["all","active","finished","successfully_finished","cancelled","failed"]},"SmartTradeEnum":{"type":"string","enum":["simple_buy","simple_sell","smart_sell","smart_trade","smart_cover","smart_buy"]},"MarketPlaceOrderEnum":{"type":"string","default":"newest","enum":["subscribers","name","newest"]},"MarketPlaceSignalsOrderEnum":{"type":"string","default":"date","enum":["pair","exchange","signal_type","date"]},"DepositWithdrawEnum":{"type":"string","enum":["deposit","withdraw"]},"DealsResponseEnum":{"description":"TODO: Check for nullable!\n","type":["string","null"],"default":"empty","enum":["empty","deal","market_order"]},"SmartBotSourceEnum":{"type":"string","enum":["mlqfl","qfl","ml","algo"]},"SmartBotStrategyEnum":{"type":"string","enum":["conservative","moderate","aggressive"]},"MarketplacePresetsDealStartConditionEnums":{"type":"array","items":{"$ref":"#/components/schemas/MarketplacePresetsDealStartConditionEnum"}},"MarketplacePresetsDealStartConditionEnum":{"type":"string","enum":["QFL","Trading View","New trade ASAP","CQS Scalping","RSI","ULT"]},"StrategyListEnum":{"description":"For manual signals: [{\"strategy\":\"manual\"}] or []<br> For non-stop(1 pair only): [{\"strategy\":\"nonstop\"}]<br> QFL: {\"options\": {\"type\": \"original\"}, {\"percent\": 3}, \"strategy\": \"qfl\"}] <br> TradingView: [{\"options\": {\"time\": \"5m\", \"type\": \"buy_or_strong_buy\", \"strategy\": \"trading_view\"}\n{\n  \"qfl\": {\n    \"strategy_type\": \"indicator\",\n    \"payed\": false,\n    \"beta\": false,\n    \"name\": \"QFL (only long signals)\",\n    \"options\": {\n      \"type\": {\n        \"original\": \"Original\",\n        \"day_trade\": \"Day trading\",\n        \"conservative\": \"Conservative trader\",\n        \"position\": \"Position trader\"\n      },\n      \"percent\": null\n    },\n    \"accounts_whitelist\": [\n      \"Account::BinanceAccount\",\n      \"Account::BinanceFuturesAccount\",\n      \"Account::BinanceUsAccount\",\n      \"Account::BinanceJerseyAccount\",\n      \"Account::BinanceMarginAccount\",\n      \"Account::BinanceBrokerAccount\",\n      \"Account::PaperTradingAccount\",\n      \"Account::HuobiAccount\",\n      \"Account::BittrexAccount\",\n      \"Account::OkexAccount\",\n      \"Account::BybitAccount\",\n      \"Account::GdaxAccount\",\n      \"Account::BitmexAccount\",\n      \"Accounts::BinanceBrokerFutures\",\n      \"Accounts::ThreecommasExchangeAccount\",\n      \"Accounts::ThreecommasFutures\",\n      \"Account::KucoinAccount\",\n      \"Account::KrakenAccount\",\n      \"Accounts::Ftx\"\n    ]\n  },\n  \"cqs_telegram\": {\n    \"strategy_type\": \"signal\",\n    \"payed\": false,\n    \"beta\": false,\n    \"name\": \"CQS Scalping\",\n    \"accounts_whitelist\": [\n      \"Account::BinanceAccount\",\n      \"Account::BittrexAccount\",\n      \"Account::BinanceJerseyAccount\",\n      \"Account::BinanceMarginAccount\",\n      \"Account::BinanceBrokerAccount\",\n      \"Account::BinanceUsAccount\",\n      \"Account::BinanceFuturesAccount\",\n      \"Account::PaperTradingAccount\",\n      \"Account::HuobiAccount\",\n      \"Accounts::ThreecommasExchangeAccount\",\n      \"Account::OkexAccount\",\n      \"Accounts::Ftx\"\n    ]\n  },\n  \"cqs_bitmex\": {\n    \"strategy_type\": \"signal\",\n    \"payed\": false,\n    \"beta\": false,\n    \"name\": \"CQS BITMEX Scalping\",\n    \"accounts_whitelist\": [\n      \"Account::BitmexAccount\"\n    ]\n  },\n  \"manual\": {\n    \"strategy_type\": \"signal\",\n    \"payed\": false,\n    \"beta\": false,\n    \"name\": \"Manually/API (Bot won't open new trades automatically)\"\n  },\n  \"tv_custom_signal\": {\n    \"strategy_type\": \"signal\",\n    \"payed\": false,\n    \"beta\": false,\n    \"name\": \"Trading View custom signal\"\n  },\n  \"rsi\": {\n    \"name\": \"RSI\",\n    \"payed\": false,\n    \"beta\": false,\n    \"strategy_type\": \"indicator\",\n    \"options\": {\n      \"time\": {\n        \"3m\": \"3 minutes\",\n        \"5m\": \"5 minutes\",\n        \"15m\": \"15 minutes\",\n        \"30m\": \"30 minutes\",\n        \"1h\": \"1 hour\",\n        \"2h\": \"2 hours\",\n        \"4h\": \"4 hours\",\n        \"8h\": \"8 hours\",\n        \"1d\": \"1 day\",\n        \"3d\": \"3 days\",\n        \"1w\": \"1 week\"\n      },\n      \"points\": null,\n      \"trigger_condition\": {\n        \"less\": \"less\",\n        \"greater\": \"greater\",\n        \"crossing_above\": \"crossing_down\",\n        \"crossing_below\": \"crossing_up\"\n      },\n      \"time_period\": null\n    },\n    \"accounts_whitelist\": [\n      \"Account::BinanceFuturesAccount\",\n      \"Accounts::BinanceFuturesCoin\",\n      \"Accounts::Ftx\",\n      \"Accounts::FtxFutures\",\n      \"Account::BybitAccount\",\n      \"Accounts::BybitUsdtPerpetualAccount\",\n      \"Account::GdaxAccount\",\n      \"Account::KrakenAccount\",\n      \"Account::BinanceUsAccount\",\n      \"Account::GateIoAccount\",\n      \"Accounts::BybitSpotAccount\",\n      \"Accounts::GateIoBtcPerpetualAccount\",\n      \"Accounts::GateIoUsdtPerpetualAccount\",\n      \"Account::BinanceAccount\",\n      \"Account::BinanceJerseyAccount\",\n      \"Account::BinanceMarginAccount\",\n      \"Account::PaperTradingAccount\",\n      \"Account::OkexAccount\",\n      \"Accounts::OkexFuturesAccount\"\n    ]\n  },\n  \"ult\": {\n    \"name\": \"ULT-7-14-28\",\n    \"payed\": false,\n    \"beta\": false,\n    \"strategy_type\": \"indicator\",\n    \"options\": {\n      \"time\": {\n        \"3m\": \"3 minutes\",\n        \"5m\": \"5 minutes\",\n        \"15m\": \"15 minutes\",\n        \"30m\": \"30 minutes\",\n        \"1h\": \"1 hour\",\n        \"2h\": \"2 hours\",\n        \"4h\": \"4 hours\",\n        \"8h\": \"8 hours\",\n        \"1d\": \"1 day\",\n        \"3d\": \"3 days\",\n        \"1w\": \"1 week\"\n      },\n      \"points\": null\n    },\n    \"accounts_whitelist\": [\n      \"Account::BinanceFuturesAccount\",\n      \"Accounts::BinanceFuturesCoin\",\n      \"Accounts::Ftx\",\n      \"Accounts::FtxFutures\",\n      \"Account::BybitAccount\",\n      \"Accounts::BybitUsdtPerpetualAccount\",\n      \"Account::GdaxAccount\",\n      \"Account::KrakenAccount\",\n      \"Account::BinanceUsAccount\",\n      \"Account::GateIoAccount\",\n      \"Accounts::BybitSpotAccount\",\n      \"Accounts::GateIoBtcPerpetualAccount\",\n      \"Accounts::GateIoUsdtPerpetualAccount\",\n      \"Account::BinanceAccount\",\n      \"Account::BinanceJerseyAccount\",\n      \"Account::BinanceMarginAccount\",\n      \"Account::PaperTradingAccount\",\n      \"Account::OkexAccount\",\n      \"Accounts::OkexFuturesAccount\"\n    ]\n  },\n  \"b_bands_percent\": {\n    \"name\": \"Bollinger Bands %B\",\n    \"payed\": false,\n    \"beta\": false,\n    \"strategy_type\": \"indicator\",\n    \"options\": {\n      \"time\": {\n        \"3m\": \"3 minutes\",\n        \"5m\": \"5 minutes\",\n        \"15m\": \"15 minutes\",\n        \"30m\": \"30 minutes\",\n        \"1h\": \"1 hour\",\n        \"2h\": \"2 hours\",\n        \"4h\": \"4 hours\",\n        \"8h\": \"8 hours\",\n        \"1d\": \"1 day\",\n        \"3d\": \"3 days\",\n        \"1w\": \"1 week\"\n      },\n      \"points\": null,\n      \"trigger_condition\": {\n        \"less\": \"less\",\n        \"greater\": \"greater\",\n        \"crossing_above\": \"crossing_down\",\n        \"crossing_below\": \"crossing_up\"\n      },\n      \"time_period\": {\n        \"10\": \"10\",\n        \"20\": \"20\",\n        \"30\": \"30\",\n        \"40\": \"40\",\n        \"50\": \"50\"\n      },\n      \"deviation\": {\n        \"1\": \"1\",\n        \"2\": \"2\"\n      }\n    },\n    \"accounts_whitelist\": [\n      \"Account::BinanceFuturesAccount\",\n      \"Accounts::BinanceFuturesCoin\",\n      \"Accounts::Ftx\",\n      \"Accounts::FtxFutures\",\n      \"Account::BybitAccount\",\n      \"Accounts::BybitUsdtPerpetualAccount\",\n      \"Account::GdaxAccount\",\n      \"Account::KrakenAccount\",\n      \"Account::BinanceUsAccount\",\n      \"Account::GateIoAccount\",\n      \"Accounts::BybitSpotAccount\",\n      \"Accounts::GateIoBtcPerpetualAccount\",\n      \"Accounts::GateIoUsdtPerpetualAccount\",\n      \"Account::BinanceAccount\",\n      \"Account::BinanceJerseyAccount\",\n      \"Account::BinanceMarginAccount\",\n      \"Account::PaperTradingAccount\",\n      \"Account::OkexAccount\",\n      \"Accounts::OkexFuturesAccount\"\n    ]\n  },\n  \"ta_preset\": {\n    \"name\": \"TA Presets\",\n    \"strategy_type\": \"indicator\",\n    \"beta\": false,\n    \"options\": {\n      \"time\": {\n        \"3m\": \"3 minutes\",\n        \"5m\": \"5 minutes\",\n        \"15m\": \"15 minutes\",\n        \"30m\": \"30 minutes\",\n        \"1h\": \"1 hour\",\n        \"2h\": \"2 hours\",\n        \"4h\": \"4 hours\",\n        \"8h\": \"8 hours\",\n        \"1d\": \"1 day\",\n        \"3d\": \"3 days\",\n        \"1w\": \"1 week\"\n      },\n      \"type\": {\n        \"BB-20-1-LB\": \"BB-20-1-LB\",\n        \"BB-20-2-LB\": \"BB-20-2-LB\",\n        \"MFI-14<40\": \"MFI-14 crosses 40\",\n        \"MFI-14<20\": \"MFI-14 crosses 20\",\n        \"CCI-40<-200\": \"CCI-40 crosses -200\",\n        \"BB-20-1-UB\": \"BB-20-1-UB\",\n        \"BB-20-2-UB\": \"BB-20-2-UB\",\n        \"MFI-14>65\": \"MFI-14 crosses 65\",\n        \"CCI-40>0\": \"CCI-40 crosses 0\",\n        \"CCI-40>100\": \"CCI-40 crosses 100\",\n        \"MACD-12-26-9\": \"MACD cross 12-26-9\",\n        \"Parabolic-SAR\": \"Parabolic SAR 0.02-0.02-0.2\",\n        \"SMA-20-50\": \"SMA 20 crosses 50\",\n        \"SMA-50-100\": \"SMA 50 crosses 100\",\n        \"SMA-50-200\": \"SMA 50 crosses 200\",\n        \"SMA-100-200\": \"SMA 100 crosses 200\",\n        \"Heikin-Ashi-1\": \"Heikin Ashi 1 candle\",\n        \"Heikin-Ashi-3\": \"Heikin Ashi 3 candles\",\n        \"Heikin-Ashi-5\": \"Heikin Ashi 5 candles\"\n      }\n    },\n    \"accounts_whitelist\": [\n      \"Account::BinanceFuturesAccount\",\n      \"Accounts::BinanceFuturesCoin\",\n      \"Accounts::Ftx\",\n      \"Accounts::FtxFutures\",\n      \"Account::BybitAccount\",\n      \"Accounts::BybitUsdtPerpetualAccount\",\n      \"Account::GdaxAccount\",\n      \"Account::KrakenAccount\",\n      \"Account::BinanceUsAccount\",\n      \"Account::GateIoAccount\",\n      \"Accounts::BybitSpotAccount\",\n      \"Accounts::GateIoBtcPerpetualAccount\",\n      \"Accounts::GateIoUsdtPerpetualAccount\",\n      \"Account::BinanceAccount\",\n      \"Account::BinanceJerseyAccount\",\n      \"Account::BinanceMarginAccount\",\n      \"Account::PaperTradingAccount\",\n      \"Account::OkexAccount\",\n      \"Accounts::OkexFuturesAccount\"\n    ]\n  },\n  \"trading_view\": {\n    \"strategy_type\": \"indicator\",\n    \"payed\": false,\n    \"beta\": false,\n    \"name\": \"Trading View\",\n    \"options\": {\n      \"time\": {\n        \"1m\": \"1 minute\",\n        \"5m\": \"5 minutes\",\n        \"15m\": \"15 minutes\",\n        \"1h\": \"1 hour\",\n        \"4h\": \"4 hours\",\n        \"1d\": \"1 day\",\n        \"1w\": \"1 week\",\n        \"1M\": \"1 month\",\n        \"cumulative\": \"Cumulative\"\n      },\n      \"type\": {\n        \"buy_or_strong_buy\": \"Buy\",\n        \"strong_buy\": \"Strong Buy\",\n        \"sell_or_strong_sell\": \"Sell\",\n        \"strong_sell\": \"Strong Sell\"\n      }\n    }\n  }\n} #TODO: To be continued\n"},"StrategyListTypes":{"examples":["[{'options'=>{'time'=>'5m', 'type'=>'buy_or_strong_buy'}, 'strategy'=>'trading_view'}, ...]\n"],"description":"For manual signals: [{\"strategy\":\"manual\"}] or []<br> For non-stop(1 pair only): [{\"strategy\":\"nonstop\"}]<br> QFL: {\"options\": {\"type\": \"original\"}, {\"percent\": 3}, \"strategy\": \"qfl\"}] <br> TradingView: [{\"options\": {\"time\": \"5m\", \"type\": \"buy_or_strong_buy\", \"strategy\": \"trading_view\"}\n","type":"array","items":{"$ref":"#/components/schemas/StrategyListEnum"}},"NameType":{"type":"string"},"BlackListType":{"required":["pairs"],"properties":{"pairs":{"$ref":"#/components/schemas/PairTypes"}}},"SymbolStringType":{"description":"Currency code(examples:\nCurrency code( - USDT)\n","type":"string","pattern":"^[A-Z]{3,}$","examples":["USDT"]},"SymbolStringTypes":{"description":"Array of currency codes","type":"array","items":{"$ref":"#/components/schemas/SymbolStringType"}},"TokenEntity":{"required":["code","amount"],"properties":{"code":{"$ref":"#/components/schemas/SymbolStringType"},"amount":{"type":"number","format":"double"}}},"TokenEntities":{"type":"array","items":{"$ref":"#/components/schemas/TokenEntity"}},"IntegerZeroPositiveType":{"format":"int32","minimum":0,"default":0},"IntegerPositiveType":{"description":"Description A","type":"integer","format":"int32","minimum":1,"default":1},"DoubleNegativeZeroType":{"type":"number","format":"double","maximum":0,"examples":[-0.002]},"DoublePositiveZeroType":{"type":"number","format":"double","minimum":0,"examples":[0.002]},"StringFloatNegativeType":{"type":"string","pattern":"^(\\-\\d+|\\d+)(.\\d+|)$","examples":["-0.002"]},"StringFloatPositiveType":{"type":"string","pattern":"^\\d+(.\\d+|)$","examples":["0.05"]},"StringFloatType":{"type":"string","pattern":"^(\\-?\\d+|\\d+)(.\\d+|)$","examples":["-0.002"]},"TimeUnitType":{"description":"Time Unit","$ref":"#/components/schemas/IntegerPositiveType"},"CountType":{"$ref":"#/components/schemas/IntegerZeroPositiveType"},"DateType":{"type":"string","format":"date"},"DateTimeType":{"type":"string","format":"date-time"},"PercentageNegativeType":{"$ref":"#/components/schemas/StringFloatNegativeType"},"PercentagePositiveType":{"$ref":"#/components/schemas/StringFloatPositiveType"},"PercentageType":{"$ref":"#/components/schemas/StringFloatType"},"DisplayValueEntity":{"properties":{"currency":{"$ref":"#/components/schemas/SymbolStringType"},"amount":{"$ref":"#/components/schemas/StringFloatType"}}},"TakeProfitType":{"description":"Target profit(percentage)","type":"number","format":"double","examples":["1.23"]},"CoefficientType":{"type":"number","format":"double","default":1},"MartingaleVolumeCoefficientType":{"$ref":"#/components/schemas/CoefficientType"},"MartingaleStepCoefficientType":{"$ref":"#/components/schemas/CoefficientType"},"DisableAfterDealsCountType":{"$ref":"#/components/schemas/CountType"},"AllowedDealsOnSamePair":{"$ref":"#/components/schemas/CountType"},"LeverageValueType":{"$ref":"#/components/schemas/IntegerPositiveType"},"MaxSafetyOrdersType":{"$ref":"#/components/schemas/IntegerZeroPositiveType"},"ActiveSafetyOrdersCountType":{"$ref":"#/components/schemas/IntegerZeroPositiveType"},"BotsShowLimitType":{"$ref":"#/components/schemas/IntegerZeroPositiveType"},"PerPageType":{"type":"integer","format":"int32","enum":[10,25,50,100],"default":10},"PageType":{"type":"integer","format":"int32","minimum":1,"default":1},"CloseDealsTimeoutType":{"description":"Close bot deals after given number of seconds. Must be greater than 60.\n","type":"integer","format":"int32","exclusiveMinimum":60},"DealStatusEnum":{"type":"string","description":"Values: created, base_order_placed, bought, cancelled, completed, failed, panic_sell_pending, panic_sell_order_placed, panic_sold, cancel_pending, stop_loss_pending, stop_loss_finished, stop_loss_order_placed, switched, switched_take_profit, ttp_activated, ttp_order_placed, liquidated, bought_safety_pending, bought_take_profit_pending, settled\n","enum":["created","base_order_placed","bought","cancelled","completed","failed","panic_sell_pending","panic_sell_order_placed","panic_sold","cancel_pending","stop_loss_pending","stop_loss_finished","stop_loss_order_placed","switched","switched_take_profit","ttp_activated","ttp_order_placed","liquidated","bought_safety_pending","bought_take_profit_pending","settled"],"examples":["failed"]},"LocalizedStatusEnum":{"type":"string","enum":["Created","Active"],"examples":["failed"]},"OrderVolumeEnum":{"type":"string","description":"Values: quote_currency, base_currency, percent, xbt\n","examples":["quote_currency"],"oneOf":[{"$ref":"#/components/schemas/ProfitCurrencyEnum"},{"enum":["percent","xbt"]}]},"PriceType":{"description":"Order price\n","type":"number","format":"double","minimum":0},"OrderVolumeType":{"description":"Order size\n","type":"number","format":"double","minimum":0,"examples":["0.001"]},"ProfitCurrencyEnum":{"type":"string","description":"Values: quote_currency, base_currency\n","examples":["quote_currency"],"enum":["quote_currency","base_currency"]},"TakeProfitEnum":{"type":"string","description":"Values: base, total\n","examples":["base"],"default":"total","enum":["base","total"]},"BotFormEnum":{"type":"string","description":"Param for a filter by bot form type (gordon/advanced)","enum":["gordon","advanced"]},"BotEnum":{"type":"string","description":"Values: [\"Bot::MultiBot\", \"Bot::SingleBot\", \"Bot::SwitchBot\"]\n","examples":["Bot::MultiBot"],"enum":["Bot::MultiBot","Bot::SingleBot","Bot::SwitchBot"]},"GridEnum":{"type":"string","description":"Grid Type","default":"arithmetic","enum":["geometric","arithmetic"]},"StopLossEnum":{"type":"string","examples":["stop_bot"],"enum":["stop_bot","stop_bot_and_buy"]},"StopLossActionEnum":{"type":"string","examples":["stop_bot"],"enum":["stop_bot","stop_bot_and_buy","stop_bot_and_sell","stop_bot_and_close_position"]},"StopLossDealsEnum":{"type":"string","examples":["stop_bot"],"enum":["stop_bot","stop_bot_and_close_position"]},"BotQueryEnum":{"type":"string","description":"simple or composite","examples":["simple"],"enum":["simple","composite"]},"SortByEnum":{"type":"string","examples":["created_at"],"enum":["profit","created_at","updated_at"]},"SortByDealsEnum":{"type":"string","enum":["created_at","updated_at","closed_at","profit","profit_percentage"]},"SmartTradesOrderByEnum":{"type":"string","enum":["created_at","updated_at","closed_at","status","profit","profit_percentage"]},"SortByGridBotEnum":{"type":"string","enum":["current_profit","profit","bot_id","pair","created_at","updated_at","name"]},"SortDirectionEnum":{"description":"Sort order:\n * `asc` - Ascending, from A to Z\n * `desc` - Descending, from Z to A\n","examples":["asc"],"type":"string","enum":["asc","desc"]},"ActivationEnum":{"type":"string","description":"enabled or disabled","examples":["enabled"],"enum":["enabled","disabled"]},"StrategyEnum":{"type":"string","description":"short or long","examples":["long"],"default":"long","enum":["short","long"]},"LeverageEnum":{"type":"string","description":"Values: cross, not_specified, isolated. For Bitmex only: custom\n","examples":["isolated"],"enum":["custom","cross","not_specified","isolated"]},"PositionEnum":{"type":"string","enum":["buy","sell"]},"PositionOrderEnum":{"type":"string","oneOf":[{"$ref":"#/components/schemas/OrderEnum"},{"enum":["conditional"]}]},"OrderEnum":{"type":"string","enum":["market","limit"]},"OrderTypes":{"type":"array","items":{"$ref":"#/components/schemas/OrderEnum"}},"PriceEnum":{"description":"bid, ask, last By default ask for long, bid for short\n","type":"string","enum":["bid","ask","last"]},"OffsetType":{"$ref":"#/components/schemas/IntegerZeroPositiveType"},"IndexEntity":{"properties":{"bots":{"$ref":"#/components/schemas/MarketplaceBotEntities"},"total":{"type":"integer","format":"int32"},"page":{"$ref":"#/components/schemas/PageType"}},"description":"Marketplace presets (Permission: NONE, Security: SIGNED)\n"},"MarketplaceBotEntity":{"properties":{"id":{"$ref":"#/components/schemas/MarketplaceBotIdType"},"type":{"type":"string"},"name":{"$ref":"#/components/schemas/NameType"},"strategy":{"type":"string"},"secret":{"type":"string"},"marketplace_item":{"$ref":"#/components/schemas/MarketplaceItemEntity"},"profit":{"$ref":"#/components/schemas/ProfitEntity"},"currencies":{"$ref":"#/components/schemas/SymbolStringTypes"},"copies":{"type":"integer","description":"Bot's copies count","format":"int32"},"is_favorite":{"type":"boolean"}}},"MarketplaceBotEntities":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceBotEntity"}},"MarketplaceItemEntity":{"properties":{"id":{"$ref":"#/components/schemas/MarketplaceItemIdType"},"name":{"$ref":"#/components/schemas/NameType"},"icon_url":{"type":"string"}}},"ProfitEntity":{"properties":{"period":{"type":"string"},"amount":{"type":"number","format":"double"},"chart_data":{"type":"array","items":{"type":"number","format":"double"}}}},"GridBotProfitsEntity":{"properties":{"grid_line_id":{"$ref":"#/components/schemas/GridLineIdType"},"profit":{"$ref":"#/components/schemas/StringFloatType"},"usd_profit":{"$ref":"#/components/schemas/StringFloatType"},"created_at":{"type":"string","format":"date-time","examples":["2018-08-08T08:08:08.123Z, '2018-08-08 08:08:08'"]}},"description":"Grid Bot Profits (Permission: BOTS_READ, Security: SIGNED)\n"},"BotEntity":{"properties":{"id":{"$ref":"#/components/schemas/BotIdType"},"account_id":{"$ref":"#/components/schemas/AccountIdType"},"is_enabled":{"type":"boolean","examples":[true]},"max_safety_orders":{"$ref":"#/components/schemas/CountType"},"active_safety_orders_count":{"$ref":"#/components/schemas/CountType"},"pairs":{"$ref":"#/components/schemas/PairTypes"},"strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"close_strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"max_active_deals":{"$ref":"#/components/schemas/MaxActiveDealsType"},"active_deals_count":{"$ref":"#/components/schemas/ActiveDealsCountType"},"deletable?":{"type":"boolean","examples":[true]},"created_at":{"type":"string","format":"timestamp","examples":["2023-02-27T10:17:08.500Z"]},"updated_at":{"type":"string","format":"timestamp","examples":["2023-02-27T10:17:08.500Z"]},"trailing_enabled":{"type":"boolean","examples":[true]},"tsl_enabled":{"type":"boolean","examples":[true]},"deal_start_delay_seconds":{"$ref":"#/components/schemas/IntegerPositiveType"},"stop_loss_timeout_enabled":{"type":"boolean","examples":[true]},"stop_loss_timeout_in_seconds":{"$ref":"#/components/schemas/IntegerPositiveType"},"disable_after_deals_count":{"$ref":"#/components/schemas/CountType"},"deals_counter":{"$ref":"#/components/schemas/CountType"},"allowed_deals_on_same_pair":{"$ref":"#/components/schemas/IntegerPositiveType"},"easy_form_supported":{"type":"boolean","examples":[true]},"close_deals_timeout":{"$ref":"#/components/schemas/IntegerPositiveType"},"url_secret":{"type":"string","examples":["abcdef1234"]},"take_profit_steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"amount_percentage":{"type":"integer","examples":[25]},"profit_percentage":{"type":"number","examples":[2.4]}}}},"name":{"$ref":"#/components/schemas/NameType"},"take_profit":{"$ref":"#/components/schemas/TakeProfitType"},"base_order_volume":{"$ref":"#/components/schemas/StringFloatNegativeType"},"safety_order_volume":{"$ref":"#/components/schemas/StringFloatNegativeType"},"safety_order_step_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"take_profit_type":{"$ref":"#/components/schemas/TakeProfitEnum"},"min_profit_type":{"type":"string","enum":["total_bought_volume"]},"type":{"$ref":"#/components/schemas/BotEnum"},"martingale_volume_coefficient":{"$ref":"#/components/schemas/StringFloatPositiveType"},"martingale_step_coefficient":{"$ref":"#/components/schemas/StringFloatPositiveType"},"stop_loss_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"cooldown":{"type":"string","examples":[200]},"btc_price_limit":{"$ref":"#/components/schemas/StringFloatPositiveType"},"strategy":{"$ref":"#/components/schemas/StrategyEnum"},"min_volume_btc_24h":{"$ref":"#/components/schemas/StringFloatPositiveType"},"profit_currency":{"$ref":"#/components/schemas/ProfitCurrencyEnum"},"min_price":{"$ref":"#/components/schemas/StringFloatPositiveType"},"max_price":{"$ref":"#/components/schemas/StringFloatPositiveType"},"stop_loss_type":{"type":"string","enum":["stop_loss","stop_loss_and_disable_bot"]},"safety_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"base_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"account_name":{"$ref":"#/components/schemas/NameType"},"trailing_deviation":{"$ref":"#/components/schemas/StringFloatPositiveType"},"finished_deals_profit_usd":{"$ref":"#/components/schemas/StringFloatType"},"finished_deals_count":{"$ref":"#/components/schemas/CountType"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"start_order_type":{"$ref":"#/components/schemas/OrderEnum"},"active_deals_usd_profit":{"$ref":"#/components/schemas/StringFloatType"},"reinvesting_percentage":{"$ref":"#/components/schemas/PercentagePositiveType"},"risk_reduction_percentage":{"$ref":"#/components/schemas/PercentagePositiveType"},"reinvested_volume_usd":{"$ref":"#/components/schemas/StringFloatPositiveType"},"min_price_percentage":{"$ref":"#/components/schemas/PercentagePositiveType"},"max_price_percentage":{"$ref":"#/components/schemas/PercentagePositiveType"},"active_deals":{"type":"array"},"bot_events":{"type":"array"}}},"BotEntities":{"type":"array","items":{"$ref":"#/components/schemas/BotEntity"}},"GridBotEntity":{"properties":{"id":{"$ref":"#/components/schemas/GridBotIdType"},"account_id":{"$ref":"#/components/schemas/AccountIdType"},"account_name":{"$ref":"#/components/schemas/NameType"},"is_enabled":{"type":"boolean","examples":[true]},"grids_quantity":{"$ref":"#/components/schemas/IntegerPositiveType"},"created_at":{"$ref":"#/components/schemas/DateTimeType"},"updated_at":{"$ref":"#/components/schemas/DateTimeType"},"strategy_type":{"type":"string","examples":["'manual'"]},"upper_stop_loss_enabled":{"type":"boolean","examples":[true]},"lower_stop_loss_enabled":{"type":"boolean","examples":[true]},"note":{"type":"string","examples":["Best pair"]},"lower_price":{"type":"string","examples":["8000"]},"lower_stop_loss_price":{"type":"string","examples":["7500"]},"lower_stop_loss_action":{"$ref":"#/components/schemas/StopLossActionEnum"},"upper_price":{"type":"string","examples":["10000"]},"upper_stop_loss_price":{"type":"string","examples":["12000"]},"upper_stop_loss_action":{"$ref":"#/components/schemas/StopLossActionEnum"},"quantity_per_grid":{"$ref":"#/components/schemas/IntegerPositiveType"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"name":{"$ref":"#/components/schemas/NameType"},"pair":{"$ref":"#/components/schemas/PairType"},"start_price":{"type":"string","examples":["9000"]},"grid_price_step":{"type":"string","examples":["100"]},"current_profit":{"type":"string","examples":["100"]},"current_profit_usd":{"type":"string","examples":["1000"]},"total_profits_count":{"$ref":"#/components/schemas/CountType"},"bought_volume":{"type":"string","examples":["1000"]},"sold_volume":{"type":"string","examples":["1000"]},"profit_percentage":{"type":"string","examples":["0.1"]},"current_price":{"type":"string","examples":["100.1"]},"max_active_buy_lines":{"type":"string","examples":["10"]},"max_active_sell_lines":{"type":"string","examples":["10"]},"order_currency_type":{"type":"string","examples":["base"]},"profit_currency_type":{"type":"string","examples":["quote"]},"trailing_up_enabled":{"type":"boolean","examples":[true]},"grid_type":{"$ref":"#/components/schemas/GridEnum"},"investment_base_currency":{"type":"string","examples":["100"]},"investment_quote_currency":{"type":"string","examples":["100"]},"unrealized_profit_loss":{"type":"string","examples":["2500.0"]},"current_profit_loss":{"type":"string","examples":["0.2284"]},"current_profit_loss_percent":{"type":"string","examples":["2.007"]},"orderbook_price_currency":{"type":"string","examples":["USDT"]},"expansion_down_enabled":{"type":"boolean","description":"Trailing down enabled"},"expansion_down_stop_price":{"type":"number","format":"double","description":"Trailing down stop price (mandatory if trailing down","examples":["10500.0"]},"grid_lines":{"$ref":"#/components/schemas/GridLineEntity"}}},"GridBotEntities":{"type":"array","items":{"$ref":"#/components/schemas/GridBotEntity"}},"GridLineEntity":{"properties":{"id":{"$ref":"#/components/schemas/GridLineIdType"},"price":{"type":"string","examples":["8000"]},"side":{"type":"string","examples":["SELL"]},"order_placed":{"type":"boolean","examples":[true]}}},"DealEntity":{"properties":{"id":{"type":"integer","examples":[1]},"type":{"type":"string","examples":["Deal::ShortDeal"],"enum":["Deal::ShortDeal","Deal"]},"bot_id":{"type":"integer","examples":[111]},"max_safety_orders":{"$ref":"#/components/schemas/MaxSafetyOrdersType"},"deal_has_error":{"type":"boolean","examples":[true]},"from_currency_id":{"type":"integer"},"to_currency_id":{"type":"integer"},"account_id":{"$ref":"#/components/schemas/AccountIdType"},"active_safety_orders_count":{"$ref":"#/components/schemas/CountType"},"created_at":{"$ref":"#/components/schemas/DateTimeType"},"updated_at":{"$ref":"#/components/schemas/DateTimeType"},"closed_at":{"$ref":"#/components/schemas/DateTimeType"},"finished?":{"type":"boolean"},"current_active_safety_orders_count":{"$ref":"#/components/schemas/CountType"},"completed_safety_orders_count":{"$ref":"#/components/schemas/CountType"},"completed_manual_safety_orders_count":{"type":"integer","description":"completed manual safeties","examples":[2]},"cancellable?":{"type":"boolean"},"panic_sellable?":{"type":"boolean"},"trailing_enabled":{"type":"boolean","examples":[true]},"tsl_enabled":{"type":"boolean","examples":[true]},"stop_loss_timeout_enabled":{"type":"boolean","examples":[true]},"stop_loss_timeout_in_seconds":{"type":"integer","examples":[2]},"active_manual_safety_orders":{"type":"integer","examples":[2]},"pair":{"$ref":"#/components/schemas/PairType"},"status":{"$ref":"#/components/schemas/DealStatusEnum"},"localized_status":{"$ref":"#/components/schemas/LocalizedStatusEnum"},"take_profit":{"$ref":"#/components/schemas/TakeProfitType"},"base_order_volume":{"$ref":"#/components/schemas/OrderVolumeType"},"safety_order_volume":{"$ref":"#/components/schemas/OrderVolumeType"},"safety_order_step_percentage":{"$ref":"#/components/schemas/PercentagePositiveType"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"bought_amount":{"type":"string","examples":["1.5"]},"bought_volume":{"type":"string","examples":["150"]},"bought_average_price":{"type":"string","examples":["100"]},"base_order_average_price":{"type":"string","examples":["100"]},"sold_amount":{"type":"string","examples":["1.5"]},"sold_volume":{"type":"string","examples":["150"]},"sold_average_price":{"type":"string","examples":["100"]},"take_profit_type":{"$ref":"#/components/schemas/TakeProfitEnum"},"final_profit":{"type":"string","examples":["-0.00051"]},"martingale_coefficient":{"$ref":"#/components/schemas/CoefficientType"},"martingale_volume_coefficient":{"$ref":"#/components/schemas/MartingaleVolumeCoefficientType"},"martingale_step_coefficient":{"$ref":"#/components/schemas/MartingaleStepCoefficientType"},"stop_loss_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"error_message":{"type":"string","examples":["Error placing base order"]},"profit_currency":{"$ref":"#/components/schemas/ProfitCurrencyEnum"},"stop_loss_type":{"$ref":"#/components/schemas/StopLossDealsEnum"},"safety_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"base_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"from_currency":{"$ref":"#/components/schemas/SymbolStringType"},"to_currency":{"$ref":"#/components/schemas/SymbolStringType"},"current_price":{"type":"string","examples":["102"]},"take_profit_price":{"type":"string","examples":["105"]},"stop_loss_price":{"type":"string","examples":["95.3"]},"final_profit_percentage":{"type":"string","examples":["4.2"]},"actual_profit_percentage":{"type":"string","examples":["3.4"]},"bot_name":{"$ref":"#/components/schemas/NameType"},"account_name":{"$ref":"#/components/schemas/NameType"},"usd_final_profit":{"$ref":"#/components/schemas/StringFloatType"},"actual_profit":{"$ref":"#/components/schemas/StringFloatType"},"actual_usd_profit":{"$ref":"#/components/schemas/StringFloatType"},"failed_message":{"type":"string","examples":["Failed"]},"reserved_base_coin":{"$ref":"#/components/schemas/StringFloatPositiveType"},"reserved_second_coin":{"$ref":"#/components/schemas/StringFloatPositiveType"},"trailing_deviation":{"$ref":"#/components/schemas/StringFloatPositiveType"},"trailing_max_price":{"$ref":"#/components/schemas/StringFloatPositiveType"},"tsl_max_price":{"$ref":"#/components/schemas/StringFloatPositiveType"},"strategy":{"$ref":"#/components/schemas/StrategyEnum"},"reserved_quote_funds":{"$ref":"#/components/schemas/StringFloatPositiveType"},"reserved_base_funds":{"$ref":"#/components/schemas/StringFloatPositiveType"},"min_profit_percentage":{"$ref":"#/components/schemas/PercentageType"},"min_profit_type":{"type":"string","enum":["total_bought_volume"]},"close_strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"note":{"type":"string"}}},"DealEntities":{"type":"array","items":{"$ref":"#/components/schemas/DealEntity"}},"DealStartEntity":{"properties":{"skip_signal_checks":{"description":"If false or not specified then all paramaters like signals or volume filters will be checked. If true - those checks will be skipped\n","type":"boolean"},"only_for_enabled":{"description":"If set true and bot disabled will return error(422 code), if false and bot disabled then enable it\n","type":"boolean","default":false}}},"DealStartSingleEntity":{"$ref":"#/components/schemas/DealStartEntity"},"DealStartMultiEntity":{"allOf":[{"$ref":"#/components/schemas/DealStartEntity","properties":{"pair":{"$ref":"#/components/schemas/PairType"},"skip_open_deals_checks":{"description":"If true then you will be allowed to open more then one deal per pair in composite bot\n","type":"boolean"}}}]},"SmartTradeV2Entity":{"properties":{"id":{"type":"integer"},"version":{"type":"integer"},"account":{"properties":{"id":{"type":"integer"},"type":{"type":"string"},"name":{"$ref":"#/components/schemas/NameType"},"market":{"type":"string"},"link":{"type":"string"}}},"pair":{"type":"string"},"instant":{"type":"boolean"},"status":{"properties":{"type":{"type":"string"},"title":{"type":"string"}}},"leverage":{"properties":{"enabled":{"type":"boolean"},"type":{"type":"string"},"value":{"type":"integer"}}},"position":{"properties":{"type":{"type":"string"},"editable":{"type":"boolean"},"units":{"properties":{"value":{"type":"string","examples":["1231.11"]},"editable":{"type":"boolean"}}},"price":{"properties":{"value":{"type":"number","examples":[1223.32]},"value_without_commission":{"type":"number","examples":[500.2]},"editable":{"type":"boolean"}}},"total":{"properties":{"value":{"type":"number","examples":[100.2]}}},"order_type":{"type":"string"},"status":{"properties":{"type":{"type":"string"},"title":{"type":"string"}}}}},"take_profit":{"properties":{"enabled":{"type":"boolean"},"steps":{"$ref":"#/components/schemas/TakeProfitStepEntities"}}},"stop_loss":{"properties":{"enabled":{"type":"boolean"}}},"reduce_funds":{"properties":{"steps":{"$ref":"#/components/schemas/ReduceFundsStepEntities"}}},"market_close":{"properties":{"id":{"type":"integer"},"type":{"type":"string"},"status":{"properties":{"type":{"type":"string"},"title":{"type":"string"},"basic_type":{"type":"string"}}},"units":{"properties":{"value":{"type":"string"}}},"price":{"properties":{"value":{"type":"string"},"value_without_commission":{"type":"string"}}},"total":{"properties":{"value":{"type":"string"}}},"filled":{"properties":{"units":{"type":"string"},"total":{"type":"string"},"price":{"type":"string"},"value":{"type":"string"}}}}},"note":{"type":"string"},"note_raw":{"type":"string"},"skip_enter_step":{"type":"boolean"},"data":{"properties":{"editable":{"type":"boolean"},"current_price":{"properties":{"quote_volume":{"type":"string"},"last":{"type":"string"}}},"target_price_type":{"type":"string"},"base_order_finished":{"type":"boolean"},"missing_funds_to_close":{"type":"number"},"liquidation_price":{"type":"number","examples":[1000.22]},"average_enter_price":{"type":"number","examples":[60.2]},"average_close_price":{"type":"number","examples":[60.2]},"average_enter_price_without_commission":{"type":"number","examples":[100.3]},"average_close_price_without_commission":{"type":"number","examples":[40.2]},"panic_sell_available":{"type":"boolean"},"add_funds_available":{"type":"boolean"},"force_start_available":{"type":"boolean"},"force_process_available":{"type":"boolean"},"cancel_available":{"type":"boolean"},"finished":{"type":"boolean"},"base_position_step_finished":{"type":"boolean"},"created_at":{"type":"string","examples":["2018-08-08 08:08:08"]},"updated_at":{"type":"string","examples":["2018-08-08 08:08:08"]},"closed_at":{"type":"string","examples":["2018-08-08 08:08:08"]},"type":{"type":"string","examples":["smart_sell"]}}},"profit":{"properties":{"volume":{"type":"number","examples":[14]},"usd":{"type":"number","examples":[12.22]},"percent":{"type":"number","examples":[12]},"roe":{"type":"number"}}},"margin":{"properties":{"amount":{"type":"number","examples":[100.2]},"total":{"type":"number","examples":[700.2]}}},"is_position_not_filled":{"type":"boolean"}}},"SmartTradeV2Entities":{"type":"array","items":{"$ref":"#/components/schemas/SmartTradeV2Entity"}},"TakeProfitStepEntity":{"required":["order_type","volume"],"properties":{"order_type":{"$ref":"#/components/schemas/OrderEnum"},"volume":{"type":"number","format":"float"},"price":{"required":["type"],"properties":{"type":{"$ref":"#/components/schemas/PriceEnum"},"value":{"$ref":"#/components/schemas/PriceType"},"percent":{"$ref":"#/components/schemas/PercentageNegativeType"}}},"trailing":{"required":["enabled","percent"],"properties":{"enabled":{"type":"boolean"},"percent":{"$ref":"#/components/schemas/PercentageNegativeType"}}}}},"TakeProfitStepEntities":{"type":"array","items":{"$ref":"#/components/schemas/TakeProfitStepEntity"}},"BotDealsStatsEntity":{"properties":{"completed":{"type":"integer","examples":[0]},"panic_sold":{"type":"integer","examples":[0]},"active":{"type":"integer","examples":[0]},"completed_deals_usd_profit":{"type":"string","examples":["5000.0"]},"from_currency_is_dollars":{"type":"boolean","examples":[false]},"completed_deals_btc_profit":{"type":"string","examples":["0.5"]},"funds_locked_in_active_deals":{"type":"string","examples":["0.0"]},"btc_funds_locked_in_active_deals":{"type":"string","examples":["0.0"]},"active_deals_usd_profit":{"type":"string","examples":["0.0"]},"active_deals_btc_profit":{"type":"string","examples":["0.0"]}}},"SystemSettingEntity":{"properties":{"new_referral_terms_start_date":{"type":"string"},"new_referral_terms_end_date":{"type":"string"}}},"SmartBotV1Entity":{"properties":{"id":{"type":"integer"},"name":{"$ref":"#/components/schemas/NameType"},"enabled":{"type":"boolean"},"source":{"$ref":"#/components/schemas/SmartBotStrategyEnum"},"enable_emergency_brake":{"type":"boolean"},"enable_stop_loss":{"type":"boolean"},"quote_currency":{"$ref":"#/components/schemas/SymbolStringType"},"quote_volume":{"type":"string"},"profit_quote":{"type":"string"},"have_any_completed_trades":{"type":"boolean"},"strategy":{"$ref":"#/components/schemas/SmartBotStrategyEnum"},"account":{"properties":{"id":{"type":"integer"},"name":{"$ref":"#/components/schemas/NameType"},"exchange_code":{"type":"string"},"exchange_name":{"$ref":"#/components/schemas/NameType"}}},"warnings":{"type":"array"},"active_trades":{"properties":{"quote_volume":{"type":"string"},"profit_quote":{"type":"string"},"profit_percent":{"type":"string"}}}}},"GridBotEventEntity":{"properties":{"message":{"type":"string","examples":["Bot Message"]},"created_at":{"type":"string","examples":["2021-07-08 08:08:08"]}}},"HodlBotV1Entity":{"properties":{"id":{"type":"integer"},"account_name":{"$ref":"#/components/schemas/NameType"},"exchange_code":{"type":"string"},"buy_interval_days":{"type":"integer"},"next_buy_date_timestamp":{"type":"integer"},"name":{"$ref":"#/components/schemas/NameType"},"base_currency":{"$ref":"#/components/schemas/SymbolStringType"},"quote_currency":{"$ref":"#/components/schemas/SymbolStringType"},"volume":{"type":"string"},"profit":{"type":"string"},"profit_percentage":{"type":"string"},"average_buy_price":{"type":"string"},"bought_coin_market_value":{"type":"string"},"is_enabled":{"type":"boolean"},"warning":{"type":"string"}}},"ErrorEntity":{"required":["error"],"properties":{"error":{"type":"string","enum":["record_invalid","Unknown pair","api_key_invalid_or_expired","signature_invalid","Api key must be created by Mini App","Forbidden. Unavailable for this account.","Forbidden","not_found","invalid_request_method","duplicated_api_key","bnb_dust_asset_not_found"]},"error_description":{"type":"string","enum":["Invalid parameters","Unauthorized. Invalid or expired api key.","Provided signature is invalid","Not Found","Your request method is not supported by this endpoint. Please use one of [OPTIONS, PUT].","This account is already connected by other User","Coin not found"]},"error_attributes":{"properties":{"code":{"type":"string"},"text":{"type":"array","items":{"type":"string","enum":["is missing","is invalid","does not have a valid value"]}}}}},"examples":[{"error":"record_invalid","error_description":"Invalid parameters","error_attributes":{"types_to_create":["is invalid"]}}]},"ReduceFundsStepEntity":{"properties":{"id":{"type":"integer"},"type":{"type":"string"},"status":{"properties":{"type":{"type":"string"},"title":{"type":"string"},"basic_type":{"type":"string"}}},"units":{"properties":{"value":{"type":"string"}}},"price":{"properties":{"value":{"type":"string"},"value_without_commission":{"type":"string"}}},"total":{"properties":{"value":{"type":"string"}}},"filled":{"properties":{"units":{"type":"string"},"total":{"type":"string"},"price":{"type":"string"},"value":{"type":"string"}}},"data":{"properties":{"cancelable":{"type":"boolean"},"panic_sell_available":{"type":"boolean"}}}}},"ReduceFundsStepEntities":{"type":"array","items":{"$ref":"#/components/schemas/ReduceFundsStepEntity"}},"AccountApiKeyType":{"description":"API key for binance/ftx/bybit/gateio account","type":"string","format":"password"},"AccountApiKeySecretType":{"description":"Secret for binance/ftx/bybit/gateio account","type":"string","format":"password"},"ChannelEnum":{"description":"Either 'SmartTradesChannel' or 'DealsChannel'","type":"string","enum":["SmartTradesChannel","DealsChannel"]},"ChannelCommandEnum":{"type":"string","enum":["subscribe"],"default":"subscribe"},"ChannelIdentifierEntity":{"description":"Insert into parent object as JSON ChannelIdentifierEntity","required":["channel","users"],"properties":{"channel":{"$ref":"#/components/schemas/ChannelEnum"},"users":{"type":"array","items":{"properties":{"api_key":{"type":"string"},"signature":{"description":"HMAC SHA256 hash of<br/> - \"/smart_trades\"<br/> - \"/deals\"<br/> created with the API key secret<br/> Once calculated all those hashes won't change for the same API key\n","type":"string","examples":["echo -n \"/smart_trades\" | openssl dgst -sha256 -hmac {DeveloperApiKeySecret} <br/> echo -n \"/deals\" | openssl dgst -sha256 -hmac {DeveloperApiKeySecret}\n"]}}}}}},"ChannelMessageEntity":{"required":["identifier","command"],"properties":{"identifier":{"$ref":"#/components/schemas/ChannelIdentifierEntity"},"command":{"$ref":"#/components/schemas/ChannelCommandEnum"}}}},"responses":{"DefaultHeaderResponse":{"description":"Contains collection of common headers","headers":{"access-control-allow-credentials":{"$ref":"#/components/headers/access-control-allow-credentials"},"access-control-allow-headers":{"$ref":"#/components/headers/access-control-allow-headers"},"access-control-allow-methods":{"$ref":"#/components/headers/access-control-allow-methods"},"access-control-allow-origin":{"$ref":"#/components/headers/access-control-allow-origin"},"access-control-expose-headers":{"$ref":"#/components/headers/access-control-expose-headers"},"cache-control":{"$ref":"#/components/headers/cache-control"},"cf-cache-status":{"$ref":"#/components/headers/cf-cache-status"},"cf-ray":{"$ref":"#/components/headers/cf-ray"},"content-encoding":{"$ref":"#/components/headers/content-encoding"},"content-length":{"$ref":"#/components/headers/content-length"},"content-type":{"$ref":"#/components/headers/content-type"},"date":{"$ref":"#/components/headers/date"},"etag":{"$ref":"#/components/headers/etag"},"expires":{"$ref":"#/components/headers/expires"},"status":{"$ref":"#/components/headers/status"},"strict-transport-security":{"$ref":"#/components/headers/strict-transport-security"},"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-runtime":{"$ref":"#/components/headers/x-runtime"}}},"TodoResponse":{"description":"The exact response is yet to be explored","headers":{"$ref":"#/components/responses/DefaultHeaderResponse"},"content":{"text/plain":{"schema":{"type":"string","default":".....TODO....."}}}},"TodoResponseWithoutHeaders":{"description":"The exact response is yet to be explored","content":{"text/plain":{"schema":{"type":"string","default":".....TODO....."}}}},"BooleanResponse":{"description":"Success?","content":{"text/plain":{"schema":{"type":"boolean"}}}},"ErrorResponse":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEntity"}}}},"PingResponse":{"description":"Pong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PongEntity"}}}},"TimeResponse":{"description":"Current Server Time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntity"}}}},"ValidateResponse":{"description":"Api credentials validity check","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevApiValidEntity"}}}},"StorageResponse":{"description":"Storage data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MiniAppsStorageEntity"}}}},"LocaleResponse":{"description":"Current locale","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocaleType"}}}},"UserPermissionResponse":{"description":"Api Key Permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPermissionEntity"}}}},"UserCurrentModeResponse":{"description":"Current User Mode","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserModeEntity"}}}},"PortfoliosResponse":{"description":"Portfolios","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioEntity"}}}},"PortfolioResponse":{"description":"Portfolio","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioItemEntity"}}}},"LooseAccountResponse":{"description":"Loose account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LooseAccountsEntity"}}}},"LooseAccountsAvailableCurrenciesResponse":{"description":"Available currencies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LooseAccountsCurrencyEntities"}}}},"LooseAccountsResponse":{"description":"Loose account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LooseAccountsEntities"}}}},"MarketListResponse":{"description":"Supported market list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketListItemEntities"}}},"links":{"getVer1AccountsMarketPairs":{"$ref":"#/components/links/getVer1AccountsMarketPairs"},"getVer1AccountsCurrencyRates":{"$ref":"#/components/links/getVer1AccountsCurrencyRatesMarketCode"},"getVer1AccountsCurrencyRatesWithLeverageDataMarketCode":{"$ref":"#/components/links/getVer1AccountsCurrencyRatesWithLeverageDataMarketCode"},"getVer1AccountsTypesToConnect":{"$ref":"#/components/links/getVer1AccountsTypesToConnect"},"getVer1GridBotsAiSettings":{"$ref":"#/components/links/getVer1GridBotsAiSettings"},"getV2AccountsMarketPairs":{"$ref":"#/components/links/getV2AccountsMarketPairs"},"getVer1MarketplacePresets":{"$ref":"#/components/links/getVer1MarketplacePresets"}}},"MarketPairsResponse":{"description":"All market pairs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairTypes"}}},"links":{"getVer1AccountsCurrencyRates":{"$ref":"#/components/links/getVer1AccountsCurrencyRatesPair"},"getVer1AccountsvCurrencyRatesWithLeverageData":{"$ref":"#/components/links/getVer1AccountsCurrencyRatesWithLeverageDataPair"},"postVer1BotsUpdatePairsBlackList":{"$ref":"#/components/links/postVer1BotsUpdatePairsBlackList"},"postV2SmartTradesPair":{"$ref":"#/components/links/postV2SmartTradesPair"},"postVer1GridBotsAiPair":{"$ref":"#/components/links/postVer1GridBotsAiPair"},"postVer1GridBotsManualPair":{"$ref":"#/components/links/postVer1GridBotsManualPair"},"patchVer1GridBotsIdAiPair":{"$ref":"#/components/links/patchVer1GridBotsIdAiPair"},"getVer1MarketplacePresets":{"$ref":"#/components/links/getVer1MarketplacePresetsPairs"},"postVer1BotsCreateBotPairs":{"$ref":"#/components/links/postVer1BotsCreateBotPairs"},"patchVer1BotsBotIdUpdatePairs":{"$ref":"#/components/links/patchVer1BotsBotIdUpdatePairs"}}},"CurrencyRatesResponse":{"description":"Currency rates and limits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyRateEntity"}}}},"CurrencyRatesWithLeverageResponse":{"description":"Currency rates and limits with leverage data\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrencyRateWithLeverageEntity"}}}},"AccountResponse":{"description":"User connected exchanges (and EthereumWallet) list\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEntity"}}},"links":{"postVer1BotsCreateBot":{"$ref":"#/components/links/postVer1BotsCreateBot"},"postVer1AccountsTransferFrom":{"$ref":"#/components/links/postVer1AccountsTransferFrom"},"postVer1AccountsTransferTo":{"$ref":"#/components/links/postVer1AccountsTransferTo"},"getVer1AccountsAccountIdDepositData":{"$ref":"#/components/links/getVer1AccountsAccountIdDepositData"},"getVer1AccountsAccountIdNetworksInfo":{"$ref":"#/components/links/getVer1AccountsAccountIdNetworksInfo"},"postVer1AccountsAccountIdConvertDustToBnb":{"$ref":"#/components/links/postVer1AccountsAccountIdConvertDustToBnb"},"getVer1AccountsAccountIdActiveTradingEntities":{"$ref":"#/components/links/getVer1AccountsAccountIdActiveTradingEntities"},"postVer1AccountsAccountIdSellAllToUsd":{"$ref":"#/components/links/postVer1AccountsAccountIdSellAllToUsd"},"postVer1AccountsAccountIdSellAllToBtc":{"$ref":"#/components/links/postVer1AccountsAccountIdSellAllToBtc"},"getVer1AccountsAccountIdBalanceChartData":{"$ref":"#/components/links/getVer1AccountsAccountIdBalanceChartData"},"postVer1AccountsAccountIdLoadBalances":{"$ref":"#/components/links/postVer1AccountsAccountIdLoadBalances"},"postVer1AccountsAccountIdRename":{"$ref":"#/components/links/postVer1AccountsAccountIdRename"},"postVer1AccountsAccountIdPieChartData":{"$ref":"#/components/links/postVer1AccountsAccountIdPieChartData"},"getVer1BotsAccountTradeInfoSmartSell":{"$ref":"#/components/links/getVer1BotsAccountTradeInfoSmartSell"},"getVer1BotsAccountTradeInfo":{"$ref":"#/components/links/getVer1BotsAccountTradeInfo"},"getVer1BotsStrategyList":{"$ref":"#/components/links/getVer1BotsStrategyList"},"getVer1Bots":{"$ref":"#/components/links/getVer1Bots"},"getVer1BotsStats":{"$ref":"#/components/links/getVer1BotsStats"},"getVer1BotsStatsByDate":{"$ref":"#/components/links/getVer1BotsStatsByDate"},"getVer1Deals":{"$ref":"#/components/links/getVer1Deals"},"postVer1GridBotsAi":{"$ref":"#/components/links/postVer1GridBotsAiAccountId"},"postVer1GridBotsManual":{"$ref":"#/components/links/postVer1GridBotsManualAccountId"},"getVer1AccountsTransferHistory":{"$ref":"#/components/links/getVer1AccountsTransferHistory"},"postVer1AccountsAccountIdAccountTableData":{"$ref":"#/components/links/postVer1AccountsAccountIdAccountTableData"},"postVer1AccountsAccountIdRemove":{"$ref":"#/components/links/postVer1AccountsAccountIdRemove"},"getVer1AccountsAccountIdLeverageData":{"$ref":"#/components/links/getVer1AccountsAccountIdLeverageData"},"getVer1AccountsAccountId":{"$ref":"#/components/links/getVer1AccountsAccountId"},"getVer1GridBots":{"$ref":"#/components/links/getVer1GridBots"},"putVer1LooseAccountsAccountId":{"$ref":"#/components/links/putVer1LooseAccountsAccountId"},"postV2SmartTrades":{"$ref":"#/components/links/postV2SmartTrades"},"getV2SmartTradesIdReduceFundsInfo":{"$ref":"#/components/links/getV2SmartTradesIdReduceFundsInfo"},"getV2SmartTradesId":{"$ref":"#/components/links/getV2SmartTradesId"}}},"AccountsResponse":{"description":"User connected exchanges (and EthereumWallet) list\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEntities"}}},"links":{"postVer1BotsCreateBot":{"$ref":"#/components/links/postVer1BotsCreateBot"},"postVer1AccountsTransferFrom":{"$ref":"#/components/links/postVer1AccountsTransferFrom"},"postVer1AccountsTransferTo":{"$ref":"#/components/links/postVer1AccountsTransferTo"},"getVer1AccountsAccountIdDepositData":{"$ref":"#/components/links/getVer1AccountsAccountIdDepositData"},"getVer1AccountsAccountIdNetworksInfo":{"$ref":"#/components/links/getVer1AccountsAccountIdNetworksInfo"},"postVer1AccountsAccountIdConvertDustToBnb":{"$ref":"#/components/links/postVer1AccountsAccountIdConvertDustToBnb"},"getVer1AccountsAccountIdActiveTradingEntities":{"$ref":"#/components/links/getVer1AccountsAccountIdActiveTradingEntities"},"postVer1AccountsAccountIdSellAllToUsd":{"$ref":"#/components/links/postVer1AccountsAccountIdSellAllToUsd"},"postVer1AccountsAccountIdSellAllToBtc":{"$ref":"#/components/links/postVer1AccountsAccountIdSellAllToBtc"},"getVer1AccountsAccountIdBalanceChartData":{"$ref":"#/components/links/getVer1AccountsAccountIdBalanceChartData"},"postVer1AccountsAccountIdLoadBalances":{"$ref":"#/components/links/postVer1AccountsAccountIdLoadBalances"},"postVer1AccountsAccountIdRename":{"$ref":"#/components/links/postVer1AccountsAccountIdRename"},"postVer1AccountsAccountIdPieChartData":{"$ref":"#/components/links/postVer1AccountsAccountIdPieChartData"},"getVer1BotsAccountTradeInfoSmartSell":{"$ref":"#/components/links/getVer1BotsAccountTradeInfoSmartSell"},"getVer1BotsAccountTradeInfo":{"$ref":"#/components/links/getVer1BotsAccountTradeInfo"},"getVer1BotsStrategyList":{"$ref":"#/components/links/getVer1BotsStrategyList"},"getVer1Bots":{"$ref":"#/components/links/getVer1Bots"},"getVer1BotsStats":{"$ref":"#/components/links/getVer1BotsStats"},"getVer1BotsStatsByDate":{"$ref":"#/components/links/getVer1BotsStatsByDate"},"getVer1Deals":{"$ref":"#/components/links/getVer1Deals"},"postVer1GridBotsAi":{"$ref":"#/components/links/postVer1GridBotsAiAccountId"},"postVer1GridBotsManual":{"$ref":"#/components/links/postVer1GridBotsManualAccountId"},"getVer1AccountsTransferHistory":{"$ref":"#/components/links/getVer1AccountsTransferHistory"},"postVer1AccountsAccountIdAccountTableData":{"$ref":"#/components/links/postVer1AccountsAccountIdAccountTableData"},"postVer1AccountsAccountIdRemove":{"$ref":"#/components/links/postVer1AccountsAccountIdRemove"},"getVer1AccountsAccountIdLeverageData":{"$ref":"#/components/links/getVer1AccountsAccountIdLeverageData"},"getVer1AccountsAccountId":{"$ref":"#/components/links/getVer1AccountsAccountId"},"getVer1GridBots":{"$ref":"#/components/links/getVer1GridBots"},"putVer1LooseAccountsAccountId":{"$ref":"#/components/links/putVer1LooseAccountsAccountId"},"postV2SmartTrades":{"$ref":"#/components/links/postV2SmartTrades"},"getV2SmartTradesIdReduceFundsInfo":{"$ref":"#/components/links/getV2SmartTradesIdReduceFundsInfo"},"getV2SmartTradesId":{"$ref":"#/components/links/getV2SmartTradesId"}}},"TypesToConnectResponse":{"description":"Types to connect","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypesToConnectEntities"}}},"links":{"postVer1AccountsNewType":{"$ref":"#/components/links/postVer1AccountsNewType"}}},"AccountsNewResponse":{"description":"Add exchange account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEntity"}}},"links":{"postVer1AccountsNewType":{"$ref":"#/components/links/postVer1AccountsNewType"}}},"AccountsUpdateResponse":{"description":"Edit exchange account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEntity"}}},"links":{"postVer1AccountsNewType":{"$ref":"#/components/links/postVer1AccountsNewType"}}},"AccountActiveTradingEntitiesResponse":{"description":"Active trade entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveTradingEntity"}}}},"AccountNetworksInfoResponse":{"description":"Deposit/withdraw networks info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkInfoEntity"}}},"links":{"getVer1AccountsAccountIdDepositDataNetwork":{"$ref":"#/components/links/getVer1AccountsAccountIdDepositDataNetwork"},"getVer1AccountsAccountIdDepositDataCurrency":{"$ref":"#/components/links/getVer1AccountsAccountIdDepositDataCurrency"}}},"BotsStrategyListResponse":{"description":"Available strategy list for bot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StrategyListTypes"}}},"links":{"postVer1BotsCreateBotStrategy":{"$ref":"#/components/links/postVer1BotsCreateBotStrategy"},"postVer1BotsCreateBotStrategyClose":{"$ref":"#/components/links/postVer1BotsCreateBotStrategyClose"},"patchVer1BotsBotIdUpdate":{"$ref":"#/components/links/patchVer1BotsBotIdUpdate"},"patchVer1DealsDealIdUpdateDeal":{"$ref":"#/components/links/patchVer1DealsDealIdUpdateDeal"}}},"BotsPairsBlackListResponse":{"description":"Bots' pair black list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlackListType"}}}},"BotResponse":{"description":"Bot entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotEntity"}}}},"BotsResponse":{"description":"Bot entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotEntities"}}}},"DealsResponse":{"description":"Deal entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealEntities"}}}},"DealResponse":{"description":"Deal entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealEntity"}}}},"SmartTradesResponse":{"description":"SmartTrade entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartTradeV2Entities"}}}},"SmartTradeResponse":{"description":"SmartTrade entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartTradeV2Entity"}}}},"GridBotsResponse":{"description":"Grid bot entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GridBotEntities"}}}},"GridBotProfitsResponse":{"description":"Grid Bot Profits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GridBotProfitsEntity"}}}},"MarketplacePresetsResponse":{"description":"Marketplace presets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexEntity"}}}}},"parameters":{"miniAppsTokenParam":{"description":"Requires probably a special internal token of 3Commas, which may not be available for user accounts?\n","name":"token","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MiniAppsTokenType"}},"miniAppsKeyParam":{"name":"key","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MiniAppsKeyType"}},"pageParam":{"description":"Page number","name":"page","in":"query","schema":{"$ref":"#/components/schemas/PageType"}},"perPageParam":{"description":"Records per page","name":"per_page","in":"query","schema":{"$ref":"#/components/schemas/PerPageType"}},"containsParam":{"name":"contains","in":"query","schema":{"type":"string"}},"limitParam":{"description":"Limit records. Max: 1_000\n","name":"limit","in":"query","schema":{"type":"integer","format":"int32","minimum":0,"maximum":1000}},"offsetParam":{"description":"Offset records","name":"offset","in":"query","schema":{"$ref":"#/components/schemas/OffsetType"}},"marketCodeParam":{"name":"market_code","in":"query","schema":{"$ref":"#/components/schemas/MarketCodeType"}},"marketCodeRequiredParam":{"name":"market_code","in":"query","schema":{"$ref":"#/components/schemas/MarketCodeType"},"required":true},"pairsRequiredParam":{"description":"Pair","name":"pair","in":"query","schema":{"$ref":"#/components/schemas/PairTypes"}},"pairRequiredParam":{"description":"Pair","name":"pair","in":"query","schema":{"$ref":"#/components/schemas/PairType"},"required":true},"limitTypeParam":{"description":"Types of limits - bot or smart_trade","name":"limit_type","in":"query","schema":{"type":"string","enum":["bot","smart_trade"]}},"apiKeyParam":{"description":"API key for binance/ftx/bybit/gateio account","name":"api_key","in":"query","schema":{"$ref":"#/components/schemas/AccountApiKeyType"}},"marketTypeParam":{"required":true,"name":"type","in":"query","schema":{"$ref":"#/components/schemas/MarketCodeType"}},"nameParam":{"required":true,"name":"name","description":"Account name (any string)","in":"query","schema":{"type":"string"}},"secretParam":{"description":"Secret for binance/ftx/bybit/gateio account","name":"secret","in":"query","schema":{"$ref":"#/components/schemas/AccountApiKeySecretType"}},"accountIdParam":{"name":"account_id","required":true,"in":"path","schema":{"$ref":"#/components/schemas/AccountIdType"}},"accountIdOrSummaryRequiredPathParam":{"name":"account_id","required":true,"in":"path","schema":{"oneOf":[{"$ref":"#/components/schemas/AccountIdType"},{"enum":["summary"]}]}},"depositWithdrawParam":{"description":"Filter currencies with deposit/withdraw enabled","name":"purpose","in":"query","schema":{"$ref":"#/components/schemas/DepositWithdrawEnum"}},"startTimeParam":{"name":"start_time","in":"query","description":"Start time timestamp (examples:\nStart time timestamp ( - 1665560898)\n","schema":{"$ref":"#/components/schemas/TimeUnitType"}},"pairParam":{"description":"Pair","name":"pair","in":"query","schema":{"$ref":"#/components/schemas/PairType"}},"smartTradeTypeParam":{"description":"Current page","name":"type","in":"query","schema":{"$ref":"#/components/schemas/SmartTradeEnum"}},"smartTradeStatusParam":{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/SmartTradeStatusEnum"}},"sortByParam":{"name":"sort_by","in":"query","schema":{"$ref":"#/components/schemas/SortByEnum"}},"sortByGridBotParam":{"name":"sort_by","in":"query","schema":{"$ref":"#/components/schemas/SortByGridBotEnum"}},"smartTradeOrderByParam":{"name":"order_by","in":"query","schema":{"$ref":"#/components/schemas/SmartTradesOrderByEnum"}},"sortDirectionParam":{"description":"Sort direction","name":"sort_direction","in":"query","schema":{"$ref":"#/components/schemas/SortDirectionEnum"}},"orderDirectionParam":{"name":"order_direction","in":"query","schema":{"$ref":"#/components/schemas/SortDirectionEnum"}},"dateRequiredParam":{"description":"Param for a filter by created date","name":"date","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DateType"}},"dateFilterFromParam":{"description":"Param for a filter by created date","name":"from","in":"query","schema":{"$ref":"#/components/schemas/DateType"}},"dateFilterFromRequiredParam":{"description":"Param for a filter by created date","name":"from","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DateType"}},"dateFilterDateFromRequiredParam":{"description":"Param for a filter by created date","name":"date_from","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DateType"}},"dateFilterToParam":{"name":"to","in":"query","description":"Param for a filter by created date","schema":{"$ref":"#/components/schemas/DateType"}},"dateFilterDateToParam":{"name":"date_to","in":"query","description":"Param for a filter by created date","schema":{"$ref":"#/components/schemas/DateType"}},"networkRequiredParam":{"required":true,"name":"network","in":"query","schema":{"type":"string"}},"currencyRequiredParam":{"required":true,"name":"currency","in":"query","schema":{"$ref":"#/components/schemas/SymbolStringType"}},"baseParam":{"name":"base","description":"Base currency","in":"query","schema":{"$ref":"#/components/schemas/SymbolStringType"}},"quoteParam":{"name":"quote","description":"Quote currency","in":"query","schema":{"$ref":"#/components/schemas/SymbolStringType"}},"portfolioIdParam":{"name":"portfolio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PortfolioIdType"}},"smartTradeIdParam":{"name":"smart_trade_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SmartTradeIdType"}},"tradeIdParam":{"name":"trade_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TradeIdType"}},"gridBotIdParam":{"name":"grid_bot_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/GridBotIdType"}},"botIdParam":{"name":"bot_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BotIdType"}},"dealIdParam":{"name":"deal_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/DealIdType"}},"marketplaceitemIdParam":{"name":"marketplaceitem_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MarketplaceItemIdType"}},"accountIdQueryParam":{"name":"account_id","in":"query","schema":{"$ref":"#/components/schemas/AccountIdType"}},"accountIdQueryRequiredParam":{"name":"account_id","required":true,"in":"query","schema":{"$ref":"#/components/schemas/AccountIdType"}},"accountIdTransferQueryRequiredParam":{"description":"Sender or Recipient account ID (possible values in /transfer_data)","name":"account_id","required":true,"in":"query","schema":{"$ref":"#/components/schemas/AccountIdType"}},"botIdQueryParam":{"description":"Bots to show on. Null - show for all","name":"bot_id","in":"query","schema":{"$ref":"#/components/schemas/IdType"}},"strategyParam":{"name":"strategy","in":"query","schema":{"$ref":"#/components/schemas/StrategyEnum"}},"botQueryParam":{"name":"type","in":"query","schema":{"$ref":"#/components/schemas/BotQueryEnum"}},"localeParam":{"name":"locale","in":"query","schema":{"$ref":"#/components/schemas/LocaleEnum"}},"botShowLimitParam":{"name":"limit","in":"query","schema":{"$ref":"#/components/schemas/BotsShowLimitType"}},"activationParam":{"name":"scope","in":"query","schema":{"$ref":"#/components/schemas/ActivationEnum"}},"botFormTypeParam":{"name":"form_type","in":"query","description":"Param for a filter by bot form type (gordon/advanced)","schema":{"$ref":"#/components/schemas/BotFormEnum"}}},"requestBodies":{"StorageRequest":{"description":"Storage data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MiniAppsStorageEntity"}}},"required":true},"LocaleRequest":{"description":"Current locale","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocaleType"}}},"required":true},"UserChangeModeRequest":{"description":"Current User Mode (Paper or Real)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserModeEntity"}}},"required":true},"LooseAccountsCreateRequest":{"description":"Create Loose Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LooseAccountsCreateEntity"}}},"required":true},"LooseAccountsUpdateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LooseAccountsUpdateEntity"}}},"required":true},"AccountsCreateRequest":{"description":"Uses as types those of /types_to_connect","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountNew_ApiKeyEntity"},{"$ref":"#/components/schemas/AccountNew_WalletEntity"},{"$ref":"#/components/schemas/AccountNew_PassphraseEntity"},{"$ref":"#/components/schemas/AccountNew_CustomerIdEntity"},{"$ref":"#/components/schemas/AccountNew_BinanceDexKeystoreEntity"},{"$ref":"#/components/schemas/AccountNew_BinanceDexMnenomicEntity"}]}}},"required":true},"AccountsUpdateRequest":{"description":"Edit exchange account","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountUpdate_ApiKeyEntity"},{"$ref":"#/components/schemas/AccountUpdate_WalletEntity"},{"$ref":"#/components/schemas/AccountUpdate_PassphraseEntity"},{"$ref":"#/components/schemas/AccountUpdate_CustomerIdEntity"},{"$ref":"#/components/schemas/AccountUpdate_BinanceDexKeystoreEntity"},{"$ref":"#/components/schemas/AccountUpdate_BinanceDexMnenomicEntity"}]}}},"required":true},"AccountRenameRequest":{"content":{"application/json":{"schema":{"required":["name"],"properties":{"name":{"$ref":"#/components/schemas/NameType"}}}}},"required":true},"AccountsTransferRequest":{"content":{"application/json":{"schema":{"required":["amount","currency","from_account_id","to_account_id"],"properties":{"currency":{"$ref":"#/components/schemas/SymbolStringType"},"amount":{"$ref":"#/components/schemas/OrderVolumeType"},"to_account_id":{"$ref":"#/components/schemas/AccountIdType"},"from_account_id":{"$ref":"#/components/schemas/AccountIdType"}}}}},"required":true},"AccountsConvertDustToBnbRequest":{"content":{"application/json":{"schema":{"properties":{"codes":{"$ref":"#/components/schemas/SymbolStringTypes"}}}}}},"BotsUpdatePairsBlackListRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlackListType"}}},"required":true},"BotCreateRequest":{"content":{"application/json":{"schema":{"required":["account_id","active_safety_orders_count","base_order_volume","martingale_step_coefficient","martingale_volume_coefficient","max_safety_orders","name","pairs","safety_order_step_percentage","safety_order_volume","strategy_list","take_profit","take_profit_type"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"account_id":{"$ref":"#/components/schemas/AccountIdType"},"pairs":{"$ref":"#/components/schemas/PairTypes"},"max_active_deals":{"$ref":"#/components/schemas/MaxActiveDealsType"},"base_order_volume":{"$ref":"#/components/schemas/OrderVolumeType"},"base_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"take_profit":{"$ref":"#/components/schemas/TakeProfitType"},"safety_order_volume":{"$ref":"#/components/schemas/OrderVolumeType"},"safety_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"martingale_volume_coefficient":{"$ref":"#/components/schemas/MartingaleVolumeCoefficientType"},"martingale_step_coefficient":{"$ref":"#/components/schemas/MartingaleStepCoefficientType"},"max_safety_orders":{"$ref":"#/components/schemas/MaxSafetyOrdersType"},"active_safety_orders_count":{"$ref":"#/components/schemas/ActiveSafetyOrdersCountType"},"stop_loss_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"cooldown":{"$ref":"#/components/schemas/IntegerPositiveType"},"trailing_enabled":{"description":"Enable trailing take profit. Binance only.","type":"boolean"},"trailing_deviation":{"$ref":"#/components/schemas/DoubleNegativeZeroType"},"btc_price_limit":{"$ref":"#/components/schemas/StringFloatPositiveType"},"strategy":{"$ref":"#/components/schemas/StrategyEnum"},"safety_order_step_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"take_profit_type":{"$ref":"#/components/schemas/TakeProfitEnum"},"strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"min_price":{"$ref":"#/components/schemas/PriceType"},"max_price":{"$ref":"#/components/schemas/PriceType"},"min_profit_percentage":{"$ref":"#/components/schemas/PercentageType"},"min_profit_type":{"type":"string","enum":["total_bought_volume"]},"close_strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"stop_loss_timeout_enabled":{"type":"boolean"},"stop_loss_timeout_in_seconds":{"$ref":"#/components/schemas/IntegerPositiveType"},"min_volume_btc_24h":{"$ref":"#/components/schemas/OrderVolumeType"},"tsl_enabled":{"description":"Enable trailing stop loss. Bitmex only.","type":"boolean"},"deal_start_delay_seconds":{"$ref":"#/components/schemas/IntegerPositiveType"},"profit_currency":{"$ref":"#/components/schemas/ProfitCurrencyEnum"},"start_order_type":{"$ref":"#/components/schemas/OrderEnum"},"stop_loss_type":{"$ref":"#/components/schemas/StopLossEnum"},"disable_after_deals_count":{"$ref":"#/components/schemas/DisableAfterDealsCountType"},"allowed_deals_on_same_pair":{"$ref":"#/components/schemas/AllowedDealsOnSamePair"},"close_deals_timeout":{"$ref":"#/components/schemas/CloseDealsTimeoutType"}}}}},"required":true},"BotCopyAndCreateRequest":{"content":{"application/json":{"schema":{"required":["name","secret"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"secret":{"type":"string"},"amount":{"type":"number","description":"Max amount for bot usage (Based on current rate)","format":"double"}}}}},"required":true},"BotUpdateRequest":{"content":{"application/json":{"schema":{"required":["name","pairs","base_order_volume","active_safety_orders_count","martingale_step_coefficient","martingale_volume_coefficient","max_safety_orders","safety_order_step_percentage","safety_order_volume","strategy_list","take_profit","take_profit_type"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"pairs":{"$ref":"#/components/schemas/PairTypes"},"max_active_deals":{"$ref":"#/components/schemas/MaxActiveDealsType"},"base_order_volume":{"$ref":"#/components/schemas/OrderVolumeType"},"base_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"take_profit":{"$ref":"#/components/schemas/TakeProfitType"},"safety_order_volume":{"$ref":"#/components/schemas/OrderVolumeType"},"safety_order_volume_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"martingale_volume_coefficient":{"$ref":"#/components/schemas/MartingaleVolumeCoefficientType"},"martingale_step_coefficient":{"$ref":"#/components/schemas/MartingaleStepCoefficientType"},"max_safety_orders":{"$ref":"#/components/schemas/MaxSafetyOrdersType"},"active_safety_orders_count":{"$ref":"#/components/schemas/CountType"},"stop_loss_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"cooldown":{"$ref":"#/components/schemas/IntegerPositiveType"},"trailing_enabled":{"description":"Enable trailing take profit. Binance only.","type":"boolean"},"trailing_deviation":{"$ref":"#/components/schemas/DoublePositiveZeroType"},"btc_price_limit":{"$ref":"#/components/schemas/PriceType"},"safety_order_step_percentage":{"$ref":"#/components/schemas/DoublePositiveZeroType"},"take_profit_type":{"$ref":"#/components/schemas/TakeProfitEnum"},"strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"min_price":{"$ref":"#/components/schemas/PriceType"},"max_price":{"$ref":"#/components/schemas/PriceType"},"stop_loss_timeout_enabled":{"type":"boolean"},"stop_loss_timeout_in_seconds":{"$ref":"#/components/schemas/TimeUnitType"},"min_volume_btc_24h":{"$ref":"#/components/schemas/OrderVolumeType"},"tsl_enabled":{"description":"Enable trailing stop loss. Bitmex only.","type":"boolean"},"deal_start_delay_seconds":{"$ref":"#/components/schemas/TimeUnitType"},"profit_currency":{"$ref":"#/components/schemas/ProfitCurrencyEnum"},"start_order_type":{"$ref":"#/components/schemas/OrderEnum"},"stop_loss_type":{"$ref":"#/components/schemas/StopLossEnum"},"disable_after_deals_count":{"$ref":"#/components/schemas/CountType"},"allowed_deals_on_same_pair":{"type":"integer","description":"Allow specific number of deals on the same pair. Multibot only.\n","format":"int32"},"close_deals_timeout":{"$ref":"#/components/schemas/CloseDealsTimeoutType"}}}}},"required":true},"BotStartNewDealRequest":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/DealStartSingleEntity"},{"$ref":"#/components/schemas/DealStartMultiEntity"}]}}}},"DealConvertToSmartTradeRequest":{"content":{"application/json":{"schema":{"properties":{"stop_bot":{"type":"boolean","default":false}}}}}},"DealUpdateMaxSafetyOrdersRequest":{"content":{"application/json":{"schema":{"required":["max_safety_orders"],"properties":{"max_safety_orders":{"$ref":"#/components/schemas/MaxSafetyOrdersType"}}}}},"required":true},"DealUpdateRequest":{"content":{"application/json":{"schema":{"properties":{"take_profit":{"type":"number","format":"double"},"profit_currency":{"$ref":"#/components/schemas/ProfitCurrencyEnum"},"take_profit_type":{"$ref":"#/components/schemas/TakeProfitEnum"},"trailing_enabled":{"type":"boolean"},"trailing_deviation":{"type":"number","format":"double"},"stop_loss_percentage":{"$ref":"#/components/schemas/PercentageNegativeType"},"max_safety_orders":{"$ref":"#/components/schemas/MaxSafetyOrdersType"},"active_safety_orders_count":{"$ref":"#/components/schemas/CountType"},"stop_loss_timeout_enabled":{"type":"boolean"},"stop_loss_timeout_in_seconds":{"$ref":"#/components/schemas/TimeUnitType"},"tsl_enabled":{"description":"Trailing stop loss enabled","type":"boolean"},"stop_loss_type":{"$ref":"#/components/schemas/StopLossEnum"},"close_timeout":{"$ref":"#/components/schemas/TimeUnitType"},"min_profit_percentage":{"$ref":"#/components/schemas/PercentageType"},"min_profit_type":{"description":"Minimum profit percentage","type":"string","enum":["total_bought_volume"]},"close_strategy_list":{"$ref":"#/components/schemas/StrategyListTypes"},"note":{"description":"Note","type":"string"}}}}}},"DealCancelOrderRequest":{"content":{"application/json":{"schema":{"required":["order_id"],"properties":{"order_id":{"type":"string","description":"manual safety order id"}}}}},"required":true},"DealAddFundsRequest":{"content":{"application/json":{"schema":{"required":["is_market","quantity","rate"],"properties":{"quantity":{"type":"number","description":"safety order quantity","format":"double"},"is_market":{"type":"boolean","description":"true - use MARKET order, false - use LIMIT order"},"response_type":{"$ref":"#/components/schemas/DealsResponseEnum"},"rate":{"type":"number","description":"safety order rate. Required if LIMIT order used","format":"double"}}}}},"required":true},"SmartTradeCreateRequest":{"content":{"application/json":{"schema":{"required":["account_id","pair"],"properties":{"account_id":{"$ref":"#/components/schemas/AccountIdType"},"pair":{"$ref":"#/components/schemas/PairType"},"instant":{"type":"boolean","description":"true for Simple Buy and Simple Sell","default":false},"skip_enter_step":{"type":"boolean","description":"true only for Smart Sell","default":false},"note":{"type":"string"},"leverage":{"required":["enabled"],"properties":{"enabled":{"type":"boolean","default":false},"type":{"$ref":"#/components/schemas/LeverageEnum"},"value":{"$ref":"#/components/schemas/LeverageValueType"}}},"position":{"required":["type","order_type"],"properties":{"type":{"$ref":"#/components/schemas/PositionEnum"},"order_type":{"$ref":"#/components/schemas/PositionOrderEnum"},"units":{"required":["value"],"properties":{"value":{"type":"number","description":"Amount of units to buy","format":"double"}}},"price":{"description":"Price for limit order","required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PriceType"}}},"conditional":{"required":["order_type"],"properties":{"price":{"required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PriceType"},"type":{"$ref":"#/components/schemas/PriceEnum"}}},"order_type":{"$ref":"#/components/schemas/OrderEnum"},"trailing":{"required":["enabled","percent"],"properties":{"enabled":{"type":"boolean","default":false},"percent":{"type":"number","description":"Should be 100% in the sum of all steps","format":"float"}}}}}}},"take_profit":{"required":["enabled"],"properties":{"enabled":{"type":"boolean","default":false},"steps":{"type":"array","items":{"required":["order_type","volume"],"properties":{"order_type":{"$ref":"#/components/schemas/OrderEnum"},"volume":{"type":"number","format":"float"},"price":{"required":["type"],"properties":{"type":{"$ref":"#/components/schemas/PriceEnum"},"value":{"$ref":"#/components/schemas/PriceType"},"percent":{"$ref":"#/components/schemas/PercentageNegativeType"}}},"trailing":{"required":["enabled","percent"],"properties":{"enabled":{"type":"boolean"},"percent":{"type":"number","format":"float"}}}}}}}},"stop_loss":{"required":["enabled","order_type"],"properties":{"enabled":{"type":"boolean","default":false},"breakeven":{"type":"boolean","default":false},"order_type":{"$ref":"#/components/schemas/OrderEnum"},"price":{"description":"Price for limit order","required":["value"],"properties":{"value":{"type":"number","format":"double"}}},"conditional":{"properties":{"price":{"properties":{"type":{"$ref":"#/components/schemas/PriceEnum"},"value":{"$ref":"#/components/schemas/PriceType"},"percent":{"$ref":"#/components/schemas/PercentageNegativeType"}}},"trailing":{"required":["enabled"],"properties":{"enabled":{"type":"boolean","default":false}}}}},"timeout":{"required":["enabled","value"],"properties":{"enabled":{"type":"boolean","default":false},"value":{"$ref":"#/components/schemas/TimeUnitType"}}}}}}}}},"required":true},"SmartTradeUpdateRequest":{"content":{"application/json":{"schema":{"properties":{"leverage":{"required":["enabled"],"properties":{"enabled":{"type":"boolean","default":false},"type":{"$ref":"#/components/schemas/LeverageEnum"},"value":{"$ref":"#/components/schemas/LeverageValueType"}}},"position":{"properties":{"units":{"required":["value"],"properties":{"value":{"type":"number","description":"Amount of units to buy","format":"double"}}},"price":{"description":"Price for limit order","required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PriceType"}}},"conditional":{"required":["order_type"],"properties":{"price":{"required":["value"],"properties":{"type":{"$ref":"#/components/schemas/PriceEnum"},"value":{"$ref":"#/components/schemas/PriceType"}}},"trailing":{"required":["enabled","percent"],"properties":{"enabled":{"type":"boolean","default":false},"percent":{"$ref":"#/components/schemas/PercentageNegativeType"}}},"order_type":{"$ref":"#/components/schemas/OrderEnum"}}}}},"take_profit":{"required":["enabled"],"properties":{"enabled":{"type":"boolean","default":false},"steps":{"$ref":"#/components/schemas/TakeProfitStepEntities"}}},"stop_loss":{"required":["enabled","order_type"],"properties":{"enabled":{"type":"boolean","default":false},"breakeven":{"type":"boolean","default":false},"order_type":{"$ref":"#/components/schemas/OrderEnum"},"price":{"required":["value"],"properties":{"value":{"description":"Price for limit order","type":"number","format":"double"}}},"conditional":{"properties":{"price":{"required":["type"],"properties":{"type":{"$ref":"#/components/schemas/PriceEnum"},"value":{"$ref":"#/components/schemas/PriceType"},"percent":{"$ref":"#/components/schemas/PercentageNegativeType"}}},"trailing":{"required":["enabled"],"properties":{"enabled":{"type":"boolean","default":false}}}}},"timeout":{"required":["enabled","value"],"properties":{"enabled":{"type":"boolean","default":false},"value":{"$ref":"#/components/schemas/TimeUnitType"}}}}}}}}},"required":true},"SmartTradeReduceFundsRequest":{"content":{"application/json":{"schema":{"required":["order_type"],"properties":{"order_type":{"$ref":"#/components/schemas/OrderEnum"},"units":{"required":["value"],"properties":{"value":{"type":"number","description":"Amount of units to buy","format":"double"}}},"price":{"description":"Price for limit order","required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PriceType"}}}}}}},"required":true},"SmartTradeAddFundsRequest":{"content":{"application/json":{"schema":{"required":["order_type"],"properties":{"order_type":{"$ref":"#/components/schemas/OrderEnum"},"units":{"required":["value"],"properties":{"value":{"type":"number","description":"Amount of units to buy","format":"double"}}},"price":{"description":"Price for limit order","required":["value"],"properties":{"value":{"$ref":"#/components/schemas/PriceType"}}}}}}},"required":true},"SmartTradeSetNoteRequest":{"content":{"application/json":{"schema":{"required":["note"],"properties":{"note":{"type":"string"}}}}}},"GridBotCreateAiRequest":{"required":true,"content":{"application/json":{"schema":{"required":["account_id","pair","total_quantity"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"account_id":{"$ref":"#/components/schemas/AccountIdType"},"pair":{"$ref":"#/components/schemas/PairType"},"total_quantity":{"type":"number","format":"double"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"note":{"type":"string"}}}}}},"GridBotCreateManualRequest":{"content":{"application/json":{"required":["account_id","grids_quantity","lower_price","pair","quantity_per_grid","upper_price"],"schema":{"properties":{"name":{"$ref":"#/components/schemas/NameType"},"account_id":{"$ref":"#/components/schemas/AccountIdType"},"pair":{"$ref":"#/components/schemas/PairType"},"upper_price":{"$ref":"#/components/schemas/PriceType"},"lower_price":{"$ref":"#/components/schemas/PriceType"},"quantity_per_grid":{"type":"number","format":"double"},"grids_quantity":{"type":"number","format":"double"},"upper_stop_loss_price":{"$ref":"#/components/schemas/PriceType"},"upper_stop_loss_enabled":{"type":"boolean","default":false},"upper_stop_loss_action":{"$ref":"#/components/schemas/StopLossActionEnum"},"lower_stop_loss_price":{"$ref":"#/components/schemas/PriceType"},"lower_stop_loss_enabled":{"type":"boolean","default":false},"lower_stop_loss_action":{"$ref":"#/components/schemas/StopLossActionEnum"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"is_enabled":{"description":"Turn on or off grid_bot after creation","type":"boolean","default":true},"note":{"type":"string"},"max_active_buy_lines":{"type":"integer","format":"int32"},"max_active_sell_lines":{"type":"integer","format":"int32"},"order_currency_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"profit_currency_type":{"$ref":"#/components/schemas/OrderVolumeEnum"},"ignore_warnings":{"description":"Ignore any warnings and create grid bot","type":"boolean","default":false},"trailing_up_enabled":{"description":"Trailing up enabled. Works only with order currency type = quote\n","type":"boolean","default":false},"grid_type":{"$ref":"#/components/schemas/GridEnum"},"expansion_down_enabled":{"type":"boolean","description":"Trailing down enabled"},"expansion_down_stop_price":{"type":"number","description":"Trailing down stop price (mandatory if trailing down enabled)","format":"double"}}}}},"required":true},"GridBotNoteRequest":{"content":{"application/json":{"schema":{"properties":{"note":{"type":"string"}}}}}},"GridBotEditAiRequest":{"content":{"application/json":{"schema":{"type":"object","required":["pair","total_quantity"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"pair":{"$ref":"#/components/schemas/PairType"},"total_quantity":{"type":"number","format":"double"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"note":{"type":"string"}}}}},"required":true},"GridBotEditManualRequest":{"content":{"application/json":{"schema":{"required":["grids_quantity","lower_price","pair","quantity_per_grid","upper_price"],"properties":{"name":{"$ref":"#/components/schemas/NameType"},"pair":{"$ref":"#/components/schemas/PairType"},"upper_price":{"$ref":"#/components/schemas/PriceType"},"lower_price":{"$ref":"#/components/schemas/PriceType"},"quantity_per_grid":{"type":"number","format":"double"},"grids_quantity":{"type":"number","format":"double"},"upper_stop_loss_price":{"$ref":"#/components/schemas/PriceType"},"upper_stop_loss_enabled":{"type":"boolean"},"upper_stop_loss_action":{"$ref":"#/components/schemas/StopLossActionEnum"},"lower_stop_loss_price":{"$ref":"#/components/schemas/PriceType"},"lower_stop_loss_enabled":{"type":"boolean"},"lower_stop_loss_action":{"$ref":"#/components/schemas/StopLossActionEnum"},"leverage_type":{"$ref":"#/components/schemas/LeverageEnum"},"leverage_custom_value":{"$ref":"#/components/schemas/LeverageValueType"},"note":{"type":"string"},"max_active_buy_lines":{"type":"integer","format":"int32"},"max_active_sell_lines":{"type":"integer","format":"int32"},"ignore_warnings":{"type":"boolean","description":"Ignore any warnings and edit grid bot"},"trailing_up_enabled":{"type":"boolean","description":"Trailing up enabled"},"grid_type":{"$ref":"#/components/schemas/GridEnum"},"expansion_down_enabled":{"type":"boolean","description":"Trailing down enabled"},"expansion_down_stop_price":{"type":"number","description":"Trailing down stop price (mandatory if trailing down enabled)","format":"double"}}}}},"required":true}},"headers":{"access-control-allow-credentials":{"schema":{"type":"boolean"}},"access-control-allow-headers":{"schema":{"type":"array","items":{"type":"string"},"examples":["DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,apikey,signature"]}},"access-control-allow-methods":{"schema":{"type":"array","items":{"type":"string","format":"enum - PUT - GET - HEAD - POST - DELETE - OPTIONS"}}},"access-control-allow-origin":{"schema":{"type":"string","examples":["*"]}},"access-control-expose-headers":{"schema":{"type":"string","examples":["Content-Length,Content-Range"]}},"cache-control":{"schema":{"type":"string","format":"enum - no-cache"}},"cf-cache-status":{"schema":{"type":"string","format":"enum - DYNAMIC"}},"cf-ray":{"schema":{"type":"string","examples":["0123456789abcdef-IAD"]}},"content-encoding":{"schema":{"type":"string","examples":["gzip"]}},"content-length":{"schema":{"type":"integer","examples":[150]}},"content-type":{"schema":{"type":"string","examples":["application/json; charset=utf-8"]}},"date":{"schema":{"type":"string","examples":["Wed,03 May 2023 10:09:10 GMT"]}},"etag":{"schema":{"type":"string","examples":["W/\"0123456789abcdef0123456789abcdef\""]}},"expires":{"schema":{"type":"integer","examples":[-1]}},"status":{"schema":{"type":"string","examples":["200 OK, 201 Created, ..."]}},"strict-transport-security":{"schema":{"type":"string","examples":["max-age=31536000; includeSubDomains; preload"]}},"x-request-id":{"schema":{"type":"string","examples":["0123456789abcdef0123456789abcdef"]}},"x-runtime":{"schema":{"type":"number","format":"double","examples":[0.307052]}}},"securitySchemes":{"Apikey":{"description":"Developer API key\n","type":"apiKey","in":"header","name":"Apikey"},"Signature":{"description":"HMAC SHA-256 of current <i>'/api/...?query parameters concatenated<br/> with the request body'</i> using developer API key's secret\n","type":"apiKey","in":"header","name":"Signature"}},"links":{"getVer1AccountsAccountIdDepositData":{"operationId":"getVer1AccountsAccountIdDepositData","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsAccountIdNetworksInfo":{"operationId":"getVer1AccountsAccountIdNetworksInfo","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdConvertDustToBnb":{"operationId":"postVer1AccountsAccountIdConvertDustToBnb","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsAccountIdActiveTradingEntities":{"operationId":"getVer1AccountsAccountIdActiveTradingEntities","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdSellAllToUsd":{"operationId":"postVer1AccountsAccountIdSellAllToUsd","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdSellAllToBtc":{"operationId":"postVer1AccountsAccountIdSellAllToBtc","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsAccountIdBalanceChartData":{"operationId":"getVer1AccountsAccountIdBalanceChartData","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdLoadBalances":{"operationId":"postVer1AccountsAccountIdLoadBalances","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdRename":{"operationId":"postVer1AccountsAccountIdRename","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdPieChartData":{"operationId":"postVer1AccountsAccountIdPieChartData","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdAccountTableData":{"operationId":"postVer1AccountsAccountIdAccountTableData","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsAccountIdRemove":{"operationId":"postVer1AccountsAccountIdRemove","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsAccountIdLeverageData":{"operationId":"getVer1AccountsAccountIdLeverageData","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsAccountId":{"operationId":"getVer1AccountsAccountId","parameters":{"account_id":"$response.body#/id"}},"putVer1LooseAccountsAccountId":{"operationId":"putVer1LooseAccountsAccountId","parameters":{"account_id":"$response.body#/id"}},"getVer1BotsAccountTradeInfoSmartSell":{"operationId":"getVer1BotsAccountTradeInfoSmartSell","parameters":{"account_id":"$response.body#/id"}},"getVer1BotsAccountTradeInfo":{"operationId":"getVer1BotsAccountTradeInfo","parameters":{"account_id":"$response.body#/id"}},"getVer1BotsStrategyList":{"operationId":"getVer1BotsStrategyList","parameters":{"account_id":"$response.body#/id"}},"postVer1BotsCreateBot":{"operationId":"postVer1BotsCreateBot","parameters":{"account_id":"$response.body#/id"}},"postVer1AccountsTransferFrom":{"operationId":"postVer1AccountsTransfer","parameters":{"from_account_id":"$response.body#/id"}},"postVer1AccountsTransferTo":{"operationId":"postVer1AccountsTransfer","parameters":{"to_account_id":"$response.body#/id"}},"getVer1Bots":{"operationId":"getVer1Bots","parameters":{"account_id":"$response.body#/id"}},"getVer1BotsStats":{"operationId":"getVer1BotsStats","parameters":{"account_id":"$response.body#/id"}},"getVer1BotsStatsByDate":{"operationId":"getVer1BotsStatsByDate","parameters":{"account_id":"$response.body#/id"}},"getVer1Deals":{"operationId":"getVer1Deals","parameters":{"account_id":"$response.body#/id"}},"postVer1GridBotsAiAccountId":{"operationId":"postVer1GridBotsAi","parameters":{"account_id":"$response.body#/id"}},"postVer1GridBotsManualAccountId":{"operationId":"postVer1GridBotsManual","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsTransferHistory":{"operationId":"getVer1AccountsTransferHistory","parameters":{"account_id":"$response.body#/id"}},"getVer1GridBots":{"operationId":"getVer1GridBots","parameters":{"account_ids":"$response.body#/id"}},"getV2SmartTradesIdReduceFundsInfo":{"operationId":"getV2SmartTradesIdReduceFundsInfo","parameters":{"smart_trade_id":"$response.body#/id"}},"getV2SmartTradesId":{"operationId":"getV2SmartTradesId","parameters":{"smart_trade_id":"$response.body#/id"}},"postV2SmartTrades":{"operationId":"postV2SmartTrades","parameters":{"account_id":"$response.body#/id"}},"getVer1AccountsMarketPairs":{"operationId":"getVer1AccountsMarketPairs","parameters":{"market_code":"$response.body#/market_code"}},"getVer1AccountsTypesToConnect":{"operationId":"getVer1AccountsTypesToConnect","parameters":{"type":"$response.body#/market_code"}},"postVer1AccountsNewType":{"operationId":"postVer1AccountsNew","parameters":{"type":"$response.body#/[type]"}},"getVer1AccountsCurrencyRatesWithLeverageDataMarketCode":{"operationId":"getVer1AccountsCurrencyRatesWithLeverageData","parameters":{"market_code":"$response.body#/market_code"}},"getVer1AccountsCurrencyRatesMarketCode":{"operationId":"getVer1AccountsCurrencyRates","parameters":{"market_code":"$response.body#/market_code"}},"getVer1GridBotsAiSettings":{"operationId":"getVer1GridBotsAiSettings","parameters":{"market_code":"$response.body#/market_code"}},"getV2AccountsMarketPairs":{"operationId":"getV2AccountsMarketPairs","parameters":{"market_code":"$response.body#/market_code"}},"getVer1MarketplacePresets":{"description":"Set account_types from market_code","operationId":"getVer1MarketplacePresets","parameters":{"account_types":"$response.body#/market_code"}},"getVer1AccountsCurrencyRatesPair":{"operationId":"getVer1AccountsCurrencyRates","description":"Set 'pair' from any response body entry","parameters":{"pair":"response.body#/[]"}},"getVer1AccountsCurrencyRatesWithLeverageDataPair":{"operationId":"getVer1AccountsCurrencyRatesWithLeverageData","description":"Set 'pair' from any response body entry","parameters":{"pair":"response.body#/[]"}},"postVer1BotsUpdatePairsBlackList":{"operationId":"postVer1BotsUpdatePairsBlackList","description":"Set 'black_list' from any response body entries","parameters":{"pairs":"response.body#[]"}},"postV2SmartTradesPair":{"operationId":"postV2SmartTrades","description":"Set 'pair' from any response body entry","parameters":{"pair":"response.body#/[]"}},"postVer1GridBotsAiPair":{"operationId":"postVer1GridBotsAi","description":"Set 'pair' from any response body entry","parameters":{"pair":"response.body#/[]"}},"postVer1GridBotsManualPair":{"operationId":"postVer1GridBotsManual","description":"Set 'pair' from any response body entry","parameters":{"pair":"response.body#/[]"}},"patchVer1GridBotsIdAiPair":{"operationId":"patchVer1GridBotsIdAi","description":"Set 'pair' from any response body entry","parameters":{"pair":"response.body#/[]"}},"getVer1MarketplacePresetsPairs":{"operationId":"getVer1MarketplacePresets","description":"Set 'pairs' from any response body entries","parameters":{"pairs":"response.body#/[]"}},"postVer1BotsCreateBotPairs":{"operationId":"postVer1BotsCreateBot","description":"Set 'pairs' from any response body entries","parameters":{"pairs":"response.body#/[]"}},"patchVer1BotsBotIdUpdatePairs":{"operationId":"patchVer1BotsBotIdUpdate","description":"Set 'pairs' from any response body entries","parameters":{"pairs":"response.body#/[]"}},"getVer1AccountsAccountIdDepositDataCurrency":{"operationId":"getVer1AccountsAccountIdDepositData","parameters":{"currency":"$response.body#/currency"}},"getVer1AccountsAccountIdDepositDataNetwork":{"operationId":"getVer1AccountsAccountIdDepositData","parameters":{"network":"$response.body#/network_list/network"}},"postVer1BotsCreateBotStrategy":{"operationId":"postVer1BotsCreateBot","parameters":{"strategy_list":"response.body#/strategy_list"}},"postVer1BotsCreateBotStrategyClose":{"operationId":"postVer1BotsCreateBot","parameters":{"close_strategy_list":"response.body#/strategy_list"}},"patchVer1BotsBotIdUpdate":{"operationId":"patchVer1BotsBotIdUpdate","parameters":{"strategy_list":"response.body#/strategy_list"}},"patchVer1DealsDealIdUpdateDeal":{"operationId":"patchVer1DealsDealIdUpdateDeal","parameters":{"close_strategy_list":"response.body#/strategy_list"}}}},"security":[{"Apikey":[],"Signature":[]}]}