From 0ba86e7b65262ca4beac78e03b14c0ce645fade7 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Mon, 11 Dec 2023 19:14:43 +0800 Subject: [PATCH 01/20] Update index.html.md --- source/index.html.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index 86cc559..a4812d7 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,9 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2023-12-11** +- 查看子账户列表接口新增返回参数:子账户uid + ## **2023-11-10** - 新增用户站内转账接口、查询用户内部转账历史接口 @@ -1308,12 +1311,14 @@ GET /api/v3/sub-account/list?timestamp={{timestamp}}&signature={{signature}} { "subAccount":"subAccount1", "isFreeze":false,//是否冻结 - "createTime":1544433328000 + "createTime":1544433328000, + "uid": "49910511" }, { "subAccount":"subAccount2", "isFreeze":false, - "createTime":1544433328000 + "createTime":1544433328000, + "uid": "91921059" } ] } @@ -1346,6 +1351,8 @@ GET /api/v3/sub-account/list?timestamp={{timestamp}}&signature={{signature}} | subAccount | string | 子账户名称 | | isFreeze | string | 是否冻结 | | createTime | long | 创建时间 | +| uid | string | 子账户uid | + ## 创建子账户的APIkey From d953cdbaaa67f56c4e3624cb03c18fc9c1c02eaf Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Mon, 8 Jan 2024 14:17:54 +0800 Subject: [PATCH 02/20] Update index.html.md --- source/index.html.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index a4812d7..27a9d62 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,10 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-01-01** +- K线查询支持周线 +- 查询充值和提现历史接口调整查询时间窗口 + ## **2023-12-11** - 查看子账户列表接口新增返回参数:子账户uid @@ -2686,14 +2690,15 @@ get /api/v3/capital/deposit/hisrec?coin=EOS×tamp={{timestamp}}&signature={{ | :------ | :-------- |:-----| :---------- | |coin|string| 否 |币种| |status|string| 否 |状态| -|startTime|string| 否 |默认当前时间30天前的时间| +|startTime|string| 否 |默认当前时间7天前的时间| |endTime|string| 否 |默认当前时间戳,13位| |limit|string| 否 |默认:1000,最大1000| |timestamp|string| 是 |时间戳| |signature|string| 是 |签名| -请注意`startTime` 与 `endTime` 的默认时间戳,保证请求时间间隔不超过30天. - +1. 默认返回最近7天的记录. +2. `startTime` 与 `endTime` 的默认时间戳,保证请求时间间隔不超过7天. +3. 做多可查询90天内的记录. **返回参数** | 参数名 | 说明 | @@ -2753,14 +2758,15 @@ get /api/v3/capital/withdraw/history?coin=EOS×tamp={{timestamp}}&signature= |coin|string| 否 |币种| |status|string| 否 |提币状态| |limit|string| 否 |默认:1000, 最大:1000| -|startTime|string| 否 |默认当前时间30天前的时间戳| +|startTime|string| 否 |默认当前时间7天前的时间戳| |endTime|string| 否 |默认当前时间戳| |timestamp|string| 是 |时间戳| |signature|string| 是 |签名| -1. 支持多网络提币前的历史记录可能不会返回`network`字段. -2. 请注意`startTime` 与 `endTime` 的默认时间戳,保证请求时间间隔不超过30天. - +1. 默认返回最近7天的记录. +2. `startTime` 与 `endTime` 的默认时间戳,保证请求时间间隔不超过7天. +3. 做多可查询90天内的记录. +4. 支持多网络提币前的历史记录可能不会返回`network`字段. **返回参数** | 参数名 | 说明 | @@ -5074,6 +5080,7 @@ startTime、endTime若不填写,则预设查询T-7~T日內数据。 - 60m 1小时 - 4h 4小时 - 1d 1天 +- 1w 1周 - 1M 1月 ### 变动类型 From be8d587ee8935dc267225b8a30372c40eea0df00 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Wed, 10 Jan 2024 01:25:52 +0800 Subject: [PATCH 03/20] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9282d8..99beff8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - ruby-version: [2.6, 2.7, 3.0] + ruby-version: [3.0] steps: - uses: actions/checkout@v2 From 5ab292a0ed75d4f38c8834bbee1a89a248b7b597 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Wed, 10 Jan 2024 15:08:20 +0800 Subject: [PATCH 04/20] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99beff8..05d3017 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - ruby-version: [3.0] + ruby-version: [3.0,3.1] steps: - uses: actions/checkout@v2 From 46d90bc5aed6519cc84bd757a2d3c778a051accf Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Wed, 10 Jan 2024 15:14:25 +0800 Subject: [PATCH 05/20] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05d3017..ba682bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - ruby-version: [3.0,3.1] + ruby-version: [3.1] steps: - uses: actions/checkout@v2 From 06671ed52c6fc1a257699d9890d07be89fe2ab6c Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Wed, 17 Jan 2024 11:10:37 +0800 Subject: [PATCH 06/20] Update index.html.md --- source/index.html.md | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/source/index.html.md b/source/index.html.md index 27a9d62..a14570c 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,9 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-01-12** +- 新增查询子账户资产接口 + ## **2024-01-01** - K线查询支持周线 - 查询充值和提现历史接口调整查询时间窗口 @@ -1646,6 +1649,58 @@ get /api/v3/capital/sub-account/universalTransfer |timestamp|number|划转时间| |totalCount|number|| +## 查询子账户资产 + +> 请求示例 + +``` +get /api/v3/sub-account/asset?subAccount=account1&accountType=SPOT×tamp={{timestamp}}&signature={{signature}} +``` +> 返回示例 + +```json +{ + "balances": [ + { + "asset": "MX", + "free": "3", + "locked": "0" + }, + { + "asset": "BTC", + "free": "0.0003", + "locked": "0" + } + ] +} +``` +**HTTP请求** + +- **GET** ```/api/v3/sub-account/asset``` + +**接口权限要求:** 资金划转读 / SPOT_TRANSFER_R + +**权重(IP):** 1 + +**请求参数** + +| 参数名 | 数据类型| 是否必须 | 说明 | +| :------ | :-------- | :-------- | :---------- | +| subAccount | string | 是 | 子账户名称,仅支持单个子账户查询 | +| accountType|string|是|划出账户类型,现货/合约,枚举值:"SPOT","FUTURES",当前仅支持SPOT| +| timestamp|string|是|时间戳| +| signature|string|是|签名| + + +**返回参数** + +| 参数名 |类型 | 说明| +| :------------ | :-------- | :--------| +|balances|string|余额| +|asset|string|币种| +|free|string|可用数量| +|locked|string|冻结数量| + # 现货账户和交易接口 From 41364d45ab0b607112b0ab194d7d243be2205997 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Wed, 17 Jan 2024 11:19:16 +0800 Subject: [PATCH 07/20] Update index.html.md --- source/index.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.html.md b/source/index.html.md index a14570c..6724016 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -1687,7 +1687,7 @@ get /api/v3/sub-account/asset?subAccount=account1&accountType=SPOT×tamp={{t | 参数名 | 数据类型| 是否必须 | 说明 | | :------ | :-------- | :-------- | :---------- | | subAccount | string | 是 | 子账户名称,仅支持单个子账户查询 | -| accountType|string|是|划出账户类型,现货/合约,枚举值:"SPOT","FUTURES",当前仅支持SPOT| +| accountType|string|是|账户类型,现货/合约,枚举值:"SPOT","FUTURES",当前仅支持SPOT| | timestamp|string|是|时间戳| | signature|string|是|签名| From fcdb120c5662cb2689e6e6133739118072149c14 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Sun, 25 Feb 2024 12:20:17 +0800 Subject: [PATCH 08/20] Update index.html.md --- source/index.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.html.md b/source/index.html.md index 6724016..e73448b 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -5135,7 +5135,7 @@ startTime、endTime若不填写,则预设查询T-7~T日內数据。 - 60m 1小时 - 4h 4小时 - 1d 1天 -- 1w 1周 +- 1W 1周 - 1M 1月 ### 变动类型 From 4f85b9c1bfea11f7a8b08ad6a6c1af9e32ce9425 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Tue, 5 Mar 2024 18:21:49 +0800 Subject: [PATCH 09/20] Update index.html.md --- source/index.html.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index e73448b..3348b75 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -1647,7 +1647,7 @@ get /api/v3/capital/sub-account/universalTransfer |toSymbol|string|杠杆转出交易对| |status|string|划转状态:成功,失败,划转中,中断| |timestamp|number|划转时间| -|totalCount|number|| + ## 查询子账户资产 @@ -2320,10 +2320,6 @@ GET /api/v3/account?timestamp={{timestamp}}&signature={{signature}} ```json { - "makerCommission": 20, - "takerCommission": 20, - "buyerCommission": 0, - "sellerCommission": 0, "canTrade": true, "canWithdraw": true, "canDeposit": true, @@ -2366,10 +2362,6 @@ GET /api/v3/account?timestamp={{timestamp}}&signature={{signature}} | 参数名 | 说明 | | :---------------- | :---------- | -| makerCommission | maker 费率 | -| takerCommission | taker 费率 | -| buyerCommission | | -| sellerCommission | | | canTrade | 是否可交易 | | canWithdraw | 是否可提现 | | canDeposit | 是否可充值 | From 36157b683c3bc3724a1290262331cfce758aa8f7 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Tue, 12 Mar 2024 14:54:20 +0800 Subject: [PATCH 10/20] Update index.html.md --- source/index.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index 3348b75..1ed4217 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -3367,7 +3367,7 @@ get {{api_url}}/api/v3/capital/convert?timestamp={{timestamp}}&signature={{signa |totalPage|int|总页数| -## 用户站内转账接口 + ## 查询用户内部转账历史接口 From c9fd35aa0cce6506dee75c2a0c550a7c05c31ca2 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Mon, 8 Apr 2024 17:01:32 +0800 Subject: [PATCH 11/20] Update index.html.md --- source/index.html.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/index.html.md b/source/index.html.md index 1ed4217..88662c5 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,9 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-04-08** +- 获取提币历史接口更新返回参数 + ## **2024-01-12** - 新增查询子账户资产接口 @@ -2786,7 +2789,11 @@ get /api/v3/capital/withdraw/history?coin=EOS×tamp={{timestamp}}&signature= "confirmNo": null, "applyTime": 1665300874000, "remark": "", - "memo": "MX10086" + "memo": "MX10086", + "transHash": "0x0ced593b8b5adc9f6003a934d0d7335456a7ed772ea5547beda4f33a065c", + "updateTime": 1712134082000, + "coinId": "128f589271cb491b03e71e6323eb7be", + "vcoinId": "af42c6414b9a43869ce30fd51660f" } ] ``` @@ -2832,6 +2839,9 @@ get /api/v3/capital/withdraw/history?coin=EOS×tamp={{timestamp}}&signature= |txId| 提现交易id| |remark|提现记录备注| |memo|memo| +|transHash|交易hash| +|coinId|资产id| +|vcoinId|币种id| ## 生成充值地址 (支持多网络) From 4df41d8321ec4819d140964b4c6bb3232bc6f6b8 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Mon, 27 May 2024 19:46:38 +0800 Subject: [PATCH 12/20] Update index.html.md --- source/index.html.md | 53 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index 88662c5..7573e5e 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,9 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-05-15** +- 新增获取手续费率接口 + ## **2024-04-08** - 获取提币历史接口更新返回参数 @@ -2453,7 +2456,7 @@ GET /api/v3/myTrades?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature > 请求示例 ``` -post api/v3/mxDeduct/enable +post api/v3/mxDeduct/enable?timestamp={{timestamp}}&signature={{signature}} ``` > 返回示例 @@ -2498,7 +2501,7 @@ post api/v3/mxDeduct/enable > 请求示例 ``` -get api/v3/mxDeduct/enable +get api/v3/mxDeduct/enable?timestamp={{timestamp}}&signature={{signature}} ``` > 返回示例 @@ -2535,6 +2538,52 @@ get api/v3/mxDeduct/enable | :------------ | :-------- | :--------| |mxDeductEnable|boolean|是否开启了MX抵扣,true:已开启,false:已关闭.| +## 查看手续费率 + +> 请求示例 + +``` +get api/v3/tradeFee?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature}} +``` +> 返回示例 + +```json +{ + "data":{ + "makerCommission":0.003000000000000000, + "takerCommission":0.003000000000000000 + }, + "code":0, + "msg":"success", + "timestamp":1669109672717 +} +``` +**HTTP请求** + +- **GET** ```api/v3/tradeFee``` + +**接口权限要求:** 账户信息读 / SPOT_ACCOUNT_R + +**权重(IP):** 20 + +**请求参数** + +| 参数名 | 数据类型| 是否必须 | 说明 | +| :------ | :-------- | :-------- | :---------- | +|symbol|string|yes|交易对| +|recvWindow|long|no|同步时间| +|timestamp|long|yes|时间戳| +|signature|string|yes|签名| + + +**返回参数** + +| 参数名 |类型 | 说明| +| :------------ | :-------- | :--------| +|makerCommission|long|用户maker费率| +|takerCommission|long|用户taker费率| + + # 钱包接口 ## 查询币种信息 From 0721523ddc6afcb030b79285bd56377af99c1e93 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Sun, 9 Jun 2024 12:22:49 +0800 Subject: [PATCH 13/20] Update index.html.md --- source/index.html.md | 79 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 67 insertions(+), 12 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index 7573e5e..08fae8d 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,10 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-06-09** +- 查询币种信息接口新增币种网络新参数,旧币种网络参数即将下线 +- 新增提币新接口,旧提币接口即将下线 + ## **2024-05-15** - 新增获取手续费率接口 @@ -2617,7 +2621,8 @@ Get /api/v3/capital/config/getall "sameAddress": false, "contract": "TN3W4H6rK2ce4vX9YnFQHwKENnHjoxbm9", "withdrawTips": "Both a MEMO and an Address are required.", - "depositTips": "Both a MEMO and an Address are required." + "depositTips": "Both a MEMO and an Address are required.", + "netWork": "EOS" }, { "coin": "BTC", @@ -2634,7 +2639,8 @@ Get /api/v3/capital/config/getall "sameAddress": false, "contract": "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c", "withdrawTips": null, - "depositTips": null + "depositTips": null, + "netWork": "BTC" } ] }, @@ -2661,32 +2667,32 @@ Get /api/v3/capital/config/getall | 参数名 | 说明 | | :------------ | :------------ | |depositEnable|是否可充值| -|network|币种所支持的网络| |withdrawEnable|是否可提币| |withdrawFee|提币手续费| |withdrawMax|最大提币限额| |withdrawMin|最小提币限额| |contract|币种智能合约地址| +|network|币种所支持的网络(旧参数,即将下线,建议提币使用提币新接口)| +|netWork|币种所支持的网络(新参数,适用于提币新接口)| + -## 提币 +## 提币(新增) > 请求示例 ``` -post /api/v3/capital/withdraw/apply?coin=EOS&address=zzqqqqqqqqqq&amount=10&network=EOS&memo=MX10086×tamp={{timestamp}}&signature={{signature}} +post /api/v3/capital/withdraw?coin=EOS&address=zzqqqqqqqqqq&amount=10&network=EOS&memo=MX10086×tamp={{timestamp}}&signature={{signature}} ``` > 返回示例 ```json -[ - { +{ "id":"7213fea8e94b4a5593d507237e5a555b" - } -] +} ``` **HTTP请求** -- **POST** ```/api/v3/capital/withdraw/apply``` +- **POST** ```/api/v3/capital/withdraw``` **接口权限要求:** 钱包提现相关写 / SPOT_WITHDRAW_W @@ -2698,7 +2704,8 @@ post /api/v3/capital/withdraw/apply?coin=EOS&address=zzqqqqqqqqqq&amount=10&netw | :------ | :-------- |:-----|:-----------------| |coin|string| 是 | 币种 | |withdrawOrderId|string| 否 | 自定义提币ID | -|network|string| 否 | 提币网络 | +|netWork|string| 否 | 提币网络 | +|contractAddress|string| 否 | 币种智能合约地址 | |address|string| 是 | 提币地址 | |memo|string| 否 | 如地址中需求memo,则此处必传 | |amount|string| 是 | 数量 | @@ -2707,7 +2714,7 @@ post /api/v3/capital/withdraw/apply?coin=EOS&address=zzqqqqqqqqqq&amount=10&netw |signature|string| 是 | 签名 | -可以在接口 `Get /api/v3/capital/config/getall`的返回值中某币种的`networkList`获取`network`网络字段。 +可以在接口 `Get /api/v3/capital/config/getall`的返回值中某币种的`networkList`获取`netWork`网络字段。 **返回参数** @@ -3544,6 +3551,54 @@ get /api/v3/capital/transfer/internal?×tamp={{timestamp}}&signature={{signa |status |划转状态| |timestamp |划转时间| +## 提币(旧接口,即将下线) + +> 请求示例 + +``` +post /api/v3/capital/withdraw/apply?coin=EOS&address=zzqqqqqqqqqq&amount=10&network=EOS&memo=MX10086×tamp={{timestamp}}&signature={{signature}} +``` +> 返回示例 + +```json +[ + { + "id":"7213fea8e94b4a5593d507237e5a555b" + } +] +``` +**HTTP请求** + +- **POST** ```/api/v3/capital/withdraw/apply``` + +**接口权限要求:** 钱包提现相关写 / SPOT_WITHDRAW_W + +**权重(IP):** 1 + +**请求参数** + +| 参数名 | 数据类型| 是否必须 | 说明 | +| :------ | :-------- |:-----|:-----------------| +|coin|string| 是 | 币种 | +|withdrawOrderId|string| 否 | 自定义提币ID | +|network|string| 否 | 提币网络 | +|address|string| 是 | 提币地址 | +|memo|string| 否 | 如地址中需求memo,则此处必传 | +|amount|string| 是 | 数量 | +|remark|string| 否 | 备注 | +|timestamp|string| 是 | 时间戳 | +|signature|string| 是 | 签名 | + + +可以在接口 `Get /api/v3/capital/config/getall`的返回值中某币种的`networkList`获取`network`网络字段。 + + +**返回参数** + +| 参数名 | 说明 | +| :------------ | :-------- | +|id|提币ID| + # ETF接口 From 5158e77172f9d0a5c3543a37b817d1b632d4a30d Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Tue, 9 Jul 2024 17:00:41 +0800 Subject: [PATCH 14/20] Update index.html.md --- source/index.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.html.md b/source/index.html.md index 08fae8d..593b959 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -2431,7 +2431,7 @@ GET /api/v3/myTrades?symbol=MXUSDT×tamp={{timestamp}}&signature={{signature | orderId | string | 否 | 必须和symbol一起使用 | | startTime | long | 否 | | | endTime | long | 否 | | -| limit | int | 否 | 默认 500; 最大 1000; | +| limit | int | 否 | 默认 100; 最大 100; | | recvWindow | long | 否 | | | timestamp | long | 是 | | From 33461d8b4d1800a9260e97ddea660da02bafba68 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Mon, 22 Jul 2024 23:31:39 +0800 Subject: [PATCH 15/20] Update index.html.md --- source/index.html.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index 593b959..bee01e8 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -1837,8 +1837,7 @@ POST /api/v3/order?symbol=MXUSDT&side=BUY&type=LIMIT&quantity=50&price=0.1× 其他说明: -MARKET:当type是market时,若为买单,则quoteOrderQty,为必填参数。 -若为卖单,quantity为必填参数, +MARKET:当type是market时,不论是买单或者卖单,quoteOrderQty和quantity参数任选其一。 - 比如在`BTCUSDT`上下一个市价买单, 明确的是买入时想要花费的计价资产数量。此时的报单数量将会以市场流动性和`quoteOrderQty`被计算出来(实际成交数量以最终订单详情为准)。 以`BTCUSDT`为例,`quoteOrderQty=100`:下买单的时候, 订单会尽可能的买进价值100USDT的BTC. @@ -4946,7 +4945,7 @@ get /api/v3/rebate/affiliate/commission/detail?timestamp={{timestamp}}&signature 若startTime和endTime均未发送,返回T-7~T的日期(近8天內日期)的数据,type不填则返回全部种类数据。 - +startTime、endTime若不填写,则预设查询T-7~T日內数据。 ## 查询直客页面数据(代理账户) From 7da0e7c14414eb5a5c0aca63c29da4f6eccf73aa Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Fri, 16 Aug 2024 14:46:32 +0800 Subject: [PATCH 16/20] Update index.html.md --- source/index.html.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index bee01e8..b6e4ecc 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,9 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-08-16** +- 交易规范信息接口更新返回参数 + ## **2024-06-09** - 查询币种信息接口新增币种网络新参数,旧币种网络参数即将下线 - 新增提币新接口,旧提币接口即将下线 @@ -515,7 +518,7 @@ quantity=1&price=11&recvWindow=5000×tamp=1644489390087 ### 限频说明 - 每个接口会标明是按照IP或者按照UID统计, 以及相应请求一次的权重值。不同接口拥有不同的权重,越消耗资源的接口权重就会越大。 -- **按IP和按UID(account)两种模式分别统计, 两者互相独立。按IP权重限频的接口,所有接口共用每分钟20000限制,按照UID统计的单接口权重总额是每分钟240000。** +- **按IP和按UID(account)两种模式分别统计, 两者互相独立。按IP权重限频的接口,所有接口共用500权重/10秒;按UID权重限频的接口,所有接口共用500权重/10秒。** ### 超频报错 @@ -810,7 +813,7 @@ GET /api/v3/exchangeInfo?symbol=BTCUSDT | rateLimits | Array | 频率限制 | | exchangeFilters | Array | 过滤器 | | symbol | String | 交易对 | -| status | String | 状态 | +| status | String | 状态:1 - 开放, 2 - 暂停, 3 - 下线 | | baseAsset | String | 交易币 | | baseAssetPrecision | Int | 交易币精度 | | quoteAsset | String | 计价币 | @@ -830,6 +833,7 @@ GET /api/v3/exchangeInfo?symbol=BTCUSDT | baseSizePrecision|string| 最小下单数量 | | quoteAmountPrecisionMarket |string| 市价最小下单金额 | | maxQuoteAmountMarket | String | 市价最大下单金额 | +| tradeSideType | String | 交易对可交易方向:1 - 全部, 2 - 仅买单, 3 - 仅卖单,4 - 关闭 | From f639afdb0b6ffc49d5e9128835f400ec707434ba Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Fri, 16 Aug 2024 14:48:22 +0800 Subject: [PATCH 17/20] Update index.html.md --- source/index.html.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/index.html.md b/source/index.html.md index b6e4ecc..43ab242 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -783,7 +783,8 @@ GET /api/v3/exchangeInfo?symbol=BTCUSDT "filters": [], "maxQuoteAmount": "5000000", "makerCommission": "0.002", - "takerCommission": "0.002" + "takerCommission": "0.002", + "tradeSideType":"1" } } From 482131135772ed088e07bda33c0ae0146a6a6e3a Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Wed, 9 Oct 2024 18:06:24 +0800 Subject: [PATCH 18/20] Update index.html.md --- source/index.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index 43ab242..b0eaf4c 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -3437,7 +3437,7 @@ get {{api_url}}/api/v3/capital/convert?timestamp={{timestamp}}&signature={{signa |totalPage|int|总页数| - + ## 查询用户内部转账历史接口 From b90d86a17fecf6546e9696aabad9bd2c36353a3b Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Thu, 17 Oct 2024 18:14:53 +0800 Subject: [PATCH 19/20] Update index.html.md --- source/index.html.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/source/index.html.md b/source/index.html.md index b0eaf4c..a863a42 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -75,6 +75,9 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 # 更新日志 +## **2024-10-17** +- 新增查询账户KYC状态接口 + ## **2024-08-16** - 交易规范信息接口更新返回参数 @@ -1720,6 +1723,43 @@ get /api/v3/sub-account/asset?subAccount=account1&accountType=SPOT×tamp={{t # 现货账户和交易接口 +## 查询账户KYC状态 + +> 请求示例 + +``` +GET /api/v3/kyc/status?timestamp={{timestamp}}&signature={{signature}} +``` + +> 返回示例 + +```json +{ +"status": "1" +} +``` +**HTTP请求** + +- **GET** ```/api/v3/kyc/status ``` + +**接口权限要求:** 账户读 / SPOT_ACCOUNT_READ + +**权重(IP):** 1 + +**请求参数** + +| 参数名 | 数据类型 | 是否必须 | 说明 | +| :---------- | :-------- | :-------- | :-------------------- | +|timestamp |string |是 | 时间戳 | +|signature |string |是 |签名 | + +**返回参数** + +| 参数名 | 数据类型 | 说明 | +| :------------ | :-------- |:-------------------------| +| status | string | 1:未kyc 2:初级kyc 3:高级kyc 4:机构kyc | + + ## 用户API交易对 获取用户可API交易的交易对 From 1472f484991957d5e591b059df9287957e8ff296 Mon Sep 17 00:00:00 2001 From: "ross.H" Date: Mon, 23 Dec 2024 04:15:40 +0800 Subject: [PATCH 20/20] Update index.html.md --- source/index.html.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index a863a42..ef6e262 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -62,7 +62,7 @@ MEXC致力于构建加密货币基础设施,提供有价值服务的API 经纪 **2. 独立经纪商:** 包括钱包商、行情资讯平台、聚合交易平台、券商和股票证券交易平台等,有自己独立用户,MEXC可以提供订单撮合系统、账户管理系统、结算系统以及母子账户系统等,独立经纪商可共享全站流动性和深度,获得高额手续费分润。 -合作请联系:broker@mexc.com +合作请联系:institution@mexc.com ## 联系我们 @@ -1905,7 +1905,7 @@ MARKET:当type是market时,不论是买单或者卖单,quoteOrderQty和qua ## 批量下单 -支持单次批量下20单,要求必须是同一交易对。 +支持单次批量下30单,要求必须是同一交易对。 > 请求示例 @@ -1962,7 +1962,7 @@ POST /api/v3/batchOrders?batchOrders=[{"type": "LIMIT_ORDER","price": "40000","q | 名称 | 类型 | 是否必需 | 说明 | | :--------------- | :------ | :------- | :--------------------- | -| batchOrders | LIST | 是 | 订单列表,最多支持20个订单(list of JSON格式填写订单参数,参考请求示例) | +| batchOrders | LIST | 是 | 订单列表,最多支持30个订单(list of JSON格式填写订单参数,参考请求示例) | | symbol | string | 是 | 交易对 | | side | ENUM | 是 | 详见枚举定义:订单方向 | | type | ENUM | 是 | 详见枚举定义:订单类型 | @@ -3644,7 +3644,7 @@ post /api/v3/capital/withdraw/apply?coin=EOS&address=zzqqqqqqqqqq&amount=10&netw |id|提币ID| -# ETF接口 + # Websocket 行情推送