From 57f782f2f501339599a91350b6d3e6daf8b1f604 Mon Sep 17 00:00:00 2001 From: Jeremy <365354+2pd@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:58:38 +1100 Subject: [PATCH] v1.20.0 release (#52) --- CHANGELOG.md | 5 ++ spot_api.yaml | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1352160..e3c8e74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.20.0 - 2023-11-23 +### Added +- `GET /sapi/v1/capital/deposit/address/list` +- `GET /sapi/v1/margin/leverageBracket` + ## 1.19.0 - 2023-11-15 ### Added - `GET /sapi/v1/loan/vip/request/interestRate` diff --git a/spot_api.yaml b/spot_api.yaml index bf54c91..9defdeb 100644 --- a/spot_api.yaml +++ b/spot_api.yaml @@ -6061,6 +6061,75 @@ paths: application/json: schema: $ref: '#/components/schemas/error' + /sapi/v1/margin/leverageBracket: + get: + summary: Query Liability Coin Leverage Bracket in Cross Margin Pro Mode (MARKET_DATA) + description: |- + Liability Coin Leverage Bracket in Cross Margin Pro Mode + + Weight(IP): 1 + tags: + - Margin + security: + - ApiKeyAuth: [] + responses: + '200': + description: Leverage info + content: + application/json: + schema: + type: array + items: + type: object + properties: + assetNames: + type: array + items: + type: string + example: "BTC" + rank: + type: integer + example: 1 + brackets: + type: array + items: + type: object + properties: + leverage: + type: integer + example: 10 + maxDebt: + type: number + format: double + example: 1000000.00000000 + maintenanceMarginRate: + type: number + format: double + example: 0.02000000 + initialMarginRate: + type: number + format: double + example: 0.1112 + fastNum: + type: number + format: double + example: 60000.000 + required: + - leverage + - maxDebt + - maintenanceMarginRate + - initialMarginRate + - fastNum + required: + - assetNames + - rank + - brackets + '400': + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/error' /sapi/v1/system/status: get: summary: System Status (System) @@ -9015,6 +9084,68 @@ paths: application/json: schema: $ref: '#/components/schemas/error' + /sapi/v1/capital/deposit/address/list: + get: + summary: Fetch deposit address list with network (USER_DATA) + description: |- + Fetch deposit address list with network. + + Weight(IP): 10 + tags: + - Wallet + parameters: + - name: coin + in: query + required: true + schema: + type: string + example: "BTC" + - name: network + in: query + schema: + type: string + example: "BTC" + - $ref: '#/components/parameters/recvWindow' + - $ref: '#/components/parameters/timestamp' + - $ref: '#/components/parameters/signature' + security: + - ApiKeyAuth: [] + responses: + '200': + description: Coin address + content: + application/json: + schema: + type: array + items: + type: object + properties: + coin: + type: string + example: "ETH" + address: + type: string + example: "0xD316E95Fd9E8E237Cb11f8200Babbc5D8D177BA4" + isDefault: + type: integer + format: int32 + example: 1 + required: + - coin + - address + - isDefault + '400': + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/error' + '401': + description: Unauthorized Request + content: + application/json: + schema: + $ref: '#/components/schemas/error' /sapi/v1/sub-account/status: get: summary: Sub-account's Status on Margin/Futures (For Master Account)