((.venv) ) segeba@mbpbsg dzentra_bot % grep -RIn \
  --exclude-dir="__pycache__" \
  --exclude="*.pyc" \
  -E "pricePrecision|quantityPrecision|baseAssetPrecision|quoteAssetPrecision|maxQty|maxNotional|maxPrice|minPrice|contractSize|lotSize|tradingMode|tradeMode|availableForTrading|isTradingAllowed|tradingAllowed|isTradable|tradable|marketOpen|isOpen|enabled" \
  app/src app/tests tests docs 2>/dev/null
app/src/core/config.py:34:    exchange_enabled: bool
app/src/core/config.py:52:    debug_enabled: bool
app/src/core/config.py:53:    journal_debug_enabled: bool
app/src/core/config.py:94:        debug_enabled=_parse_bool(os.getenv("DEBUG_ENABLED", "false")),
app/src/core/config.py:95:        journal_debug_enabled=_parse_bool(
app/src/core/config.py:100:        exchange_enabled=_parse_bool(os.getenv("EXCHANGE_ENABLED", "false")),
app/src/integrations/exchange/service.py:79:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:145:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:473:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:651:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:687:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:788:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:820:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:879:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:954:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:1017:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:1061:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/service.py:1185:            "isTradingAllowed",
app/src/integrations/exchange/service.py:1186:            "tradingAllowed",
app/src/integrations/exchange/service.py:1187:            "availableForTrading",
app/src/integrations/exchange/service.py:1188:            "isTradable",
app/src/integrations/exchange/service.py:1189:            "tradable",
app/src/integrations/exchange/service.py:1191:            "marketOpen",
app/src/integrations/exchange/service.py:1192:            "isOpen",
app/src/integrations/exchange/service.py:1193:            "enabled",
app/src/integrations/exchange/service.py:1208:        for key in ("tradingMode", "tradeMode", "mode", "state"):
app/src/integrations/exchange/service.py:1279:        if not self.settings.exchange_enabled:
app/src/integrations/exchange/market_stream.py:134:    if not settings.exchange_enabled:
app/src/integrations/exchange/status.py:170:            reason="market_not_tradable",
app/src/telegram/handlers/system.py:758:def _journal_debug_enabled() -> bool:
app/src/telegram/handlers/system.py:759:    return bool(load_settings().journal_debug_enabled)
app/src/telegram/handlers/system.py:786:    if _journal_debug_enabled():
app/src/telegram/handlers/system.py:818:        if _journal_debug_enabled()
app/src/telegram/handlers/system.py:839:    enabled = _journal_debug_enabled()
app/src/telegram/handlers/system.py:840:    new_value = "false" if enabled else "true"
app/src/telegram/handlers/system.py:849:                if enabled
app/src/telegram/handlers/system.py:855:                "journal_debug_enabled": not enabled,
app/src/telegram/handlers/system.py:864:        "Debug логирование выключено" if enabled else "Debug логирование включено"
app/src/telegram/handlers/auto/ui.py:1104:    enabled: list[tuple[str, float]] = []
app/src/telegram/handlers/auto/ui.py:1107:        enabled.append(("SL", sl_value))
app/src/telegram/handlers/auto/ui.py:1110:        enabled.append(("TP", tp_value))
app/src/telegram/handlers/auto/ui.py:1113:        enabled.append(("ML", ml_value))
app/src/telegram/handlers/auto/ui.py:1115:    if len(enabled) == 1:
app/src/telegram/handlers/auto/ui.py:1116:        key, value = enabled[0]
app/src/telegram/handlers/debug.py:23:def _debug_enabled() -> bool:
app/src/telegram/handlers/debug.py:24:    return bool(load_settings().debug_enabled)
app/src/telegram/handlers/debug.py:62:    if not _debug_enabled():
app/src/telegram/handlers/debug.py:71:    if not _debug_enabled():
app/src/telegram/handlers/debug.py:222:    if not _debug_enabled():
app/src/telegram/handlers/debug.py:318:    if not _debug_enabled():
app/src/telegram/handlers/debug.py:338:    if not _debug_enabled():
app/src/telegram/handlers/debug.py:376:    if not _debug_enabled():
app/src/telegram/handlers/debug.py:397:    if not _debug_enabled():
app/src/trading/journal/service.py:128:        if not load_settings().journal_debug_enabled:
app/src/trading/journal/service.py:148:        if not load_settings().journal_debug_enabled:
app/src/trading/market_intelligence/common/models.py:47:    enabled_by_default: bool = True
docs/stages/stage-03_1-integration_mock.md:25:- exchange_enabled
docs/stages/stage-04_1-storage.md:78:- exchange_enabled
docs/market_intelligence/information/dzengi_market_data_inventory.md:731:| `baseAssetPrecision` | integer | Точность базового актива. |
docs/market_intelligence/information/dzengi_market_data_inventory.md:753:| `maxQty` | string | Максимальное количество. |
docs/market_intelligence/information/dzengi_openapi.json:1:{"swagger":"2.0","info":{"title":"Api Documentation","termsOfService":"https://dzengi.com/agreement"},"host":"https://api-adapter.dzengi.com/ ]\n[ Base demo URL: https://demo-api-adapter.dzengi.com","basePath":"/","tags":[{"name":"rest-api","description":"Rest API"},{"name":"websocket-api","description":"WebSocket API"}],"paths":{"/api/v1/account":{"get":{"tags":["rest-api"],"summary":"accountInfo","description":"Get current account information","operationId":"accountUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"showZeroBalance","in":"query","description":"showZeroBalance","required":false,"type":"boolean"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"makerCommission\":0.20,\n        \"takerCommission\":0.20,\n        \"buyerCommission\":0.20,\n        \"sellerCommission\":0.20,\n        \"canTrade\":true,\n        \"canWithdraw\":true,\n        \"canDeposit\":true,\n        \"updateTime\":1586935521,\n        \"balances\":[\n            {\n                \"accountId\":\"2376104765040206\",\n                \"collateralCurrency\":true,\n                \"asset\":\"BYN\",\n                \"free\":0.0,\n                \"locked\":0.0,\n                \"default\":false\n            },\n            {\n                \"accountId\":\"2376109060084932\",\n                \"collateralCurrency\":true,\n                \"asset\":\"USD\",\n                \"free\":515.59092523,\n                \"locked\":0.0,\n                \"default\":true\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/AccountResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/aggTrades":{"get":{"tags":["rest-api"],"summary":"tradesAggregated","description":"Get compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated.","operationId":"aggTradesUsingGET_1","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"//a\":\"Aggregate tradeId\",\n            \"a\":1582595833,\n            \"//p\":\"Price\",\n            \"p\":\"8980.4\",\n            \"//q\":\"Quantity (should be ignored)\",\n            \"q\":\"0.0\",\n            \"//T\":\"Timestamp\",\n            \"T\":1580204505793,\n            \"//m\":\"Was the buyer the maker\",\n            \"m\":false\n        }\n    ]\n\n}","schema":{"type":"array","items":{"$ref":"#/definitions/AggTrades"}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/closeTradingPosition":{"post":{"tags":["rest-api"],"summary":"tradingPositionClose","description":"Close an active leverage trade.","operationId":"closeTradingPositionUsingPOST_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"positionId","in":"query","description":"positionId","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"request\":[\n            {\n                \"id\":242057,\n                \"accountId\":2376109060084932,\n                \"instrumentId\":\"45076691096786116\",\n                \"rqType\":\"ORDER_NEW\",\n                \"state\":\"PROCESSED\",\n                \"createdTimestamp\":1587031306969\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionCloseAllResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/currencies":{"get":{"tags":["rest-api"],"summary":"ListOfCurrencies","description":"Get all system currencies","operationId":"getCurrenciesUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"name\": \"US Dollar\",\n            \"displaySymbol\": \"USD.cx\",\n            \"precision\": 2,\n            \"type\": \"FIAT\",\n            \"minWithdrawal\": 100,\n            \"maxWithdrawal\": 100000000,\n            \"commissionMin\": 0.02,\n            \"commissionPercent\": 1.5,\n            \"minDeposit\": 100\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/CurrencyResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/depositAddress":{"get":{"tags":["rest-api"],"summary":"stringOfAddress","description":"Get deposit address by coin","operationId":"getDepositAddressUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"coin","in":"query","description":"coin","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":{\n        \"address\": \"0xa12b8b8157da0e44d3e56cda7ade1d587141c27f\"\n    }\n\n}","schema":{"$ref":"#/definitions/BlockchainAddressGetResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/deposits":{"get":{"tags":["rest-api"],"summary":"ListOfDeposits","description":"Get deposits for user","operationId":"getDepositsUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n\t\t    \"id\": 77170270,\n            \"balance\": 100000.0,\n        \t\"amount\": 100000.0,\n            \"currency\": \"BYN\",\n            \"type\": \"deposit\",\n        \t\"timestamp\": 1647000860502,\n        \t\"commission\": 3500.0,\n        \t\"paymentMethod\": \"VISA\",\n        \t\"status\": \"PROCESSED\"\n    \t }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/depth":{"get":{"tags":["rest-api"],"summary":"orderBook","description":"Order book","operationId":"depthUsingGET_1","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"lastUpdateId\":1027024,\n        \"asks\":[\n            [\n                \"//Price\",\n                \"4.00000200\",\n                \"//Qty\",\n                \"12.00000000\"\n            ]\n        ],\n        \"bids\":[\n            [\n                \"// Price\",\n                \"4.00000000\",\n                \"// Quantity\",\n                \"431.00000000\"\n            ]\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/DepthResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/exchangeInfo":{"get":{"tags":["rest-api"],"summary":"exchangeInfo","description":"Current exchange trading rules and symbol information. When using signature parameter returns the market pairs which are traded under the account's jurisdiction. Also note that when sending an authorized request and using the X-MBX-API-KEY header timestamp and signature parameters are mandatory.","operationId":"exchangeInfoUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":false,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":false,"type":"string"},{"name":"signature","in":"query","description":"signature","required":false,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"timezone\":\"UTC\",\n        \"serverTime\":1628193845310,\n        \"rateLimits\":[\n        ],\n        \"exchangeFilters\":[\n        ],\n        \"symbols\":[\n            {\n                \"symbol\":\"EVK\",\n                \"name\":\"Evonik\",\n                \"status\":\"BREAK\",\n                \"baseAsset\":\"EVK\",\n                \"baseAssetPrecision\":3,\n                \"quoteAsset\":\"EUR\",\n                \"quoteAssetId\":\"EUR\",\n                \"quotePrecision\":3,\n                \"orderTypes\":[\n                    \"LIMIT\",\n                    \"MARKET\"\n                ],\n                \"filters\":[\n                    {\n                        \"filterType\":\"LOT_SIZE\",\n                        \"minQty\":\"1\",\n                        \"maxQty\":\"27000\",\n                        \"stepSize\":\"1\"\n                    },\n                    {\n                        \"filterType\":\"MIN_NOTIONAL\",\n                        \"minNotional\":\"29\"\n                    }\n                ],\n                \"marketModes\":[\n                    \"REGULAR\"\n                ],\n                \"marketType\":\"SPOT\",\n                \"country\":\"DE\",\n                \"sector\":\"Basic Materials\",\n                \"industry\":\"Diversified Chemicals\",\n                \"tradingHours\":\"UTC; Mon 07:02 - 15:30; Tue 07:02 - 15:30; Wed 07:02 - 15:30; Thu 07:02 - 15:30; Fri 07:02 - 15:30\",\n                \"tickSize\":0.005,\n                \"tickValue\":0.14475,\n                \"exchangeFee\":0.05\n            }\n        ]\n    }\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/fetchOrder":{"get":{"tags":["rest-api"],"summary":"Order","description":"Fetch order by symbol and order id","operationId":"getOrderUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"accountId\":19042209961170116,\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\",\n            \"quantity\":1.0,\n            \"price\":95.0,\n            \"timestamp\":1651072423560,\n            \"status\":\"CREATED\",\n            \"type\":\"LIMIT\",\n            \"expireTime\":2208988800000,\n            \"timeInForceType\":\"GTC\",\n            \"side\":\"BUY\",\n            \"guaranteedStopLoss\":true,\n            \"margin\":0.05,\n            \"takeProfit\":25.0,\n            \"takeProfitType\":\"OFFSET\",\n            \"stopLoss\":-15.0,\n            \"stopLossType\":\"OFFSET\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/GetOrderDtoResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/fundingLimits":{"get":{"tags":["rest-api"],"summary":"ListOfFundingLimits","description":"Get all system Funding limits","operationId":"getFundingLimitsUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"TOKENISED ASSETS\",\n        \t\"minWithdrawal\": \"100 USD equivalent\"\n        },\n        {\n        \t\"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"BAT\",\n        \t\"minWithdrawal\": \"52\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/FundingLimitsDtoResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/klines":{"get":{"tags":["rest-api"],"summary":"klines","description":"Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.","operationId":"klinesUsingGET_1","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"interval","in":"query","description":"interval","required":true,"type":"string"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"priceType","in":"query","description":"priceType","required":false,"type":"string","default":"bid"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"},{"name":"type","in":"query","description":"type","required":false,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        [\n            \"// Open time\",\n            1499040000000,\n            \" // Open\",\n            \"0.01634790\",\n            \" // High\",\n            \"0.80000000\",\n            \" // Low\",\n            \"0.01575800\",\n            \" // Close\",\n            \"0.01577100\",\n            \" // Volume.\",\n            \"148976.11427815\"\n        ]\n    ]\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/ledger":{"get":{"tags":["rest-api"],"summary":"ListOfLedgers","description":"Get ledger by limit","operationId":"getLedgerUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 77753629,\n\t        \"balance\": 20423.49571214,\n\t        \"amount\": -0.002601,\n\t        \"currency\": \"USD\",\n\t        \"type\": \"exchange_commission\",\n\t        \"timestamp\": 1647609091989,\n\t        \"commission\": 0.002601,\n            \"status\": \"PROCESSED\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/leverageSettings":{"get":{"tags":["rest-api"],"summary":"leverageSettings","description":"General leverage settings can be seen.","operationId":"leverageSettingsUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"values\":[\n            2,\n            5,\n            10,\n            20,\n            50,\n            100,\n            \" // the possible leverage sizes;\"\n        ],\n        \"//value\":\"depicts a default leverage size which will be set in case you don’t mention the ‘leverage’ parameter in the corresponding requests.\",\n        \"value\":20\n    }\n\n}","schema":{"$ref":"#/definitions/LeverageSettingsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/myTrades":{"get":{"tags":["rest-api"],"summary":"listOfTrades","description":"Get trades for a specific account and symbol.","operationId":"myTradesUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0004-0000-00000006f0a2\",\n            \"price\":\"9593.2\",\n            \"qty\":\"0.1\",\n            \"commission\":\"0.20\",\n            \"commissionAsset\":\"USD\",\n            \"time\":1582192427437,\n            \"maker\":false,\n            \"buyer\":true,\n            \"isBuyer\":true,\n            \"isMaker\":false\n        }\n    ]\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/openOrders":{"get":{"tags":["rest-api"],"summary":"listOfOpenOrders","description":"Get all open orders within exchange and leverage trading modes on a symbol. Careful when accessing this with no symbol.","operationId":"openOrdersUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n            \"price\":\"6600\",\n            \"origQty\":\"0.01\",\n            \"executedQty\":\"0.0\",\n            \"status\":\"NEW\",\n            \"timeInForce\":\"GTC\",\n            \"type\":\"LIMIT\",\n            \"side\":\"BUY\",\n            \"time\":1586958863147,\n            \"updateTime\":1586958863147,\n            \"leverage\":false,\n            \"working\":true\n        }\n    ]\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/order":{"post":{"tags":["rest-api"],"summary":"createOrder","description":"To create a market or limit order in the exchange trading mode, and market, limit or stop order in the leverage trading mode.\nPlease note that to open an order within the ‘leverage’ trading mode symbolLeverage should be used and additional accountId parameter should be mentioned in the request.","operationId":"orderUsingPOST_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"newOrderRespType","in":"query","description":"newOrderRespType in the exchange trading mode for MARKET order RESULT or FULL can be mentioned. MARKET order type default to FULL. LIMIT order type can be only RESULT. For the leverage trading mode only RESULT is available.","required":false,"type":"string","allowEmptyValue":false},{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"type","in":"query","description":"Type MARKET or LIMIT should be mentioned to open an order in the exchange trading mode. Type MARKET, LIMIT or STOP should be mentioned to open an order in the leverage trading mode.","required":true,"type":"string","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"accountId","in":"query","description":"accountId","required":false,"type":"string"},{"name":"expireTimestamp","in":"query","description":"expireTimestamp","required":false,"type":"integer","format":"int64"},{"name":"guaranteedStopLoss","in":"query","description":"guaranteedStopLoss","required":false,"type":"boolean"},{"name":"leverage","in":"query","description":"leverage","required":false,"type":"integer","format":"int32"},{"name":"price","in":"query","description":"price","required":false,"type":"number"},{"name":"profitDistance","in":"query","description":"profitDistance","required":false,"type":"number"},{"name":"quantity","in":"query","description":"quantity","required":true,"type":"number"},{"name":"side","in":"query","description":"side","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"stopDistance","in":"query","description":"stopDistance","required":false,"type":"number"},{"name":"stopLoss","in":"query","description":"stopLoss","required":false,"type":"number"},{"name":"takeProfit","in":"query","description":"takeProfit","required":false,"type":"number"},{"name":"trailingStopLoss","in":"query","description":"trailingStopLoss","required":false,"type":"boolean"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0000-0000-0000000c028d\",\n        \"transactTime\":1589879478020,\n        \"price\":\"9797.05500000\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.01\",\n        \"status\":\"FILLED\",\n        \"timeInForce\":\"FOK\",\n        \"type\":\"MARKET\",\n        \"side\":\"BUY\"\n    }\n\n}","schema":{"$ref":"#/definitions/NewOrderResponseRESULT"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}},"put":{"tags":["rest-api"],"summary":"Edit exchange order","description":"Edit exchange order expirationTime or price","operationId":"putEditOrderUsingPUT_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"expireTimestamp","in":"query","description":"expireTimestamp","required":false,"type":"integer","format":"int64"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"price","in":"query","description":"price","required":false,"type":"number"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/EditExchangeOrderResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}},"delete":{"tags":["rest-api"],"summary":"cancelOrder","description":"Cancel an active order within exchange and leverage trading modes.","operationId":"cancelOrderUsingDELETE_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n        \"price\":\"6600\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.0\",\n        \"status\":\"CANCELED\",\n        \"timeInForce\":\"GTC\",\n        \"type\":\"LIMIT\",\n        \"side\":\"BUY\"\n    }\n\n}","schema":{"$ref":"#/definitions/CancelOrderResponse"}},"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/api/v1/ticker/24hr":{"get":{"tags":["rest-api"],"summary":"priceChange","description":"24 hour rolling window price change statistics. Careful when accessing this with no symbol.","operationId":"ticker_24hrUsingGET_1","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"LTC/USD\",\n        \"priceChange\":\"0.88\",\n        \"priceChangePercent\":\"1.49\",\n        \"weightedAvgPrice\":\"59.29\",\n        \"prevClosePrice\":\"58.37\",\n        \"lastPrice\":\"59.25\",\n        \"lastQty\":\"220.0\",\n        \"bidPrice\":\"59.25\",\n        \"askPrice\":\"59.32\",\n        \"openPrice\":\"58.37\",\n        \"highPrice\":\"61.39\",\n        \"lowPrice\":\"58.37\",\n        \"volume\":\"22632\",\n        \"quoteVolume\":\"440.0\",\n        \"openTime\":1580169600000,\n        \"closeTime\":1580205307222\n    }\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/time":{"get":{"tags":["rest-api"],"summary":"serverTime","description":"Test connectivity to the API and get the current server time.","operationId":"timeUsingGET_1","produces":["*/*"],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"3\",\n    \"payload\":{\n        \"serverTime\":1628195607917\n    }\n\n}","schema":{"$ref":"#/definitions/ServerTime"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/tradingFees":{"get":{"tags":["rest-api"],"summary":"ListOfFees","description":"Get all system fees","operationId":"getTradingFeesUsingGET_1","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"UNI/USD\",\n            \"name\": \"UNI/USD\",\n            \"fee\": 0.1\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TradingFeesResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/tradingLimits":{"get":{"tags":["rest-api"],"summary":"ListOfLimits","description":"Get all system limits","operationId":"getTradingLimitsUsingGET_1","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"EVK\",\n        \t\"name\": \"Evonik\",\n        \t\"minVolume\": 1.0,\n        \t\"maxVolume\": 27000.0,\n       \t\t\"minStep\": 1.0,\n        \t\"tickSize\": 0.005\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TradingLimitsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/tradingPositions":{"get":{"tags":["rest-api"],"summary":"listOfLeverageTrades","description":"Get all open trades within the account.","operationId":"tradingPositionsUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"positions\":[\n            {\n                \"accountId\":2376109060084932,\n                \"id\":\"00a02503-0079-54c4-0000-00004067006b\",\n                \"instrumentId\":\"45076691096786116\",\n                \"orderId\":\"00a02503-0079-54c4-0000-00004067006a\",\n                \"openQuantity\":0.01,\n                \"openPrice\":6734.4,\n                \"closeQuantity\":0.0,\n                \"closePrice\":0,\n                \"takeProfit\":7999.15,\n                \"stopLoss\":5999.15,\n                \"guaranteedStopLoss\":false,\n                \"rpl\":0,\n                \"rplConverted\":0,\n                \"swap\":-0.00335894,\n                \"swapConverted\":-0.00335894,\n                \"fee\":-0.050508,\n                \"dividend\":0,\n                \"margin\":0.5,\n                \"state\":\"ACTIVE\",\n                \"currency\":\"USD\",\n                \"createdTimestamp\":1586953061455,\n                \"openTimestamp\":1586953061243,\n                \"cost\":33.73775,\n                \"symbol\":\"BTC/USD_LEVERAGE\"\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionListResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/tradingPositionsHistory":{"get":{"tags":["rest-api"],"summary":"listOfHistoricalPositions","description":"Get all closes postions within the account.","operationId":"tradingPositionsHistoryUsingGET_1","produces":["*/*"],"parameters":[{"name":"from","in":"query","description":"Timestamp in milliseconds, Filtration based on execTimestamp parameter","required":false,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"to","in":"query","description":"Timestamp in milliseconds, Filtration based on execTimestamp parameter","required":false,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"history\":[\n            {\n                \"accountId\":19039018800469188,\n                \"accountCurrency\":\"USD\",\n                \"positionId\":\"00a18509-0079-54c4-0000-00004062007b\",\n                \"currency\":\"USD\",\n                \"executionType\":\"IOC\",\n                \"quantity\":-0.1,\n                \"price\":44.95,\n                \"source\":\"USER\",\n                \"status\":\"CLOSED\",\n                \"rpl\":-0.002,\n                \"rplConverted\":-0.002,\n                \"fee\":0,\n                \"createdTimestamp\":1606999328398,\n                \"execTimestamp\":1606999315265,\n                \"symbol\":\"Oil - Crude.\"\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionHistoryResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/transactions":{"get":{"tags":["rest-api"],"summary":"ListOfTransactions","description":"Get transactions by limit and sinceTime","operationId":"getTransactionsUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/updateTradingOrder":{"post":{"tags":["rest-api"],"summary":"leverageOrdersEdit","description":"Edit current leverage orders by changing take profit and stop loss levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"updateTradingOrderUsingPOST_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"expireTimestamp","in":"query","description":"expireTimestamp","required":false,"type":"integer","format":"int64"},{"name":"guaranteedStopLoss","in":"query","description":"guaranteedStopLoss","required":false,"type":"boolean","default":false},{"name":"newPrice","in":"query","description":"newPrice","required":false,"type":"number"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"profitDistance","in":"query","description":"profitDistance","required":false,"type":"number"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"stopDistance","in":"query","description":"stopDistance","required":false,"type":"number"},{"name":"stopLoss","in":"query","description":"stopLoss","required":false,"type":"number"},{"name":"takeProfit","in":"query","description":"takeProfit","required":false,"type":"number"},{"name":"trailingStopLoss","in":"query","description":"trailingStopLoss","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":241986,\n        \"state\":\"PROCESSED\"\n    }\n\n}","schema":{"$ref":"#/definitions/TradingOrderUpdateResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/updateTradingPosition":{"post":{"tags":["rest-api"],"summary":"leverageTradeEdit","description":"Edit current leverage trade by changing stop loss and take profit levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"updateTradingPositionUsingPOST_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"guaranteedStopLoss","in":"query","description":"guaranteedStopLoss","required":false,"type":"boolean","default":false},{"name":"positionId","in":"query","description":"positionId","required":true,"type":"string","format":"uuid"},{"name":"profitDistance","in":"query","description":"profitDistance","required":false,"type":"number"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"stopDistance","in":"query","description":"stopDistance","required":false,"type":"number"},{"name":"stopLoss","in":"query","description":"stopLoss","required":false,"type":"number"},{"name":"takeProfit","in":"query","description":"takeProfit","required":false,"type":"number"},{"name":"trailingStopLoss","in":"query","description":"trailingStopLoss","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":242040,\n        \"state\":\"PROCESSED\"\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionUpdateResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v1/withdrawals":{"get":{"tags":["rest-api"],"summary":"ListOfWithdrawals","description":"Get withdrawals for user","operationId":"getWithdrawalsUsingGET_1","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/account":{"get":{"tags":["rest-api"],"summary":"accountInfo","description":"Get current account information","operationId":"accountUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"showZeroBalance","in":"query","description":"showZeroBalance","required":false,"type":"boolean"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"makerCommission\":0.20,\n        \"takerCommission\":0.20,\n        \"buyerCommission\":0.20,\n        \"sellerCommission\":0.20,\n        \"canTrade\":true,\n        \"canWithdraw\":true,\n        \"canDeposit\":true,\n        \"updateTime\":1586935521,\n        \"balances\":[\n            {\n                \"accountId\":\"2376104765040206\",\n                \"collateralCurrency\":true,\n                \"asset\":\"BYN\",\n                \"free\":0.0,\n                \"locked\":0.0,\n                \"default\":false\n            },\n            {\n                \"accountId\":\"2376109060084932\",\n                \"collateralCurrency\":true,\n                \"asset\":\"USD\",\n                \"free\":515.59092523,\n                \"locked\":0.0,\n                \"default\":true\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/AccountResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/aggTrades":{"get":{"tags":["rest-api"],"summary":"tradesAggregated","description":"Get compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated.","operationId":"aggTradesUsingGET","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"//a\":\"Aggregate tradeId\",\n            \"a\":1582595833,\n            \"//p\":\"Price\",\n            \"p\":\"8980.4\",\n            \"//q\":\"Quantity (should be ignored)\",\n            \"q\":\"0.0\",\n            \"//T\":\"Timestamp\",\n            \"T\":1580204505793,\n            \"//m\":\"Was the buyer the maker\",\n            \"m\":false\n        }\n    ]\n\n}","schema":{"type":"array","items":{"$ref":"#/definitions/AggTrades"}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/closeTradingPosition":{"post":{"tags":["rest-api"],"summary":"tradingPositionClose","description":"Close an active leverage trade.","operationId":"closeTradingPositionUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"positionId","in":"query","description":"positionId","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"request\":[\n            {\n                \"id\":242057,\n                \"accountId\":2376109060084932,\n                \"instrumentId\":\"45076691096786116\",\n                \"rqType\":\"ORDER_NEW\",\n                \"state\":\"PROCESSED\",\n                \"createdTimestamp\":1587031306969\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionCloseAllResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/currencies":{"get":{"tags":["rest-api"],"summary":"ListOfCurrencies","description":"Get all system currencies","operationId":"getCurrenciesUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"name\": \"US Dollar\",\n            \"displaySymbol\": \"USD.cx\",\n            \"precision\": 2,\n            \"type\": \"FIAT\",\n            \"minWithdrawal\": 100,\n            \"maxWithdrawal\": 100000000,\n            \"commissionMin\": 0.02,\n            \"commissionPercent\": 1.5,\n            \"minDeposit\": 100\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/CurrencyResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/depositAddress":{"get":{"tags":["rest-api"],"summary":"stringOfAddress","description":"Get deposit address by coin","operationId":"getDepositAddressUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"coin","in":"query","description":"coin","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":{\n        \"address\": \"0xa12b8b8157da0e44d3e56cda7ade1d587141c27f\"\n    }\n\n}","schema":{"$ref":"#/definitions/BlockchainAddressGetResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/deposits":{"get":{"tags":["rest-api"],"summary":"ListOfDeposits","description":"Get deposits for user","operationId":"getDepositsUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n\t\t    \"id\": 77170270,\n            \"balance\": 100000.0,\n        \t\"amount\": 100000.0,\n            \"currency\": \"BYN\",\n            \"type\": \"deposit\",\n        \t\"timestamp\": 1647000860502,\n        \t\"commission\": 3500.0,\n        \t\"paymentMethod\": \"VISA\",\n        \t\"status\": \"PROCESSED\"\n    \t }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/depth":{"get":{"tags":["rest-api"],"summary":"orderBook","description":"Order book","operationId":"depthUsingGET","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"lastUpdateId\":1027024,\n        \"asks\":[\n            [\n                \"//Price\",\n                \"4.00000200\",\n                \"//Qty\",\n                \"12.00000000\"\n            ]\n        ],\n        \"bids\":[\n            [\n                \"// Price\",\n                \"4.00000000\",\n                \"// Quantity\",\n                \"431.00000000\"\n            ]\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/DepthResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/exchangeInfo":{"get":{"tags":["rest-api"],"summary":"exchangeInfo","description":"Current exchange trading rules and symbol information. When using signature parameter returns the market pairs which are traded under the account's jurisdiction. Also note that when sending an authorized request and using the X-MBX-API-KEY header timestamp and signature parameters are mandatory.","operationId":"exchangeInfoUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":false,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":false,"type":"string"},{"name":"signature","in":"query","description":"signature","required":false,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"timezone\":\"UTC\",\n        \"serverTime\":1628193845310,\n        \"rateLimits\":[\n        ],\n        \"exchangeFilters\":[\n        ],\n        \"symbols\":[\n            {\n                \"symbol\":\"EVK\",\n                \"name\":\"Evonik\",\n                \"status\":\"BREAK\",\n                \"baseAsset\":\"EVK\",\n                \"baseAssetPrecision\":3,\n                \"quoteAsset\":\"EUR\",\n                \"quoteAssetId\":\"EUR\",\n                \"quotePrecision\":3,\n                \"orderTypes\":[\n                    \"LIMIT\",\n                    \"MARKET\"\n                ],\n                \"filters\":[\n                    {\n                        \"filterType\":\"LOT_SIZE\",\n                        \"minQty\":\"1\",\n                        \"maxQty\":\"27000\",\n                        \"stepSize\":\"1\"\n                    },\n                    {\n                        \"filterType\":\"MIN_NOTIONAL\",\n                        \"minNotional\":\"29\"\n                    }\n                ],\n                \"marketModes\":[\n                    \"REGULAR\"\n                ],\n                \"marketType\":\"SPOT\",\n                \"country\":\"DE\",\n                \"sector\":\"Basic Materials\",\n                \"industry\":\"Diversified Chemicals\",\n                \"tradingHours\":\"UTC; Mon 07:02 - 15:30; Tue 07:02 - 15:30; Wed 07:02 - 15:30; Thu 07:02 - 15:30; Fri 07:02 - 15:30\",\n                \"tickSize\":0.005,\n                \"tickValue\":0.14475,\n                \"exchangeFee\":0.05\n            }\n        ]\n    }\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/fetchOrder":{"get":{"tags":["rest-api"],"summary":"Order","description":"Fetch order by symbol and order id","operationId":"getOrderUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"accountId\":19042209961170116,\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\",\n            \"quantity\":1.0,\n            \"price\":95.0,\n            \"timestamp\":1651072423560,\n            \"status\":\"CREATED\",\n            \"type\":\"LIMIT\",\n            \"expireTime\":2208988800000,\n            \"timeInForceType\":\"GTC\",\n            \"side\":\"BUY\",\n            \"guaranteedStopLoss\":true,\n            \"margin\":0.05,\n            \"takeProfit\":25.0,\n            \"takeProfitType\":\"OFFSET\",\n            \"stopLoss\":-15.0,\n            \"stopLossType\":\"OFFSET\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/GetOrderDtoResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/fundingLimits":{"get":{"tags":["rest-api"],"summary":"ListOfFundingLimits","description":"Get all system Funding limits","operationId":"getFundingLimitsUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"TOKENISED ASSETS\",\n        \t\"minWithdrawal\": \"100 USD equivalent\"\n        },\n        {\n        \t\"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"BAT\",\n        \t\"minWithdrawal\": \"52\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/FundingLimitsDtoResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/klines":{"get":{"tags":["rest-api"],"summary":"klines","description":"Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.","operationId":"klinesUsingGET","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"interval","in":"query","description":"interval","required":true,"type":"string"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"priceType","in":"query","description":"priceType","required":false,"type":"string","default":"bid"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"},{"name":"type","in":"query","description":"type","required":false,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        [\n            \"// Open time\",\n            1499040000000,\n            \" // Open\",\n            \"0.01634790\",\n            \" // High\",\n            \"0.80000000\",\n            \" // Low\",\n            \"0.01575800\",\n            \" // Close\",\n            \"0.01577100\",\n            \" // Volume.\",\n            \"148976.11427815\"\n        ]\n    ]\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/ledger":{"get":{"tags":["rest-api"],"summary":"ListOfLedgers","description":"Get ledger by limit","operationId":"getLedgerUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 77753629,\n\t        \"balance\": 20423.49571214,\n\t        \"amount\": -0.002601,\n\t        \"currency\": \"USD\",\n\t        \"type\": \"exchange_commission\",\n\t        \"timestamp\": 1647609091989,\n\t        \"commission\": 0.002601,\n            \"status\": \"PROCESSED\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/leverageSettings":{"get":{"tags":["rest-api"],"summary":"leverageSettings","description":"General leverage settings can be seen.","operationId":"leverageSettingsUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"values\":[\n            2,\n            5,\n            10,\n            20,\n            50,\n            100,\n            \" // the possible leverage sizes;\"\n        ],\n        \"//value\":\"depicts a default leverage size which will be set in case you don’t mention the ‘leverage’ parameter in the corresponding requests.\",\n        \"value\":20\n    }\n\n}","schema":{"$ref":"#/definitions/LeverageSettingsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/myTrades":{"get":{"tags":["rest-api"],"summary":"listOfTrades","description":"Get trades for a specific account and symbol.","operationId":"myTradesUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0004-0000-00000006f0a2\",\n            \"price\":\"9593.2\",\n            \"qty\":\"0.1\",\n            \"commission\":\"0.20\",\n            \"commissionAsset\":\"USD\",\n            \"time\":1582192427437,\n            \"maker\":false,\n            \"buyer\":true,\n            \"isBuyer\":true,\n            \"isMaker\":false\n        }\n    ]\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/openOrders":{"get":{"tags":["rest-api"],"summary":"listOfOpenOrders","description":"Get all open orders within exchange and leverage trading modes on a symbol. Careful when accessing this with no symbol.","operationId":"openOrdersUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n            \"price\":\"6600\",\n            \"origQty\":\"0.01\",\n            \"executedQty\":\"0.0\",\n            \"status\":\"NEW\",\n            \"timeInForce\":\"GTC\",\n            \"type\":\"LIMIT\",\n            \"side\":\"BUY\",\n            \"time\":1586958863147,\n            \"updateTime\":1586958863147,\n            \"leverage\":false,\n            \"working\":true\n        }\n    ]\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/order":{"post":{"tags":["rest-api"],"summary":"createOrder","description":"To create a market or limit order in the exchange trading mode, and market, limit or stop order in the leverage trading mode.\nPlease note that to open an order within the ‘leverage’ trading mode symbolLeverage should be used and additional accountId parameter should be mentioned in the request.","operationId":"orderUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"newOrderRespType","in":"query","description":"newOrderRespType in the exchange trading mode for MARKET order RESULT or FULL can be mentioned. MARKET order type default to FULL. LIMIT order type can be only RESULT. For the leverage trading mode only RESULT is available.","required":false,"type":"string","allowEmptyValue":false},{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"type","in":"query","description":"Type MARKET or LIMIT should be mentioned to open an order in the exchange trading mode. Type MARKET, LIMIT or STOP should be mentioned to open an order in the leverage trading mode.","required":true,"type":"string","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"accountId","in":"query","description":"accountId","required":false,"type":"string"},{"name":"expireTimestamp","in":"query","description":"expireTimestamp","required":false,"type":"integer","format":"int64"},{"name":"guaranteedStopLoss","in":"query","description":"guaranteedStopLoss","required":false,"type":"boolean"},{"name":"leverage","in":"query","description":"leverage","required":false,"type":"integer","format":"int32"},{"name":"price","in":"query","description":"price","required":false,"type":"number"},{"name":"profitDistance","in":"query","description":"profitDistance","required":false,"type":"number"},{"name":"quantity","in":"query","description":"quantity","required":true,"type":"number"},{"name":"side","in":"query","description":"side","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"stopDistance","in":"query","description":"stopDistance","required":false,"type":"number"},{"name":"stopLoss","in":"query","description":"stopLoss","required":false,"type":"number"},{"name":"takeProfit","in":"query","description":"takeProfit","required":false,"type":"number"},{"name":"trailingStopLoss","in":"query","description":"trailingStopLoss","required":false,"type":"boolean"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0000-0000-0000000c028d\",\n        \"transactTime\":1589879478020,\n        \"price\":\"9797.05500000\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.01\",\n        \"status\":\"FILLED\",\n        \"timeInForce\":\"FOK\",\n        \"type\":\"MARKET\",\n        \"side\":\"BUY\"\n    }\n\n}","schema":{"$ref":"#/definitions/NewOrderResponseRESULT"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}},"put":{"tags":["rest-api"],"summary":"Edit exchange order","description":"Edit exchange order expirationTime or price","operationId":"putEditOrderUsingPUT","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"expireTimestamp","in":"query","description":"expireTimestamp","required":false,"type":"integer","format":"int64"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"price","in":"query","description":"price","required":false,"type":"number"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/EditExchangeOrderResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}},"delete":{"tags":["rest-api"],"summary":"cancelOrder","description":"Cancel an active order within exchange and leverage trading modes.","operationId":"cancelOrderUsingDELETE","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":true,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n        \"price\":\"6600\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.0\",\n        \"status\":\"CANCELED\",\n        \"timeInForce\":\"GTC\",\n        \"type\":\"LIMIT\",\n        \"side\":\"BUY\"\n    }\n\n}","schema":{"$ref":"#/definitions/CancelOrderResponse"}},"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/api/v2/ticker/24hr":{"get":{"tags":["rest-api"],"summary":"priceChange","description":"24 hour rolling window price change statistics. Careful when accessing this with no symbol.","operationId":"ticker_24hrUsingGET","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"LTC/USD\",\n        \"priceChange\":\"0.88\",\n        \"priceChangePercent\":\"1.49\",\n        \"weightedAvgPrice\":\"59.29\",\n        \"prevClosePrice\":\"58.37\",\n        \"lastPrice\":\"59.25\",\n        \"lastQty\":\"220.0\",\n        \"bidPrice\":\"59.25\",\n        \"askPrice\":\"59.32\",\n        \"openPrice\":\"58.37\",\n        \"highPrice\":\"61.39\",\n        \"lowPrice\":\"58.37\",\n        \"volume\":\"22632\",\n        \"quoteVolume\":\"440.0\",\n        \"openTime\":1580169600000,\n        \"closeTime\":1580205307222\n    }\n\n}","schema":{"type":"object"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/time":{"get":{"tags":["rest-api"],"summary":"serverTime","description":"Test connectivity to the API and get the current server time.","operationId":"timeUsingGET","produces":["*/*"],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"3\",\n    \"payload\":{\n        \"serverTime\":1628195607917\n    }\n\n}","schema":{"$ref":"#/definitions/ServerTime"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/tradingFees":{"get":{"tags":["rest-api"],"summary":"ListOfFees","description":"Get all system fees","operationId":"getTradingFeesUsingGET","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"UNI/USD\",\n            \"name\": \"UNI/USD\",\n            \"fee\": 0.1\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TradingFeesResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/tradingLimits":{"get":{"tags":["rest-api"],"summary":"ListOfLimits","description":"Get all system limits","operationId":"getTradingLimitsUsingGET","produces":["*/*"],"parameters":[{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"EVK\",\n        \t\"name\": \"Evonik\",\n        \t\"minVolume\": 1.0,\n        \t\"maxVolume\": 27000.0,\n       \t\t\"minStep\": 1.0,\n        \t\"tickSize\": 0.005\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TradingLimitsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/tradingPositions":{"get":{"tags":["rest-api"],"summary":"listOfLeverageTrades","description":"Get all open trades within the account.","operationId":"tradingPositionsUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"positions\":[\n            {\n                \"accountId\":2376109060084932,\n                \"id\":\"00a02503-0079-54c4-0000-00004067006b\",\n                \"instrumentId\":\"45076691096786116\",\n                \"orderId\":\"00a02503-0079-54c4-0000-00004067006a\",\n                \"openQuantity\":0.01,\n                \"openPrice\":6734.4,\n                \"closeQuantity\":0.0,\n                \"closePrice\":0,\n                \"takeProfit\":7999.15,\n                \"stopLoss\":5999.15,\n                \"guaranteedStopLoss\":false,\n                \"rpl\":0,\n                \"rplConverted\":0,\n                \"swap\":-0.00335894,\n                \"swapConverted\":-0.00335894,\n                \"fee\":-0.050508,\n                \"dividend\":0,\n                \"margin\":0.5,\n                \"state\":\"ACTIVE\",\n                \"currency\":\"USD\",\n                \"createdTimestamp\":1586953061455,\n                \"openTimestamp\":1586953061243,\n                \"cost\":33.73775,\n                \"symbol\":\"BTC/USD_LEVERAGE\"\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionListResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/tradingPositionsHistory":{"get":{"tags":["rest-api"],"summary":"listOfHistoricalPositions","description":"Get all closes postions within the account.","operationId":"tradingPositionsHistoryUsingGET","produces":["*/*"],"parameters":[{"name":"from","in":"query","description":"Timestamp in milliseconds, Filtration based on execTimestamp parameter","required":false,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"symbol","in":"query","description":"Symbol - In order to receive orders within an ‘exchange’ trading mode ‘symbol’ parameter value from the exchangeInfo endpoint: ‘BTC%2FUSD’.\nIn order to mention the right symbolLeverage it should be checked with the ‘symbol’ parameter value from the exchangeInfo endpoint. In case ‘symbol’ has currencies in its name then the following format should be used: ‘BTC%2FUSD_LEVERAGE’. In case ‘symbol’ has only an asset name then for the leverage trading mode the following format is correct: ‘Oil%20-%20Brent.’","required":false,"type":"string","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"to","in":"query","description":"Timestamp in milliseconds, Filtration based on execTimestamp parameter","required":false,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"history\":[\n            {\n                \"accountId\":19039018800469188,\n                \"accountCurrency\":\"USD\",\n                \"positionId\":\"00a18509-0079-54c4-0000-00004062007b\",\n                \"currency\":\"USD\",\n                \"executionType\":\"IOC\",\n                \"quantity\":-0.1,\n                \"price\":44.95,\n                \"source\":\"USER\",\n                \"status\":\"CLOSED\",\n                \"rpl\":-0.002,\n                \"rplConverted\":-0.002,\n                \"fee\":0,\n                \"createdTimestamp\":1606999328398,\n                \"execTimestamp\":1606999315265,\n                \"symbol\":\"Oil - Crude.\"\n            }\n        ]\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionHistoryResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/transactions":{"get":{"tags":["rest-api"],"summary":"ListOfTransactions","description":"Get transactions by limit and sinceTime","operationId":"getTransactionsUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/updateTradingOrder":{"post":{"tags":["rest-api"],"summary":"leverageOrdersEdit","description":"Edit current leverage orders by changing take profit and stop loss levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"updateTradingOrderUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"expireTimestamp","in":"query","description":"expireTimestamp","required":false,"type":"integer","format":"int64"},{"name":"guaranteedStopLoss","in":"query","description":"guaranteedStopLoss","required":false,"type":"boolean","default":false},{"name":"newPrice","in":"query","description":"newPrice","required":false,"type":"number"},{"name":"orderId","in":"query","description":"orderId","required":true,"type":"string"},{"name":"profitDistance","in":"query","description":"profitDistance","required":false,"type":"number"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"stopDistance","in":"query","description":"stopDistance","required":false,"type":"number"},{"name":"stopLoss","in":"query","description":"stopLoss","required":false,"type":"number"},{"name":"takeProfit","in":"query","description":"takeProfit","required":false,"type":"number"},{"name":"trailingStopLoss","in":"query","description":"trailingStopLoss","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":241986,\n        \"state\":\"PROCESSED\"\n    }\n\n}","schema":{"$ref":"#/definitions/TradingOrderUpdateResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/updateTradingPosition":{"post":{"tags":["rest-api"],"summary":"leverageTradeEdit","description":"Edit current leverage trade by changing stop loss and take profit levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"updateTradingPositionUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"guaranteedStopLoss","in":"query","description":"guaranteedStopLoss","required":false,"type":"boolean","default":false},{"name":"positionId","in":"query","description":"positionId","required":true,"type":"string","format":"uuid"},{"name":"profitDistance","in":"query","description":"profitDistance","required":false,"type":"number"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"stopDistance","in":"query","description":"stopDistance","required":false,"type":"number"},{"name":"stopLoss","in":"query","description":"stopLoss","required":false,"type":"number"},{"name":"takeProfit","in":"query","description":"takeProfit","required":false,"type":"number"},{"name":"trailingStopLoss","in":"query","description":"trailingStopLoss","required":false,"type":"boolean","default":false}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":242040,\n        \"state\":\"PROCESSED\"\n    }\n\n}","schema":{"$ref":"#/definitions/TradingPositionUpdateResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/v2/withdrawals":{"get":{"tags":["rest-api"],"summary":"ListOfWithdrawals","description":"Get withdrawals for user","operationId":"getWithdrawalsUsingGET","produces":["*/*"],"parameters":[{"name":"recvWindow","in":"query","description":"recvWindow cannot be greater than 60000","required":false,"type":"integer","default":5000,"format":"int64","allowEmptyValue":false},{"name":"timestamp","in":"query","description":"Timestamp in milliseconds","required":true,"type":"integer","format":"int64","allowEmptyValue":false},{"name":"X-MBX-APIKEY","in":"header","description":"X-MBX-APIKEY","required":true,"type":"string"},{"name":"endTime","in":"query","description":"endTime","required":false,"type":"integer","format":"int64"},{"name":"limit","in":"query","description":"limit","required":false,"type":"integer","default":10,"format":"int32"},{"name":"signature","in":"query","description":"signature","required":true,"type":"string"},{"name":"startTime","in":"query","description":"startTime","required":false,"type":"integer","format":"int64"}],"responses":{"200":{"description":"Example:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}","schema":{"$ref":"#/definitions/TransactionsResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"wss:/api/v1/account":{"get":{"tags":["websocket-api"],"summary":"accountInfo","description":"Get current account information","operationId":"websocketmethods_53","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/AccountRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"makerCommission\":0.20,\n        \"takerCommission\":0.20,\n        \"buyerCommission\":0.20,\n        \"sellerCommission\":0.20,\n        \"canTrade\":true,\n        \"canWithdraw\":true,\n        \"canDeposit\":true,\n        \"updateTime\":1586935521,\n        \"balances\":[\n            {\n                \"accountId\":\"2376104765040206\",\n                \"collateralCurrency\":true,\n                \"asset\":\"BYN\",\n                \"free\":0.0,\n                \"locked\":0.0,\n                \"default\":false\n            },\n            {\n                \"accountId\":\"2376109060084932\",\n                \"collateralCurrency\":true,\n                \"asset\":\"USD\",\n                \"free\":515.59092523,\n                \"locked\":0.0,\n                \"default\":true\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/AccountResponse"}}}}},"wss:/api/v1/aggTrades":{"get":{"tags":["websocket-api"],"summary":"tradesAggregated","description":"Get compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated.","operationId":"websocketmethods_7","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/AggTradesRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"//a\":\"Aggregate tradeId\",\n            \"a\":1582595833,\n            \"//p\":\"Price\",\n            \"p\":\"8980.4\",\n            \"//q\":\"Quantity (should be ignored)\",\n            \"q\":\"0.0\",\n            \"//T\":\"Timestamp\",\n            \"T\":1580204505793,\n            \"//m\":\"Was the buyer the maker\",\n            \"m\":false\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/AggTradesResponse"}}}}},"wss:/api/v1/closeTradingPosition":{"get":{"tags":["websocket-api"],"summary":"tradingPositionClose","description":"Close an active leverage trade.","operationId":"websocketmethods_13","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/CloseTradingPositionRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"request\":[\n            {\n                \"id\":242057,\n                \"accountId\":2376109060084932,\n                \"instrumentId\":\"45076691096786116\",\n                \"rqType\":\"ORDER_NEW\",\n                \"state\":\"PROCESSED\",\n                \"createdTimestamp\":1587031306969\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionCloseAllResponse"}}}}},"wss:/api/v1/currencies":{"get":{"tags":["websocket-api"],"summary":"ListOfCurrencies","description":"Get all system currencies","operationId":"websocketmethods_20","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"name\": \"US Dollar\",\n            \"displaySymbol\": \"USD.cx\",\n            \"precision\": 2,\n            \"type\": \"FIAT\",\n            \"minWithdrawal\": 100,\n            \"maxWithdrawal\": 100000000,\n            \"commissionMin\": 0.02,\n            \"commissionPercent\": 1.5,\n            \"minDeposit\": 100\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/CurrencyResponse"}}}}},"wss:/api/v1/depositAddress":{"get":{"tags":["websocket-api"],"summary":"stringOfAddress","description":"Get deposit address by coin","operationId":"websocketmethods_3","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/BlockchainAddressRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":{\n        \"address\": \"0xa12b8b8157da0e44d3e56cda7ade1d587141c27f\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/BlockchainAddressGetResponse"}}}}},"wss:/api/v1/deposits":{"get":{"tags":["websocket-api"],"summary":"ListOfDeposits","description":"Get deposits for user","operationId":"websocketmethods_4","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n\t\t    \"id\": 77170270,\n            \"balance\": 100000.0,\n        \t\"amount\": 100000.0,\n            \"currency\": \"BYN\",\n            \"type\": \"deposit\",\n        \t\"timestamp\": 1647000860502,\n        \t\"commission\": 3500.0,\n        \t\"paymentMethod\": \"VISA\",\n        \t\"status\": \"PROCESSED\"\n    \t }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v1/depth":{"get":{"tags":["websocket-api"],"summary":"orderBook","description":"Order book","operationId":"websocketmethods_12","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/DepthRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"lastUpdateId\":1027024,\n        \"asks\":[\n            [\n                \"//Price\",\n                \"4.00000200\",\n                \"//Qty\",\n                \"12.00000000\"\n            ]\n        ],\n        \"bids\":[\n            [\n                \"// Price\",\n                \"4.00000000\",\n                \"// Quantity\",\n                \"431.00000000\"\n            ]\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/DepthResponse"}}}}},"wss:/api/v1/exchangeInfo":{"get":{"tags":["websocket-api"],"summary":"exchangeInfo","description":"Current exchange trading rules and symbol information. When using signature parameter returns the market pairs which are traded under the account's jurisdiction. Also note that when sending an authorized request and using the X-MBX-API-KEY header timestamp and signature parameters are mandatory.","operationId":"websocketmethods_22","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/OptionalAuthRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"timezone\":\"UTC\",\n        \"serverTime\":1628193845310,\n        \"rateLimits\":[\n        ],\n        \"exchangeFilters\":[\n        ],\n        \"symbols\":[\n            {\n                \"symbol\":\"EVK\",\n                \"name\":\"Evonik\",\n                \"status\":\"BREAK\",\n                \"baseAsset\":\"EVK\",\n                \"baseAssetPrecision\":3,\n                \"quoteAsset\":\"EUR\",\n                \"quoteAssetId\":\"EUR\",\n                \"quotePrecision\":3,\n                \"orderTypes\":[\n                    \"LIMIT\",\n                    \"MARKET\"\n                ],\n                \"filters\":[\n                    {\n                        \"filterType\":\"LOT_SIZE\",\n                        \"minQty\":\"1\",\n                        \"maxQty\":\"27000\",\n                        \"stepSize\":\"1\"\n                    },\n                    {\n                        \"filterType\":\"MIN_NOTIONAL\",\n                        \"minNotional\":\"29\"\n                    }\n                ],\n                \"marketModes\":[\n                    \"REGULAR\"\n                ],\n                \"marketType\":\"SPOT\",\n                \"country\":\"DE\",\n                \"sector\":\"Basic Materials\",\n                \"industry\":\"Diversified Chemicals\",\n                \"tradingHours\":\"UTC; Mon 07:02 - 15:30; Tue 07:02 - 15:30; Wed 07:02 - 15:30; Thu 07:02 - 15:30; Fri 07:02 - 15:30\",\n                \"tickSize\":0.005,\n                \"tickValue\":0.14475,\n                \"exchangeFee\":0.05\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/ExchangeInfo"}}}}},"wss:/api/v1/fetchOrder":{"get":{"tags":["websocket-api"],"summary":"Order","description":"Fetch order by symbol and order id","operationId":"websocketmethods","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/GetOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"accountId\":19042209961170116,\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\",\n            \"quantity\":1.0,\n            \"price\":95.0,\n            \"timestamp\":1651072423560,\n            \"status\":\"CREATED\",\n            \"type\":\"LIMIT\",\n            \"expireTime\":2208988800000,\n            \"timeInForceType\":\"GTC\",\n            \"side\":\"BUY\",\n            \"guaranteedStopLoss\":true,\n            \"margin\":0.05,\n            \"takeProfit\":25.0,\n            \"takeProfitType\":\"OFFSET\",\n            \"stopLoss\":-15.0,\n            \"stopLossType\":\"OFFSET\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/GetOrderDtoResponse"}}}}},"wss:/api/v1/fundingLimits":{"get":{"tags":["websocket-api"],"summary":"ListOfFundingLimits","description":"Get all system Funding limits","operationId":"websocketmethods_54","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"TOKENISED ASSETS\",\n        \t\"minWithdrawal\": \"100 USD equivalent\"\n        },\n        {\n        \t\"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"BAT\",\n        \t\"minWithdrawal\": \"52\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/FundingLimitsDtoResponseWS"}}}}},"wss:/api/v1/klines":{"get":{"tags":["websocket-api"],"summary":"klines","description":"Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.","operationId":"websocketmethods_15","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/KLinesRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        [\n            \"// Open time\",\n            1499040000000,\n            \" // Open\",\n            \"0.01634790\",\n            \" // High\",\n            \"0.80000000\",\n            \" // Low\",\n            \"0.01575800\",\n            \" // Close\",\n            \"0.01577100\",\n            \" // Volume.\",\n            \"148976.11427815\"\n        ]\n    ]\n\n}\n","schema":{"$ref":"#/definitions/KLinesResponse"}}}}},"wss:/api/v1/ledger":{"get":{"tags":["websocket-api"],"summary":"ListOfLedgers","description":"Get ledger by limit","operationId":"websocketmethods_2","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 77753629,\n\t        \"balance\": 20423.49571214,\n\t        \"amount\": -0.002601,\n\t        \"currency\": \"USD\",\n\t        \"type\": \"exchange_commission\",\n\t        \"timestamp\": 1647609091989,\n\t        \"commission\": 0.002601,\n            \"status\": \"PROCESSED\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v1/leverageSettings":{"get":{"tags":["websocket-api"],"summary":"leverageSettings","description":"General leverage settings can be seen.","operationId":"websocketmethods_19","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/LeverageSettingsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"values\":[\n            2,\n            5,\n            10,\n            20,\n            50,\n            100,\n            \" // the possible leverage sizes;\"\n        ],\n        \"//value\":\"depicts a default leverage size which will be set in case you don’t mention the ‘leverage’ parameter in the corresponding requests.\",\n        \"value\":20\n    }\n\n}\n","schema":{"$ref":"#/definitions/LeverageSettingsResponse"}}}}},"wss:/api/v1/myTrades":{"get":{"tags":["websocket-api"],"summary":"listOfTrades","description":"Get trades for a specific account and symbol.","operationId":"websocketmethods_14","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/AllMyTradesRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0004-0000-00000006f0a2\",\n            \"price\":\"9593.2\",\n            \"qty\":\"0.1\",\n            \"commission\":\"0.20\",\n            \"commissionAsset\":\"USD\",\n            \"time\":1582192427437,\n            \"maker\":false,\n            \"buyer\":true,\n            \"isBuyer\":true,\n            \"isMaker\":false\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/AllMyTradesResponse"}}}}},"wss:/api/v1/openOrders":{"get":{"tags":["websocket-api"],"summary":"listOfOpenOrders","description":"Get all open orders within exchange and leverage trading modes on a symbol. Careful when accessing this with no symbol.","operationId":"websocketmethods_9","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedBySymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n            \"price\":\"6600\",\n            \"origQty\":\"0.01\",\n            \"executedQty\":\"0.0\",\n            \"status\":\"NEW\",\n            \"timeInForce\":\"GTC\",\n            \"type\":\"LIMIT\",\n            \"side\":\"BUY\",\n            \"time\":1586958863147,\n            \"updateTime\":1586958863147,\n            \"leverage\":false,\n            \"working\":true\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/OpenOrdersReponse"}}}}},"wss:/api/v1/order/cancel":{"get":{"tags":["websocket-api"],"summary":"cancelOrder","description":"Cancel an active order within exchange and leverage trading modes.","operationId":"websocketmethods_52","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/CancelOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n        \"price\":\"6600\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.0\",\n        \"status\":\"CANCELED\",\n        \"timeInForce\":\"GTC\",\n        \"type\":\"LIMIT\",\n        \"side\":\"BUY\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/CancelOrderResponse"}}}}},"wss:/api/v1/order/create":{"get":{"tags":["websocket-api"],"summary":"createOrder","description":"To create a market or limit order in the exchange trading mode, and market, limit or stop order in the leverage trading mode.\nPlease note that to open an order within the ‘leverage’ trading mode symbolLeverage should be used and additional accountId parameter should be mentioned in the request.","operationId":"websocketmethods_21","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/CreateOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0000-0000-0000000c028d\",\n        \"transactTime\":1589879478020,\n        \"price\":\"9797.05500000\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.01\",\n        \"status\":\"FILLED\",\n        \"timeInForce\":\"FOK\",\n        \"type\":\"MARKET\",\n        \"side\":\"BUY\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/NewOrderResponseRESULT"}}}}},"wss:/api/v1/order/edit":{"get":{"tags":["websocket-api"],"summary":"Edit exchange order","description":"Edit exchange order expirationTime or price","operationId":"websocketmethods_51","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/EditExchangeOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/EditExchangeOrderResponse"}}}}},"wss:/api/v1/ticker/24hr":{"get":{"tags":["websocket-api"],"summary":"priceChange","description":"24 hour rolling window price change statistics. Careful when accessing this with no symbol.","operationId":"websocketmethods_8","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/BySymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"LTC/USD\",\n        \"priceChange\":\"0.88\",\n        \"priceChangePercent\":\"1.49\",\n        \"weightedAvgPrice\":\"59.29\",\n        \"prevClosePrice\":\"58.37\",\n        \"lastPrice\":\"59.25\",\n        \"lastQty\":\"220.0\",\n        \"bidPrice\":\"59.25\",\n        \"askPrice\":\"59.32\",\n        \"openPrice\":\"58.37\",\n        \"highPrice\":\"61.39\",\n        \"lowPrice\":\"58.37\",\n        \"volume\":\"22632\",\n        \"quoteVolume\":\"440.0\",\n        \"openTime\":1580169600000,\n        \"closeTime\":1580205307222\n    }\n\n}\n","schema":{"$ref":"#/definitions/Ticker24HResponse"}}}}},"wss:/api/v1/time":{"get":{"tags":["websocket-api"],"summary":"serverTime","description":"Test connectivity to the API and get the current server time.","operationId":"websocketmethods_17","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/EmptyRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"3\",\n    \"payload\":{\n        \"serverTime\":1628195607917\n    }\n\n}\n","schema":{"$ref":"#/definitions/ServerTime"}}}}},"wss:/api/v1/tradingFees":{"get":{"tags":["websocket-api"],"summary":"ListOfFees","description":"Get all system fees","operationId":"websocketmethods_10","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"UNI/USD\",\n            \"name\": \"UNI/USD\",\n            \"fee\": 0.1\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TradingFeesResponseWS"}}}}},"wss:/api/v1/tradingLimits":{"get":{"tags":["websocket-api"],"summary":"ListOfLimits","description":"Get all system limits","operationId":"websocketmethods_55","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"EVK\",\n        \t\"name\": \"Evonik\",\n        \t\"minVolume\": 1.0,\n        \t\"maxVolume\": 27000.0,\n       \t\t\"minStep\": 1.0,\n        \t\"tickSize\": 0.005\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TradingLimitsResponseWS"}}}}},"wss:/api/v1/tradingPositions":{"get":{"tags":["websocket-api"],"summary":"listOfLeverageTrades","description":"Get all open trades within the account.","operationId":"websocketmethods_6","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"positions\":[\n            {\n                \"accountId\":2376109060084932,\n                \"id\":\"00a02503-0079-54c4-0000-00004067006b\",\n                \"instrumentId\":\"45076691096786116\",\n                \"orderId\":\"00a02503-0079-54c4-0000-00004067006a\",\n                \"openQuantity\":0.01,\n                \"openPrice\":6734.4,\n                \"closeQuantity\":0.0,\n                \"closePrice\":0,\n                \"takeProfit\":7999.15,\n                \"stopLoss\":5999.15,\n                \"guaranteedStopLoss\":false,\n                \"rpl\":0,\n                \"rplConverted\":0,\n                \"swap\":-0.00335894,\n                \"swapConverted\":-0.00335894,\n                \"fee\":-0.050508,\n                \"dividend\":0,\n                \"margin\":0.5,\n                \"state\":\"ACTIVE\",\n                \"currency\":\"USD\",\n                \"createdTimestamp\":1586953061455,\n                \"openTimestamp\":1586953061243,\n                \"cost\":33.73775,\n                \"symbol\":\"BTC/USD_LEVERAGE\"\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionListResponse"}}}}},"wss:/api/v1/tradingPositionsHistory":{"get":{"tags":["websocket-api"],"summary":"listOfHistoricalPositions","description":"Get all closes postions within the account.","operationId":"websocketmethods_11","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/PositionHistoryRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"history\":[\n            {\n                \"accountId\":19039018800469188,\n                \"accountCurrency\":\"USD\",\n                \"positionId\":\"00a18509-0079-54c4-0000-00004062007b\",\n                \"currency\":\"USD\",\n                \"executionType\":\"IOC\",\n                \"quantity\":-0.1,\n                \"price\":44.95,\n                \"source\":\"USER\",\n                \"status\":\"CLOSED\",\n                \"rpl\":-0.002,\n                \"rplConverted\":-0.002,\n                \"fee\":0,\n                \"createdTimestamp\":1606999328398,\n                \"execTimestamp\":1606999315265,\n                \"symbol\":\"Oil - Crude.\"\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionHistoryResponse"}}}}},"wss:/api/v1/transactions":{"get":{"tags":["websocket-api"],"summary":"ListOfTransactions","description":"Get transactions by limit and sinceTime","operationId":"websocketmethods_5","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v1/updateTradingOrder":{"get":{"tags":["websocket-api"],"summary":"leverageOrdersEdit","description":"Edit current leverage orders by changing take profit and stop loss levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"websocketmethods_18","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/UpdateTradingOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":241986,\n        \"state\":\"PROCESSED\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingOrderUpdateResponse"}}}}},"wss:/api/v1/updateTradingPosition":{"get":{"tags":["websocket-api"],"summary":"leverageTradeEdit","description":"Edit current leverage trade by changing stop loss and take profit levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"websocketmethods_1","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/UpdateTradingPositionRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":242040,\n        \"state\":\"PROCESSED\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionUpdateResponse"}}}}},"wss:/api/v1/withdrawals":{"get":{"tags":["websocket-api"],"summary":"ListOfWithdrawals","description":"Get withdrawals for user","operationId":"websocketmethods_16","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v2/account":{"get":{"tags":["websocket-api"],"summary":"accountInfo","description":"Get current account information","operationId":"websocketmethods_33","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/AccountRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"makerCommission\":0.20,\n        \"takerCommission\":0.20,\n        \"buyerCommission\":0.20,\n        \"sellerCommission\":0.20,\n        \"canTrade\":true,\n        \"canWithdraw\":true,\n        \"canDeposit\":true,\n        \"updateTime\":1586935521,\n        \"balances\":[\n            {\n                \"accountId\":\"2376104765040206\",\n                \"collateralCurrency\":true,\n                \"asset\":\"BYN\",\n                \"free\":0.0,\n                \"locked\":0.0,\n                \"default\":false\n            },\n            {\n                \"accountId\":\"2376109060084932\",\n                \"collateralCurrency\":true,\n                \"asset\":\"USD\",\n                \"free\":515.59092523,\n                \"locked\":0.0,\n                \"default\":true\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/AccountResponse"}}}}},"wss:/api/v2/aggTrades":{"get":{"tags":["websocket-api"],"summary":"tradesAggregated","description":"Get compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated.","operationId":"websocketmethods_46","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/AggTradesRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"//a\":\"Aggregate tradeId\",\n            \"a\":1582595833,\n            \"//p\":\"Price\",\n            \"p\":\"8980.4\",\n            \"//q\":\"Quantity (should be ignored)\",\n            \"q\":\"0.0\",\n            \"//T\":\"Timestamp\",\n            \"T\":1580204505793,\n            \"//m\":\"Was the buyer the maker\",\n            \"m\":false\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/AggTradesResponse"}}}}},"wss:/api/v2/closeTradingPosition":{"get":{"tags":["websocket-api"],"summary":"tradingPositionClose","description":"Close an active leverage trade.","operationId":"websocketmethods_30","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/CloseTradingPositionRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"request\":[\n            {\n                \"id\":242057,\n                \"accountId\":2376109060084932,\n                \"instrumentId\":\"45076691096786116\",\n                \"rqType\":\"ORDER_NEW\",\n                \"state\":\"PROCESSED\",\n                \"createdTimestamp\":1587031306969\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionCloseAllResponse"}}}}},"wss:/api/v2/currencies":{"get":{"tags":["websocket-api"],"summary":"ListOfCurrencies","description":"Get all system currencies","operationId":"websocketmethods_37","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"name\": \"US Dollar\",\n            \"displaySymbol\": \"USD.cx\",\n            \"precision\": 2,\n            \"type\": \"FIAT\",\n            \"minWithdrawal\": 100,\n            \"maxWithdrawal\": 100000000,\n            \"commissionMin\": 0.02,\n            \"commissionPercent\": 1.5,\n            \"minDeposit\": 100\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/CurrencyResponse"}}}}},"wss:/api/v2/depositAddress":{"get":{"tags":["websocket-api"],"summary":"stringOfAddress","description":"Get deposit address by coin","operationId":"websocketmethods_32","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/BlockchainAddressRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":{\n        \"address\": \"0xa12b8b8157da0e44d3e56cda7ade1d587141c27f\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/BlockchainAddressGetResponse"}}}}},"wss:/api/v2/deposits":{"get":{"tags":["websocket-api"],"summary":"ListOfDeposits","description":"Get deposits for user","operationId":"websocketmethods_24","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n\t\t    \"id\": 77170270,\n            \"balance\": 100000.0,\n        \t\"amount\": 100000.0,\n            \"currency\": \"BYN\",\n            \"type\": \"deposit\",\n        \t\"timestamp\": 1647000860502,\n        \t\"commission\": 3500.0,\n        \t\"paymentMethod\": \"VISA\",\n        \t\"status\": \"PROCESSED\"\n    \t }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v2/depth":{"get":{"tags":["websocket-api"],"summary":"orderBook","description":"Order book","operationId":"websocketmethods_49","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/DepthRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"lastUpdateId\":1027024,\n        \"asks\":[\n            [\n                \"//Price\",\n                \"4.00000200\",\n                \"//Qty\",\n                \"12.00000000\"\n            ]\n        ],\n        \"bids\":[\n            [\n                \"// Price\",\n                \"4.00000000\",\n                \"// Quantity\",\n                \"431.00000000\"\n            ]\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/DepthResponse"}}}}},"wss:/api/v2/exchangeInfo":{"get":{"tags":["websocket-api"],"summary":"exchangeInfo","description":"Current exchange trading rules and symbol information. When using signature parameter returns the market pairs which are traded under the account's jurisdiction. Also note that when sending an authorized request and using the X-MBX-API-KEY header timestamp and signature parameters are mandatory.","operationId":"websocketmethods_40","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/OptionalAuthRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"timezone\":\"UTC\",\n        \"serverTime\":1628193845310,\n        \"rateLimits\":[\n        ],\n        \"exchangeFilters\":[\n        ],\n        \"symbols\":[\n            {\n                \"symbol\":\"EVK\",\n                \"name\":\"Evonik\",\n                \"status\":\"BREAK\",\n                \"baseAsset\":\"EVK\",\n                \"baseAssetPrecision\":3,\n                \"quoteAsset\":\"EUR\",\n                \"quoteAssetId\":\"EUR\",\n                \"quotePrecision\":3,\n                \"orderTypes\":[\n                    \"LIMIT\",\n                    \"MARKET\"\n                ],\n                \"filters\":[\n                    {\n                        \"filterType\":\"LOT_SIZE\",\n                        \"minQty\":\"1\",\n                        \"maxQty\":\"27000\",\n                        \"stepSize\":\"1\"\n                    },\n                    {\n                        \"filterType\":\"MIN_NOTIONAL\",\n                        \"minNotional\":\"29\"\n                    }\n                ],\n                \"marketModes\":[\n                    \"REGULAR\"\n                ],\n                \"marketType\":\"SPOT\",\n                \"country\":\"DE\",\n                \"sector\":\"Basic Materials\",\n                \"industry\":\"Diversified Chemicals\",\n                \"tradingHours\":\"UTC; Mon 07:02 - 15:30; Tue 07:02 - 15:30; Wed 07:02 - 15:30; Thu 07:02 - 15:30; Fri 07:02 - 15:30\",\n                \"tickSize\":0.005,\n                \"tickValue\":0.14475,\n                \"exchangeFee\":0.05\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/ExchangeInfo"}}}}},"wss:/api/v2/fetchOrder":{"get":{"tags":["websocket-api"],"summary":"Order","description":"Fetch order by symbol and order id","operationId":"websocketmethods_42","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/GetOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"accountId\":19042209961170116,\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\",\n            \"quantity\":1.0,\n            \"price\":95.0,\n            \"timestamp\":1651072423560,\n            \"status\":\"CREATED\",\n            \"type\":\"LIMIT\",\n            \"expireTime\":2208988800000,\n            \"timeInForceType\":\"GTC\",\n            \"side\":\"BUY\",\n            \"guaranteedStopLoss\":true,\n            \"margin\":0.05,\n            \"takeProfit\":25.0,\n            \"takeProfitType\":\"OFFSET\",\n            \"stopLoss\":-15.0,\n            \"stopLossType\":\"OFFSET\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/GetOrderDtoResponse"}}}}},"wss:/api/v2/fundingLimits":{"get":{"tags":["websocket-api"],"summary":"ListOfFundingLimits","description":"Get all system Funding limits","operationId":"websocketmethods_43","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"TOKENISED ASSETS\",\n        \t\"minWithdrawal\": \"100 USD equivalent\"\n        },\n        {\n        \t\"paymentOption\": \"CRYPTO\",\n        \t\"accountCurrency\": \"BAT\",\n        \t\"minWithdrawal\": \"52\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/FundingLimitsDtoResponseWS"}}}}},"wss:/api/v2/klines":{"get":{"tags":["websocket-api"],"summary":"klines","description":"Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.","operationId":"websocketmethods_27","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/KLinesRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        [\n            \"// Open time\",\n            1499040000000,\n            \" // Open\",\n            \"0.01634790\",\n            \" // High\",\n            \"0.80000000\",\n            \" // Low\",\n            \"0.01575800\",\n            \" // Close\",\n            \"0.01577100\",\n            \" // Volume.\",\n            \"148976.11427815\"\n        ]\n    ]\n\n}\n","schema":{"$ref":"#/definitions/KLinesResponse"}}}}},"wss:/api/v2/ledger":{"get":{"tags":["websocket-api"],"summary":"ListOfLedgers","description":"Get ledger by limit","operationId":"websocketmethods_47","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 77753629,\n\t        \"balance\": 20423.49571214,\n\t        \"amount\": -0.002601,\n\t        \"currency\": \"USD\",\n\t        \"type\": \"exchange_commission\",\n\t        \"timestamp\": 1647609091989,\n\t        \"commission\": 0.002601,\n            \"status\": \"PROCESSED\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v2/leverageSettings":{"get":{"tags":["websocket-api"],"summary":"leverageSettings","description":"General leverage settings can be seen.","operationId":"websocketmethods_31","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/LeverageSettingsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"values\":[\n            2,\n            5,\n            10,\n            20,\n            50,\n            100,\n            \" // the possible leverage sizes;\"\n        ],\n        \"//value\":\"depicts a default leverage size which will be set in case you don’t mention the ‘leverage’ parameter in the corresponding requests.\",\n        \"value\":20\n    }\n\n}\n","schema":{"$ref":"#/definitions/LeverageSettingsResponse"}}}}},"wss:/api/v2/myTrades":{"get":{"tags":["websocket-api"],"summary":"listOfTrades","description":"Get trades for a specific account and symbol.","operationId":"websocketmethods_48","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/AllMyTradesRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0004-0000-00000006f0a2\",\n            \"price\":\"9593.2\",\n            \"qty\":\"0.1\",\n            \"commission\":\"0.20\",\n            \"commissionAsset\":\"USD\",\n            \"time\":1582192427437,\n            \"maker\":false,\n            \"buyer\":true,\n            \"isBuyer\":true,\n            \"isMaker\":false\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/AllMyTradesResponse"}}}}},"wss:/api/v2/openOrders":{"get":{"tags":["websocket-api"],"summary":"listOfOpenOrders","description":"Get all open orders within exchange and leverage trading modes on a symbol. Careful when accessing this with no symbol.","operationId":"websocketmethods_26","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedBySymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"symbol\":\"BTC/USD\",\n            \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n            \"price\":\"6600\",\n            \"origQty\":\"0.01\",\n            \"executedQty\":\"0.0\",\n            \"status\":\"NEW\",\n            \"timeInForce\":\"GTC\",\n            \"type\":\"LIMIT\",\n            \"side\":\"BUY\",\n            \"time\":1586958863147,\n            \"updateTime\":1586958863147,\n            \"leverage\":false,\n            \"working\":true\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/OpenOrdersReponse"}}}}},"wss:/api/v2/order/cancel":{"get":{"tags":["websocket-api"],"summary":"cancelOrder","description":"Cancel an active order within exchange and leverage trading modes.","operationId":"websocketmethods_41","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/CancelOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0002-0000-0000000b3302\",\n        \"price\":\"6600\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.0\",\n        \"status\":\"CANCELED\",\n        \"timeInForce\":\"GTC\",\n        \"type\":\"LIMIT\",\n        \"side\":\"BUY\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/CancelOrderResponse"}}}}},"wss:/api/v2/order/create":{"get":{"tags":["websocket-api"],"summary":"createOrder","description":"To create a market or limit order in the exchange trading mode, and market, limit or stop order in the leverage trading mode.\nPlease note that to open an order within the ‘leverage’ trading mode symbolLeverage should be used and additional accountId parameter should be mentioned in the request.","operationId":"websocketmethods_44","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/CreateOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00000000-0000-0000-0000-0000000c028d\",\n        \"transactTime\":1589879478020,\n        \"price\":\"9797.05500000\",\n        \"origQty\":\"0.01\",\n        \"executedQty\":\"0.01\",\n        \"status\":\"FILLED\",\n        \"timeInForce\":\"FOK\",\n        \"type\":\"MARKET\",\n        \"side\":\"BUY\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/NewOrderResponseRESULT"}}}}},"wss:/api/v2/order/edit":{"get":{"tags":["websocket-api"],"summary":"Edit exchange order","description":"Edit exchange order expirationTime or price","operationId":"websocketmethods_50","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/EditExchangeOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":[\n        {\n            \"orderId\":\"00a0c503-0079-54c4-0000-0000803400c0\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/EditExchangeOrderResponse"}}}}},"wss:/api/v2/ticker/24hr":{"get":{"tags":["websocket-api"],"summary":"priceChange","description":"24 hour rolling window price change statistics. Careful when accessing this with no symbol.","operationId":"websocketmethods_25","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/BySymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"symbol\":\"LTC/USD\",\n        \"priceChange\":\"0.88\",\n        \"priceChangePercent\":\"1.49\",\n        \"weightedAvgPrice\":\"59.29\",\n        \"prevClosePrice\":\"58.37\",\n        \"lastPrice\":\"59.25\",\n        \"lastQty\":\"220.0\",\n        \"bidPrice\":\"59.25\",\n        \"askPrice\":\"59.32\",\n        \"openPrice\":\"58.37\",\n        \"highPrice\":\"61.39\",\n        \"lowPrice\":\"58.37\",\n        \"volume\":\"22632\",\n        \"quoteVolume\":\"440.0\",\n        \"openTime\":1580169600000,\n        \"closeTime\":1580205307222\n    }\n\n}\n","schema":{"$ref":"#/definitions/Ticker24HResponse"}}}}},"wss:/api/v2/time":{"get":{"tags":["websocket-api"],"summary":"serverTime","description":"Test connectivity to the API and get the current server time.","operationId":"websocketmethods_28","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/EmptyRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"3\",\n    \"payload\":{\n        \"serverTime\":1628195607917\n    }\n\n}\n","schema":{"$ref":"#/definitions/ServerTime"}}}}},"wss:/api/v2/tradingFees":{"get":{"tags":["websocket-api"],"summary":"ListOfFees","description":"Get all system fees","operationId":"websocketmethods_38","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"UNI/USD\",\n            \"name\": \"UNI/USD\",\n            \"fee\": 0.1\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TradingFeesResponseWS"}}}}},"wss:/api/v2/tradingLimits":{"get":{"tags":["websocket-api"],"summary":"ListOfLimits","description":"Get all system limits","operationId":"websocketmethods_35","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SymbolRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"symbol\": \"EVK\",\n        \t\"name\": \"Evonik\",\n        \t\"minVolume\": 1.0,\n        \t\"maxVolume\": 27000.0,\n       \t\t\"minStep\": 1.0,\n        \t\"tickSize\": 0.005\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TradingLimitsResponseWS"}}}}},"wss:/api/v2/tradingPositions":{"get":{"tags":["websocket-api"],"summary":"listOfLeverageTrades","description":"Get all open trades within the account.","operationId":"websocketmethods_39","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SignedRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"positions\":[\n            {\n                \"accountId\":2376109060084932,\n                \"id\":\"00a02503-0079-54c4-0000-00004067006b\",\n                \"instrumentId\":\"45076691096786116\",\n                \"orderId\":\"00a02503-0079-54c4-0000-00004067006a\",\n                \"openQuantity\":0.01,\n                \"openPrice\":6734.4,\n                \"closeQuantity\":0.0,\n                \"closePrice\":0,\n                \"takeProfit\":7999.15,\n                \"stopLoss\":5999.15,\n                \"guaranteedStopLoss\":false,\n                \"rpl\":0,\n                \"rplConverted\":0,\n                \"swap\":-0.00335894,\n                \"swapConverted\":-0.00335894,\n                \"fee\":-0.050508,\n                \"dividend\":0,\n                \"margin\":0.5,\n                \"state\":\"ACTIVE\",\n                \"currency\":\"USD\",\n                \"createdTimestamp\":1586953061455,\n                \"openTimestamp\":1586953061243,\n                \"cost\":33.73775,\n                \"symbol\":\"BTC/USD_LEVERAGE\"\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionListResponse"}}}}},"wss:/api/v2/tradingPositionsHistory":{"get":{"tags":["websocket-api"],"summary":"listOfHistoricalPositions","description":"Get all closes postions within the account.","operationId":"websocketmethods_36","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/PositionHistoryRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"history\":[\n            {\n                \"accountId\":19039018800469188,\n                \"accountCurrency\":\"USD\",\n                \"positionId\":\"00a18509-0079-54c4-0000-00004062007b\",\n                \"currency\":\"USD\",\n                \"executionType\":\"IOC\",\n                \"quantity\":-0.1,\n                \"price\":44.95,\n                \"source\":\"USER\",\n                \"status\":\"CLOSED\",\n                \"rpl\":-0.002,\n                \"rplConverted\":-0.002,\n                \"fee\":0,\n                \"createdTimestamp\":1606999328398,\n                \"execTimestamp\":1606999315265,\n                \"symbol\":\"Oil - Crude.\"\n            }\n        ]\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionHistoryResponse"}}}}},"wss:/api/v2/transactions":{"get":{"tags":["websocket-api"],"summary":"ListOfTransactions","description":"Get transactions by limit and sinceTime","operationId":"websocketmethods_23","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:/api/v2/updateTradingOrder":{"get":{"tags":["websocket-api"],"summary":"leverageOrdersEdit","description":"Edit current leverage orders by changing take profit and stop loss levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"websocketmethods_29","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/UpdateTradingOrderRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":241986,\n        \"state\":\"PROCESSED\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingOrderUpdateResponse"}}}}},"wss:/api/v2/updateTradingPosition":{"get":{"tags":["websocket-api"],"summary":"leverageTradeEdit","description":"Edit current leverage trade by changing stop loss and take profit levels. Please note that in case guaranteedStopLoss or trailingStopLoss values are not mentioned in the request then they are set to false automatically.","operationId":"websocketmethods_45","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/UpdateTradingPositionRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"requestId\":242040,\n        \"state\":\"PROCESSED\"\n    }\n\n}\n","schema":{"$ref":"#/definitions/TradingPositionUpdateResponse"}}}}},"wss:/api/v2/withdrawals":{"get":{"tags":["websocket-api"],"summary":"ListOfWithdrawals","description":"Get withdrawals for user","operationId":"websocketmethods_34","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/TransactionsRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n{\n\n    \"status\": \"OK\",\n    \"correlationId\": \"2\",\n    \"payload\":[\n        {\n            \"id\": 12225003,\n            \"balance\": 19759.5292569,\n            \"amount\": -100,\n            \"currency\": \"dEUR\",\n            \"timestamp\": 1562831860753,\n            \"commission\": 4.6,\n            \"paymentMethod\": \"MASTERCARD\",\n            \"status\": \"DECLINED\"\n        }\n    ]\n\n}\n","schema":{"$ref":"#/definitions/TransactionsResponse"}}}}},"wss:OHLCMarketData.subscribe":{"get":{"tags":["websocket-api"],"summary":"OHLCMarketData","description":"OHLC market data stream","operationId":"websocketmethods_58","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/OHLCSubscribeRequest"}}],"responses":{"200":{"description":"This subscription produces the following events:\n{\n\n    \"status\":\"OK\",\n    \"correlationId\":\"2\",\n    \"payload\":{\n        \"status\":\"OK\",\n        \"Destination\":\"ohlc.event\",\n        \"Payload\":{\n            \"interval\":\"1m\",\n            \"symbol\":\"TS\",\n            \"T\":1597850100000,\n            \"H\":11.89,\n            \"L\":11.88,\n            \"O\":11.89,\n            \"C\":11.89\n        }\n    }\n\n}","schema":{"$ref":"#/definitions/SubscribeResponse"}}}}},"wss:depthMarketData.subscribe":{"get":{"tags":["websocket-api"],"summary":"DepthMarketData","description":"Depth market data stream","operationId":"websocketmethods_56","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SubscribeRequest"}}],"responses":{"200":{"description":"This subscription produces the following events:\n{\n\n    \"status\":\"OK\",\n    \"Destination\":\"marketdepth.event\",\n    \"Payload\":{\n        \"Data\":{\n            \"ts\":1597849462575,\n            \"Bid\":{\n                \"2\":25,\n                \"1.94\":25.9\n            },\n            \"Ofr\":{\n                \"3.3\":1,\n                \"2.627\":6.1\n            }\n        },\n        \"symbol\":\"Natural Gas\"\n    }\n\n}","schema":{"$ref":"#/definitions/SubscribeResponse"}}}}},"wss:marketData.subscribe":{"get":{"tags":["websocket-api"],"summary":"MarketData","description":"Market data stream","operationId":"websocketmethods_57","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SubscribeRequest"}}],"responses":{"200":{"description":"This subscription produces the following events:\n{\n\n    \"status\":\"OK\",\n    \"Destination\":\"internal.quote\",\n    \"Payload\":{\n        \"symbolName\":\"TXN\",\n        \"bid\":139.85,\n        \"bidQty\":2500,\n        \"ofr\":139.92000000000002,\n        \"ofrQty\":2500,\n        \"timestamp\":1597850971558\n    }\n\n}","schema":{"$ref":"#/definitions/SubscribeResponse"}}}}},"wss:ping":{"get":{"tags":["websocket-api"],"summary":"ping","description":"Ping pong","operationId":"websocketmethods_60","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/PingRequest"}}],"responses":{"200":{"description":"This stream  results in the following response:\n {} \n","schema":{"$ref":"#/definitions/PingResponse"}}}}},"wss:trades.subscribe":{"get":{"tags":["websocket-api"],"summary":"Trades","description":"Trades stream","operationId":"websocketmethods_59","parameters":[{"in":"body","name":"request","description":"query parameter","required":true,"schema":{"$ref":"#/definitions/SubscribeRequest"}}],"responses":{"200":{"description":"This subscription produces the following events:\n{\n\n    \"status\":\"OK\",\n    \"destination\":\"internal.trade\",\n    \"payload\":{\n        \"price\":11400.95,\n        \"size\":0.058,\n        \"id\":1616651347,\n        \"ts\":1596625079952,\n        \"symbol\":\"BTC/USD\",\n        \"orderId\":\"00a02503-0079-54c4-0000-00004020316a\",\n        \"clientOrderId\":\"00a02503-0079-54c4-0000-482f00003a06\",\n        \"buyer\":true\n    }\n\n}","schema":{"$ref":"#/definitions/SubscribeResponse"}}}}}},"definitions":{"AccountBalance":{"type":"object","properties":{"accountId":{"type":"string"},"asset":{"type":"string"},"collateralCurrency":{"type":"boolean"},"default":{"type":"boolean"},"free":{"type":"number"},"locked":{"type":"number"}},"title":"AccountBalance"},"AccountRequest":{"type":"object","required":["apiKey","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"showZeroBalance":{"type":"boolean"},"signature":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"AccountRequest"},"AccountResponse":{"type":"object","properties":{"affiliateId":{"type":"string"},"balances":{"type":"array","items":{"$ref":"#/definitions/AccountBalance"}},"buyerCommission":{"type":"number"},"canDeposit":{"type":"boolean"},"canTrade":{"type":"boolean"},"canWithdraw":{"type":"boolean"},"makerCommission":{"type":"number"},"sellerCommission":{"type":"number"},"takerCommission":{"type":"number"},"updateTime":{"type":"integer","format":"int64"},"userId":{"type":"integer","format":"int64"}},"title":"AccountResponse"},"AggTrades":{"type":"object","properties":{"T":{"type":"integer","format":"int64"},"a":{"type":"integer","format":"int64"},"m":{"type":"boolean"},"p":{"type":"string"},"q":{"type":"string"}},"title":"AggTrades"},"AggTradesRequest":{"type":"object","required":["symbol"],"properties":{"endTime":{"type":"integer","format":"int64"},"limit":{"type":"integer","format":"int32"},"startTime":{"type":"integer","format":"int64"},"symbol":{"type":"string"}},"title":"AggTradesRequest"},"AggTradesResponse":{"type":"object","properties":{"aggTrades":{"type":"array","items":{"$ref":"#/definitions/AggTrades"}}},"title":"AggTradesResponse"},"AllMyTradesRequest":{"type":"object","required":["apiKey","signature","symbol","timestamp"],"properties":{"apiKey":{"type":"string"},"endTime":{"type":"integer","format":"int64"},"limit":{"type":"integer","format":"int32"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"startTime":{"type":"integer","format":"int64"},"symbol":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"AllMyTradesRequest"},"AllMyTradesResponse":{"type":"object","properties":{"myTrades":{"type":"array","items":{"$ref":"#/definitions/MyTradesResponse"}}},"title":"AllMyTradesResponse"},"BlockchainAddressGetResponse":{"type":"object","properties":{"address":{"type":"string"},"addressLegacy":{"type":"string"},"destinationTag":{"type":"string"}},"title":"BlockchainAddressGetResponse"},"BlockchainAddressRequest":{"type":"object","required":["apiKey","coin","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"coin":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"BlockchainAddressRequest"},"BySymbolRequest":{"type":"object","properties":{"symbol":{"type":"string"}},"title":"BySymbolRequest"},"CancelOrderRequest":{"type":"object","required":["apiKey","orderId","signature","symbol","timestamp"],"properties":{"apiKey":{"type":"string"},"orderId":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"symbol":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"CancelOrderRequest"},"CancelOrderResponse":{"type":"object","properties":{"executedQty":{"type":"string"},"orderId":{"type":"string"},"origQty":{"type":"string"},"price":{"type":"string"},"side":{"type":"string","enum":["BUY","SELL"]},"status":{"type":"string","enum":["CANCELED","EXPIRED","FILLED","NEW","PARTIALLY_FILLED","PENDING_CANCEL","REJECTED"]},"symbol":{"type":"string"},"timeInForce":{"type":"string","enum":["FOK","GTC","IOC"]},"type":{"type":"string","enum":["LIMIT","MARKET","STOP","TRAILING_STOP"]}},"title":"CancelOrderResponse"},"CloseTradingPositionRequest":{"type":"object","required":["apiKey","positionId","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"positionId":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"CloseTradingPositionRequest"},"CreateOrderRequest":{"type":"object","required":["apiKey","quantity","side","signature","symbol","timestamp","type"],"properties":{"accountId":{"type":"integer","format":"int64"},"apiKey":{"type":"string"},"expireTimestamp":{"type":"integer","format":"int64"},"guaranteedStopLoss":{"type":"boolean"},"leverage":{"type":"integer","format":"int32"},"newOrderRespType":{"type":"string"},"price":{"type":"number"},"profitDistance":{"type":"number"},"quantity":{"type":"number"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"side":{"type":"string"},"signature":{"type":"string"},"stopDistance":{"type":"number"},"stopLoss":{"type":"number"},"symbol":{"type":"string"},"takeProfit":{"type":"number"},"timestamp":{"type":"integer","format":"int64"},"trailingStopLoss":{"type":"boolean"},"type":{"type":"string"}},"title":"CreateOrderRequest"},"CurrencyDtoResponse":{"type":"object","properties":{"commissionFixed":{"type":"number"},"commissionMin":{"type":"number"},"commissionPercent":{"type":"number"},"displaySymbol":{"type":"string"},"maxWithdrawal":{"type":"number"},"minDeposit":{"type":"number"},"minWithdrawal":{"type":"number"},"name":{"type":"string"},"precision":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["CRYPTO","EXCHANGE_TOKEN","FIAT","ICO","TOKEN","TOKENISED_SECURITY","UTILITY_TOKENS"]}},"title":"CurrencyDtoResponse"},"CurrencyResponse":{"type":"object","properties":{"currencies":{"type":"array","items":{"$ref":"#/definitions/CurrencyDtoResponse"}}},"title":"CurrencyResponse"},"DepthRequest":{"type":"object","required":["symbol"],"properties":{"limit":{"type":"integer","format":"int32"},"symbol":{"type":"string"}},"title":"DepthRequest"},"DepthResponse":{"type":"object","properties":{"asks":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"bids":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"lastUpdateId":{"type":"integer","format":"int64"}},"title":"DepthResponse"},"EditExchangeOrderRequest":{"type":"object","required":["apiKey","orderId","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"expireTimestamp":{"type":"integer","format":"int64"},"orderId":{"type":"string"},"price":{"type":"number"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"EditExchangeOrderRequest"},"EditExchangeOrderResponse":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid"}},"title":"EditExchangeOrderResponse"},"EmptyRequest":{"type":"object","title":"EmptyRequest"},"ExchangeFilter":{"type":"object","title":"ExchangeFilter"},"ExchangeInfo":{"type":"object","properties":{"exchangeFilters":{"type":"array","items":{"$ref":"#/definitions/ExchangeFilter"}},"rateLimits":{"type":"array","items":{"$ref":"#/definitions/RateLimits"}},"serverTime":{"type":"integer","format":"int64"},"symbols":{"type":"array","items":{"$ref":"#/definitions/ExchangeSymbolInfo"}},"timezone":{"type":"string"}},"title":"ExchangeInfo"},"ExchangeSymbolInfo":{"type":"object","properties":{"assetType":{"type":"string","enum":["BOND","COMMODITY","CREDIT","CRYPTOCURRENCY","CURRENCY","EQUITY","ICO","INDEX","INTEREST_RATE","OPT_TOKENS","OTHER_ASSET","REAL_ESTATE","UTILITY_TOKENS"]},"baseAsset":{"type":"string"},"baseAssetPrecision":{"type":"integer","format":"int32"},"country":{"type":"string"},"exchangeFee":{"type":"number"},"filters":{"type":"array","items":{"$ref":"#/definitions/SymbolFilter"}},"industry":{"type":"string"},"longRate":{"type":"number","format":"double"},"makerFee":{"type":"number"},"marketModes":{"type":"array","items":{"type":"string","enum":["CLOSED_FOR_CORPORATE_ACTION","CLOSE_ONLY","DELISTING","HOLIDAY","LONG_ONLY","REGULAR","UNKNOWN","VIEW_AND_REQUEST","VIEW_ONLY"]}},"marketType":{"type":"string","enum":["LEVERAGE","SPOT"]},"maxSLGap":{"type":"number"},"maxTPGap":{"type":"number"},"minSLGap":{"type":"number"},"minTPGap":{"type":"number"},"name":{"type":"string"},"orderTypes":{"type":"array","items":{"type":"string","enum":["LIMIT","MARKET","STOP","TRAILING_STOP"]}},"quoteAsset":{"type":"string"},"quoteAssetId":{"type":"string"},"quotePrecision":{"type":"integer","format":"int32"},"sector":{"type":"string"},"shortRate":{"type":"number","format":"double"},"status":{"type":"string","enum":["AUCTION_MATCH","BREAK","END_OF_DAY","HALT","POST_TRADING","PRE_TRADING","TRADING"]},"swapChargeInterval":{"type":"integer","format":"int64"},"symbol":{"type":"string"},"takerFee":{"type":"number"},"tickSize":{"type":"number"},"tickValue":{"type":"number"},"tradingFee":{"type":"number"},"tradingHours":{"type":"string"}},"title":"ExchangeSymbolInfo"},"FundingLimitsDtoResponse":{"type":"object","properties":{"accountCurrency":{"type":"string"},"minWithdrawal":{"type":"string"},"paymentOption":{"type":"string"}},"title":"FundingLimitsDtoResponse"},"FundingLimitsDtoResponseWS":{"type":"object","properties":{"fundingLimits":{"type":"array","items":{"$ref":"#/definitions/FundingLimitsDtoResponse"}}},"title":"FundingLimitsDtoResponseWS"},"GetOrderDtoResponseReq":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"execPrice":{"type":"number"},"execQuantity":{"type":"number"},"expireTime":{"type":"integer","format":"int64"},"guaranteedStopLoss":{"type":"boolean"},"margin":{"type":"number","format":"double"},"orderId":{"type":"string"},"price":{"type":"number"},"quantity":{"type":"number"},"rejectReason":{"type":"string"},"side":{"type":"string"},"status":{"type":"string"},"stopLoss":{"type":"number"},"symbol":{"type":"string"},"symbolAndReturn":{"type":"string"},"takeProfit":{"type":"number"},"timeInForceType":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"trailingStopLoss":{"type":"boolean"},"type":{"type":"string"}},"title":"GetOrderDtoResponseReq"},"GetOrderDtoResponseRes":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"execPrice":{"type":"number"},"execQuantity":{"type":"number"},"expireTime":{"type":"integer","format":"int64"},"guaranteedStopLoss":{"type":"boolean"},"margin":{"type":"number","format":"double"},"orderId":{"type":"string"},"price":{"type":"number"},"quantity":{"type":"number"},"rejectReason":{"type":"string"},"side":{"type":"string"},"status":{"type":"string"},"stopLoss":{"type":"number"},"symbol":{"type":"string"},"takeProfit":{"type":"number"},"timeInForceType":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"trailingStopLoss":{"type":"boolean"},"type":{"type":"string"}},"title":"GetOrderDtoResponseRes"},"GetOrderRequest":{"type":"object","required":["apiKey","orderId","signature","symbol","timestamp"],"properties":{"apiKey":{"type":"string"},"orderId":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"symbol":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"GetOrderRequest"},"InternalQuote":{"type":"object","properties":{"bid":{"type":"number","format":"double"},"bidQty":{"type":"number","format":"double"},"ofr":{"type":"number","format":"double"},"ofrQty":{"type":"number","format":"double"},"symbolName":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"InternalQuote"},"KLinesRequest":{"type":"object","required":["interval","symbol"],"properties":{"endTime":{"type":"integer","format":"int64"},"interval":{"type":"string"},"limit":{"type":"integer","format":"int32"},"priceType":{"type":"string"},"startTime":{"type":"integer","format":"int64"},"symbol":{"type":"string"},"type":{"type":"string"}},"title":"KLinesRequest"},"KLinesResponse":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"array","items":{"type":"object"}}}},"title":"KLinesResponse"},"LeverageSettingsRequest":{"type":"object","required":["apiKey","signature","symbol","timestamp"],"properties":{"apiKey":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"symbol":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"LeverageSettingsRequest"},"LeverageSettingsResponse":{"type":"object","properties":{"value":{"type":"integer","format":"int32"},"values":{"type":"array","items":{"type":"integer","format":"int32"}}},"title":"LeverageSettingsResponse"},"MarketDepthData":{"type":"object","properties":{"bid":{"type":"object","additionalProperties":{"type":"number"}},"ofr":{"type":"object","additionalProperties":{"type":"number"}},"ts":{"type":"integer","format":"int64"}},"title":"MarketDepthData"},"MarketDepthEvent":{"type":"object","properties":{"data":{"$ref":"#/definitions/MarketDepthData"},"symbol":{"type":"string"}},"title":"MarketDepthEvent"},"MyTradesResponse":{"type":"object","properties":{"buyer":{"type":"boolean"},"commission":{"type":"string"},"commissionAsset":{"type":"string"},"id":{"type":"string"},"isBuyer":{"type":"boolean"},"isMaker":{"type":"boolean"},"maker":{"type":"boolean"},"orderId":{"type":"string"},"price":{"type":"string"},"qty":{"type":"string"},"quoteQty":{"type":"string"},"symbol":{"type":"string"},"time":{"type":"integer","format":"int64"}},"title":"MyTradesResponse"},"NewOrderResponseRESULT":{"type":"object","properties":{"executedQty":{"type":"string"},"expireTimestamp":{"type":"integer","format":"int64"},"guaranteedStopLoss":{"type":"boolean"},"margin":{"type":"number"},"orderId":{"type":"string"},"origQty":{"type":"string"},"price":{"type":"string"},"profitDistance":{"type":"number"},"rejectMessage":{"type":"string"},"side":{"type":"string","enum":["BUY","SELL"]},"status":{"type":"string","enum":["CANCELED","EXPIRED","FILLED","NEW","PARTIALLY_FILLED","PENDING_CANCEL","REJECTED"]},"stopDistance":{"type":"number"},"stopLoss":{"type":"number"},"symbol":{"type":"string"},"takeProfit":{"type":"number"},"timeInForce":{"type":"string","enum":["FOK","GTC","IOC"]},"trailingStopLoss":{"type":"boolean"},"transactTime":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["LIMIT","MARKET","STOP","TRAILING_STOP"]}},"title":"NewOrderResponseRESULT"},"OHLCBar":{"type":"object","properties":{"c":{"type":"number","format":"double"},"h":{"type":"number","format":"double"},"interval":{"type":"string"},"l":{"type":"number","format":"double"},"o":{"type":"number","format":"double"},"symbol":{"type":"string"},"t":{"type":"integer","format":"int64"},"type":{"type":"string"}},"title":"OHLCBar"},"OHLCSubscribeRequest":{"type":"object","properties":{"intervals":{"type":"array","description":"Identifies intervals for subscription. Available: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w. Default: 1m.","items":{"type":"string"}},"symbols":{"type":"array","description":"Identifies symbols for subscription.","items":{"type":"string"}},"type":{"type":"string","description":"Type of candlestick. Available: classic, heikin-ashi."}},"title":"OHLCSubscribeRequest","description":"Class representing an OHLC market data subscription."},"OpenOrdersReponse":{"type":"object","properties":{"openOrders":{"type":"array","items":{"$ref":"#/definitions/QueryOrderResponse"}}},"title":"OpenOrdersReponse"},"OptionalAuthRequest":{"type":"object","properties":{"apiKey":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"OptionalAuthRequest"},"OvernightRate":{"type":"object","properties":{"longRate":{"type":"number","format":"double"},"shortRate":{"type":"number","format":"double"}},"title":"OvernightRate"},"PingRequest":{"type":"object","title":"PingRequest"},"PingResponse":{"type":"object","title":"PingResponse"},"PositionDto":{"type":"object","required":["accountId","closePrice","closeQuantity","createdTimestamp","currency","id","instrumentId","margin","openPrice","openQuantity","openTimestamp","orderId","state"],"properties":{"accountId":{"type":"string"},"closePrice":{"type":"number"},"closeQuantity":{"type":"number"},"closeTimestamp":{"type":"integer","format":"int64"},"cost":{"type":"number"},"createdTimestamp":{"type":"integer","format":"int64"},"currency":{"type":"string"},"currentTrailingPrice":{"type":"number"},"currentTrailingPriceUpdatedTimestamp":{"type":"integer","format":"int64"},"dividend":{"type":"number"},"fee":{"type":"number"},"guaranteedStopLoss":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"instrumentId":{"type":"integer","format":"int64"},"margin":{"type":"number"},"openPrice":{"type":"number"},"openQuantity":{"type":"number"},"openTimestamp":{"type":"integer","format":"int64"},"orderId":{"type":"string","format":"uuid"},"rpl":{"type":"number"},"rplConverted":{"type":"number"},"state":{"type":"string","enum":["ACTIVE","INACTIVE","INVALID"]},"stopLoss":{"type":"number"},"swap":{"type":"number"},"swapConverted":{"type":"number"},"symbol":{"type":"string"},"takeProfit":{"type":"number"},"trailingQuotedPrice":{"type":"number"},"trailingStopLoss":{"type":"boolean"},"type":{"type":"string","enum":["HEDGE","NET"]},"upl":{"type":"number"},"uplConverted":{"type":"number"}},"title":"PositionDto"},"PositionExecutionReportDto":{"type":"object","required":["accountCurrency","accountId","createdTimestamp","currency","execId","execTimestamp","instrumentId","positionId","source","status"],"properties":{"accountCurrency":{"type":"string"},"accountId":{"type":"integer","format":"int64"},"createdTimestamp":{"type":"integer","format":"int64"},"currency":{"type":"string"},"execId":{"type":"string"},"execTimestamp":{"type":"integer","format":"int64"},"executionType":{"type":"string","enum":["GTC","IOC"]},"fee":{"type":"number"},"feeDetails":{"type":"object","additionalProperties":{"type":"number"}},"fxRate":{"type":"number"},"gSL":{"type":"boolean"},"instrumentId":{"type":"integer","format":"int64"},"positionId":{"type":"string"},"price":{"type":"number"},"quantity":{"type":"number"},"rejectReason":{"type":"string","enum":["ACCOUNT_NOT_FOUND","CLOSED_MARKET","CLOSE_ONLY","ENGINE_BUSY","HEDGING_MODE_GSL","INSTRUMENT_NOT_AVAILABLE","INSTRUMENT_NOT_FOUND","INVALID_ORDER","INVALID_ORDER_QTY","INVALID_PRICE","LONG_ONLY","OFF_MARKET","ORDER_NOT_FOUND","ORIGINAL_GSL_UPDATE","POSITION_NOT_FOUND","RC_INSTRUMENT_CLIENT_MOP","RC_INSTRUMENT_GLOBAL_MOP","RC_NOT_ENOUGH_MARGIN","RC_NOT_FOUND","RC_NO_RATES","RC_SETTLEMENT","RC_UNKNOWN","REQUIRED_GSL","RISK_CHECK","THROTTLING","UNKNOWN"]},"rpl":{"type":"number"},"rplConverted":{"type":"number"},"source":{"type":"string","enum":["CLOSE_OUT","DEALER","SL","SYSTEM","TP","USER"]},"status":{"type":"string","enum":["CLOSED","DIVIDEND","MODIFIED","MODIFY_REJECT","OPENED","SWAP"]},"stopLoss":{"type":"number"},"swap":{"type":"number"},"swapConverted":{"type":"number"},"symbol":{"type":"string"},"takeProfit":{"type":"number"},"trailingStopLoss":{"type":"boolean"}},"title":"PositionExecutionReportDto"},"PositionHistoryRequest":{"type":"object","required":["apiKey","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"from":{"type":"integer","format":"int64"},"limit":{"type":"integer","format":"int32"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"symbol":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"to":{"type":"integer","format":"int64"}},"title":"PositionHistoryRequest"},"QueryOrderResponse":{"type":"object","properties":{"accountId":{"type":"string"},"executedQty":{"type":"string"},"expireTimestamp":{"type":"integer","format":"int64"},"guaranteedStopLoss":{"type":"boolean"},"icebergQty":{"type":"string"},"leverage":{"type":"boolean"},"margin":{"type":"number"},"orderId":{"type":"string"},"origQty":{"type":"string"},"price":{"type":"string"},"side":{"type":"string","enum":["BUY","SELL"]},"status":{"type":"string","enum":["CANCELED","EXPIRED","FILLED","NEW","PARTIALLY_FILLED","PENDING_CANCEL","REJECTED"]},"stopLoss":{"type":"number"},"symbol":{"type":"string"},"takeProfit":{"type":"number"},"time":{"type":"integer","format":"int64"},"timeInForce":{"type":"string","enum":["FOK","GTC","IOC"]},"trailingStopLoss":{"type":"boolean"},"type":{"type":"string","enum":["LIMIT","MARKET","STOP","TRAILING_STOP"]},"updateTime":{"type":"integer","format":"int64"},"working":{"type":"boolean"}},"title":"QueryOrderResponse"},"RateLimits":{"type":"object","properties":{"interval":{"type":"string"},"intervalNum":{"type":"integer","format":"int32"},"limit":{"type":"integer","format":"int32"},"rateLimitType":{"type":"string"}},"title":"RateLimits"},"RequestDto":{"type":"object","required":["accountId","createdTimestamp","id","rqType","state"],"properties":{"accountId":{"type":"string"},"createdTimestamp":{"type":"integer","format":"int64"},"id":{"type":"integer","format":"int64"},"orderId":{"type":"string"},"positionId":{"type":"string"},"rejectReason":{"type":"string","enum":["ACCOUNT_NOT_FOUND","CLOSED_MARKET","CLOSE_ONLY","ENGINE_BUSY","HEDGING_MODE_GSL","INSTRUMENT_NOT_AVAILABLE","INSTRUMENT_NOT_FOUND","INVALID_ORDER","INVALID_ORDER_QTY","INVALID_PRICE","LONG_ONLY","OFF_MARKET","ORDER_NOT_FOUND","ORIGINAL_GSL_UPDATE","POSITION_NOT_FOUND","RC_INSTRUMENT_CLIENT_MOP","RC_INSTRUMENT_GLOBAL_MOP","RC_NOT_ENOUGH_MARGIN","RC_NOT_FOUND","RC_NO_RATES","RC_SETTLEMENT","RC_UNKNOWN","REQUIRED_GSL","RISK_CHECK","THROTTLING","UNKNOWN"]},"rqType":{"type":"string","enum":["ORDER_CANCEL","ORDER_MODIFY","ORDER_NEW","POSITION_MODIFY"]},"state":{"type":"string","enum":["CANCELLED","PENDING","PROCESSED"]}},"title":"RequestDto"},"ServerTime":{"type":"object","properties":{"serverTime":{"type":"integer","format":"int64"}},"title":"ServerTime"},"SignedBySymbolRequest":{"type":"object","required":["apiKey","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"symbol":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"SignedBySymbolRequest"},"SignedRequest":{"type":"object","required":["apiKey","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"timestamp":{"type":"integer","format":"int64"}},"title":"SignedRequest"},"SubscribeRequest":{"type":"object","properties":{"symbols":{"type":"array","description":"Identifies symbols for subscription.","items":{"type":"string"}}},"title":"SubscribeRequest","description":"Class representing an subscription."},"SubscribeResponse":{"type":"object","properties":{"errorCode":{"type":"string"},"subscriptions":{"type":"object","additionalProperties":{"type":"string"}}},"title":"SubscribeResponse"},"SymbolFilter":{"type":"object","properties":{"filterType":{"type":"string"}},"title":"SymbolFilter"},"SymbolRequest":{"type":"object","properties":{"symbol":{"type":"string"}},"title":"SymbolRequest"},"Ticker24HResponse":{"type":"object","properties":{"tickers":{"type":"array","items":{"$ref":"#/definitions/Ticker24hr"}}},"title":"Ticker24HResponse"},"Ticker24hr":{"type":"object","properties":{"askPrice":{"type":"string"},"bidPrice":{"type":"string"},"closeTime":{"type":"integer","format":"int64"},"highPrice":{"type":"string"},"lastPrice":{"type":"string"},"lastQty":{"type":"string"},"lowPrice":{"type":"string"},"openPrice":{"type":"string"},"openTime":{"type":"integer","format":"int64"},"prevClosePrice":{"type":"string"},"priceChange":{"type":"string"},"priceChangePercent":{"type":"string"},"quoteVolume":{"type":"string"},"symbol":{"type":"string"},"volume":{"type":"string"},"weightedAvgPrice":{"type":"string"}},"title":"Ticker24hr"},"TradeEventReq":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"orderId":{"type":"string"},"price":{"type":"number","format":"double"},"size":{"type":"number","format":"double"},"symbol":{"type":"string"},"ts":{"type":"integer","format":"int64"}},"title":"TradeEventReq"},"TradeEventRes":{"type":"object","properties":{"buyer":{"type":"boolean"},"id":{"type":"integer","format":"int32"},"orderId":{"type":"string"},"price":{"type":"number","format":"double"},"size":{"type":"number","format":"double"},"symbol":{"type":"string"},"ts":{"type":"integer","format":"int64"}},"title":"TradeEventRes"},"TradingFeesResponse":{"type":"object","properties":{"fee":{"type":"number","format":"double"},"name":{"type":"string"},"overnightFeeTimestamp":{"type":"integer","format":"int64"},"overnightRates":{"$ref":"#/definitions/OvernightRate"},"symbol":{"type":"string"}},"title":"TradingFeesResponse"},"TradingFeesResponseWS":{"type":"object","properties":{"fees":{"type":"array","items":{"$ref":"#/definitions/TradingFeesResponse"}}},"title":"TradingFeesResponseWS"},"TradingLimitsResponse":{"type":"object","properties":{"lastPrice":{"type":"number"},"maxVolume":{"type":"number","format":"double"},"minStep":{"type":"number","format":"double"},"minVolume":{"type":"number","format":"double"},"name":{"type":"string"},"symbol":{"type":"string"},"tickSize":{"type":"number","format":"double"}},"title":"TradingLimitsResponse"},"TradingLimitsResponseWS":{"type":"object","properties":{"limits":{"type":"array","items":{"$ref":"#/definitions/TradingLimitsResponse"}}},"title":"TradingLimitsResponseWS"},"TradingOrderUpdateResponse":{"type":"object","required":["requestId","state"],"properties":{"requestId":{"type":"integer","format":"int64"},"state":{"type":"string","enum":["CANCELLED","PENDING","PROCESSED"]}},"title":"TradingOrderUpdateResponse"},"TradingPositionCloseAllResponse":{"type":"object","properties":{"request":{"type":"array","items":{"$ref":"#/definitions/RequestDto"}}},"title":"TradingPositionCloseAllResponse"},"TradingPositionHistoryResponse":{"type":"object","properties":{"history":{"type":"array","items":{"$ref":"#/definitions/PositionExecutionReportDto"}}},"title":"TradingPositionHistoryResponse"},"TradingPositionListResponse":{"type":"object","properties":{"positions":{"type":"array","items":{"$ref":"#/definitions/PositionDto"}}},"title":"TradingPositionListResponse"},"TradingPositionUpdateResponse":{"type":"object","required":["requestId","state"],"properties":{"requestId":{"type":"integer","format":"int64"},"state":{"type":"string","enum":["CANCELLED","PENDING","PROCESSED"]}},"title":"TradingPositionUpdateResponse"},"TransactionDTOResponse":{"type":"object","properties":{"amount":{"type":"number"},"balance":{"type":"number"},"blockchainTransactionHash":{"type":"string"},"commission":{"type":"number"},"currency":{"type":"string"},"id":{"type":"integer","format":"int64"},"paymentMethod":{"type":"string"},"status":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"type":{"type":"string"}},"title":"TransactionDTOResponse"},"TransactionsRequest":{"type":"object","required":["apiKey","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"endTime":{"type":"integer","format":"int64"},"limit":{"type":"integer","format":"int32"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"startTime":{"type":"integer","format":"int64"},"timestamp":{"type":"integer","format":"int64"}},"title":"TransactionsRequest"},"TransactionsResponse":{"type":"object","properties":{"transactions":{"type":"array","items":{"$ref":"#/definitions/TransactionDTOResponse"}}},"title":"TransactionsResponse"},"UpdateTradingOrderRequest":{"type":"object","required":["apiKey","orderId","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"expireTimestamp":{"type":"integer","format":"int64"},"guaranteedStopLoss":{"type":"boolean"},"newPrice":{"type":"number"},"orderId":{"type":"string"},"profitDistance":{"type":"number"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"stopDistance":{"type":"number"},"stopLoss":{"type":"number"},"takeProfit":{"type":"number"},"timestamp":{"type":"integer","format":"int64"},"trailingStopLoss":{"type":"boolean"}},"title":"UpdateTradingOrderRequest"},"UpdateTradingPositionRequest":{"type":"object","required":["apiKey","positionId","signature","timestamp"],"properties":{"apiKey":{"type":"string"},"guaranteedStopLoss":{"type":"boolean"},"positionId":{"type":"string"},"profitDistance":{"type":"number"},"recvWindow":{"type":"integer","format":"int64","maximum":60000,"exclusiveMaximum":false},"signature":{"type":"string"},"stopDistance":{"type":"number"},"stopLoss":{"type":"number"},"takeProfit":{"type":"number"},"timestamp":{"type":"integer","format":"int64"},"trailingStopLoss":{"type":"boolean"}},"title":"UpdateTradingPositionRequest"}}}
docs/market_intelligence/builds/build-015-3-common-models-engine-registration.md:116:enabled_by_default
docs/market_intelligence/builds/build-006-1-common-models-engine-metadata.md:119:    enabled_by_default: bool = True
docs/market_intelligence/builds/build-006-1-common-models-engine-metadata.md:174:### enabled_by_default
((.venv) ) segeba@mbpbsg dzentra_bot % 