skillpp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/COMPATIBILITY.md +58 -0
  2. package/LICENSE +21 -0
  3. package/README.md +307 -0
  4. package/README.zh-CN.md +307 -0
  5. package/SKILL.md +490 -0
  6. package/adapters/binance-ai.md +22 -0
  7. package/adapters/claude.md +21 -0
  8. package/adapters/gemini.md +26 -0
  9. package/adapters/gpt.md +28 -0
  10. package/adapters/kimi.md +26 -0
  11. package/adapters/mimo.md +22 -0
  12. package/adapters/openclaw.md +29 -0
  13. package/assets/skillpp-banner.png +0 -0
  14. package/package.json +59 -0
  15. package/pipelines.md +310 -0
  16. package/prompts/newbie-mode.md +48 -0
  17. package/prompts/router-prompt.md +32 -0
  18. package/prompts/universal-system-prompt.md +41 -0
  19. package/registry.md +209 -0
  20. package/rules.md +323 -0
  21. package/schemas/audit.schema.json +67 -0
  22. package/schemas/checkpoint.schema.json +86 -0
  23. package/schemas/handoff.schema.json +82 -0
  24. package/schemas/token.schema.json +36 -0
  25. package/scripts/compatibility-check.mjs +130 -0
  26. package/scripts/selftest.mjs +384 -0
  27. package/scripts/skillpp.mjs +448 -0
  28. package/scripts/validate-skillpp.mjs +140 -0
  29. package/skillpp.manifest.json +714 -0
  30. package/skills/audit-plus/SKILL.md +612 -0
  31. package/skills/binance/binance/CHANGELOG.md +112 -0
  32. package/skills/binance/binance/LICENSE.md +9 -0
  33. package/skills/binance/binance/SKILL.md +69 -0
  34. package/skills/binance/binance/references/algo.md +21 -0
  35. package/skills/binance/binance/references/alpha.md +9 -0
  36. package/skills/binance/binance/references/auth.md +32 -0
  37. package/skills/binance/binance/references/c2c.md +5 -0
  38. package/skills/binance/binance/references/convert.md +19 -0
  39. package/skills/binance/binance/references/copy-trading.md +6 -0
  40. package/skills/binance/binance/references/crypto-loan.md +27 -0
  41. package/skills/binance/binance/references/derivatives-options-streams.md +25 -0
  42. package/skills/binance/binance/references/derivatives-options.md +85 -0
  43. package/skills/binance/binance/references/derivatives-portfolio-margin-pro-streams.md +5 -0
  44. package/skills/binance/binance/references/derivatives-portfolio-margin-pro.md +34 -0
  45. package/skills/binance/binance/references/derivatives-portfolio-margin-streams.md +5 -0
  46. package/skills/binance/binance/references/derivatives-portfolio-margin.md +146 -0
  47. package/skills/binance/binance/references/dual-investment.md +15 -0
  48. package/skills/binance/binance/references/fiat.md +9 -0
  49. package/skills/binance/binance/references/futures-coin-streams.md +29 -0
  50. package/skills/binance/binance/references/futures-coin.md +109 -0
  51. package/skills/binance/binance/references/futures-usds-streams.md +35 -0
  52. package/skills/binance/binance/references/futures-usds.md +144 -0
  53. package/skills/binance/binance/references/gift-card.md +10 -0
  54. package/skills/binance/binance/references/margin-trading-streams.md +6 -0
  55. package/skills/binance/binance/references/margin-trading.md +101 -0
  56. package/skills/binance/binance/references/mining.md +17 -0
  57. package/skills/binance/binance/references/pay.md +5 -0
  58. package/skills/binance/binance/references/rebate.md +5 -0
  59. package/skills/binance/binance/references/simple-earn.md +56 -0
  60. package/skills/binance/binance/references/spot-streams.md +25 -0
  61. package/skills/binance/binance/references/spot.md +114 -0
  62. package/skills/binance/binance/references/staking.md +59 -0
  63. package/skills/binance/binance/references/sub-account.md +67 -0
  64. package/skills/binance/binance/references/vip-loan.md +27 -0
  65. package/skills/binance/binance/references/wallet.md +75 -0
  66. package/skills/binance/fiat/CHANGELOG.md +11 -0
  67. package/skills/binance/fiat/LICENSE.md +9 -0
  68. package/skills/binance/fiat/SKILL.md +169 -0
  69. package/skills/binance/fiat/references/authentication.md +126 -0
  70. package/skills/binance/fiat/references/sapi-endpoints.md +217 -0
  71. package/skills/binance/onchain-pay/.local.md.example +10 -0
  72. package/skills/binance/onchain-pay/CHANGELOG.md +20 -0
  73. package/skills/binance/onchain-pay/LICENSE.md +9 -0
  74. package/skills/binance/onchain-pay/SKILL.md +466 -0
  75. package/skills/binance/onchain-pay/references/authentication.md +92 -0
  76. package/skills/binance/onchain-pay/scripts/sign_and_call.sh +52 -0
  77. package/skills/binance/p2p/CHANGELOG.md +33 -0
  78. package/skills/binance/p2p/LICENSE.md +9 -0
  79. package/skills/binance/p2p/SKILL.md +1082 -0
  80. package/skills/binance/p2p/references/agent-sapi-api.md +795 -0
  81. package/skills/binance/p2p/references/authentication.md +100 -0
  82. package/skills/binance/payment/SKILL.md +824 -0
  83. package/skills/binance/payment/common.py +560 -0
  84. package/skills/binance/payment/payment_skill.py +86 -0
  85. package/skills/binance/payment/receive.py +109 -0
  86. package/skills/binance/payment/references/setup-guide.md +77 -0
  87. package/skills/binance/payment/requirements.txt +4 -0
  88. package/skills/binance/payment/send.py +952 -0
  89. package/skills/binance/payment/send_extension/__init__.py +43 -0
  90. package/skills/binance/payment/send_extension/base.py +48 -0
  91. package/skills/binance/payment/send_extension/c2c.py +193 -0
  92. package/skills/binance/payment/send_extension/pix.py +316 -0
  93. package/skills/binance/square-post/README.md +62 -0
  94. package/skills/binance/square-post/SKILL.md +171 -0
  95. package/skills/binance/square-post/scripts/lib.mjs +175 -0
  96. package/skills/binance/square-post/scripts/post-image.mjs +80 -0
  97. package/skills/binance/square-post/scripts/post-text.mjs +41 -0
  98. package/skills/binance/square-post/scripts/post-video.mjs +110 -0
  99. package/skills/binance/square-post/scripts/save-key.mjs +34 -0
  100. package/skills/binance-web3/binance-agentic-wallet/SKILL.md +150 -0
  101. package/skills/binance-web3/binance-agentic-wallet/references/authentication.md +136 -0
  102. package/skills/binance-web3/binance-agentic-wallet/references/limit-order.md +204 -0
  103. package/skills/binance-web3/binance-agentic-wallet/references/market-order.md +179 -0
  104. package/skills/binance-web3/binance-agentic-wallet/references/prediction.md +489 -0
  105. package/skills/binance-web3/binance-agentic-wallet/references/preflight.md +66 -0
  106. package/skills/binance-web3/binance-agentic-wallet/references/security.md +47 -0
  107. package/skills/binance-web3/binance-agentic-wallet/references/send.md +53 -0
  108. package/skills/binance-web3/binance-agentic-wallet/references/wallet-setting.md +86 -0
  109. package/skills/binance-web3/binance-agentic-wallet/references/wallet-view.md +312 -0
  110. package/skills/binance-web3/binance-agentic-wallet/references/x402-payment.md +259 -0
  111. package/skills/binance-web3/binance-tokenized-securities-info/SKILL.md +613 -0
  112. package/skills/binance-web3/crypto-market-rank/SKILL.md +91 -0
  113. package/skills/binance-web3/crypto-market-rank/references/cli.md +219 -0
  114. package/skills/binance-web3/crypto-market-rank/scripts/cli.mjs +149 -0
  115. package/skills/binance-web3/meme-rush/SKILL.md +72 -0
  116. package/skills/binance-web3/meme-rush/references/cli.md +158 -0
  117. package/skills/binance-web3/meme-rush/scripts/cli.mjs +101 -0
  118. package/skills/binance-web3/query-address-info/SKILL.md +61 -0
  119. package/skills/binance-web3/query-address-info/references/cli.md +56 -0
  120. package/skills/binance-web3/query-address-info/scripts/cli.mjs +132 -0
  121. package/skills/binance-web3/query-token-audit/SKILL.md +162 -0
  122. package/skills/binance-web3/query-token-info/SKILL.md +83 -0
  123. package/skills/binance-web3/query-token-info/references/cli.md +135 -0
  124. package/skills/binance-web3/query-token-info/scripts/cli.mjs +112 -0
  125. package/skills/binance-web3/trading-signal/SKILL.md +66 -0
  126. package/skills/binance-web3/trading-signal/references/cli.md +90 -0
  127. package/skills/binance-web3/trading-signal/scripts/cli.mjs +92 -0
  128. package/skills/four-meme/four-guard/API-Contract-TaxToken.md +277 -0
  129. package/skills/four-meme/four-guard/API-CreateToken.02-02-2026.md +285 -0
  130. package/skills/four-meme/four-guard/API-Documents.03-03-2026.md +789 -0
  131. package/skills/four-meme/four-guard/AgentIdentifier.abi +585 -0
  132. package/skills/four-meme/four-guard/README.md +21 -0
  133. package/skills/four-meme/four-guard/SKILL.md +31 -0
  134. package/skills/four-meme/four-guard/TaxToken.abi +969 -0
  135. package/skills/four-meme/four-guard/TokenIdentifierSample.js_ +81 -0
  136. package/skills/four-meme/four-guard/TokenIdentifierSample.sol +69 -0
  137. package/skills/four-meme/four-guard/TokenManager.lite.abi +836 -0
  138. package/skills/four-meme/four-guard/TokenManager2.lite.abi +2325 -0
  139. package/skills/four-meme/four-guard/TokenManagerHelper3.abi +999 -0
  140. package/skills/four-meme/four-guard/go.mod +36 -0
  141. package/skills/four-meme/four-guard/go.sum +127 -0
  142. package/skills/four-meme/four-guard/main.go +183 -0
  143. package/skills/four-meme/four-meme-ai/SKILL.md +31 -0
  144. package/skills/four-meme/four-meme-ai/references/agent-creator-and-wallets.md +87 -0
  145. package/skills/four-meme/four-meme-ai/references/api-create-token.md +55 -0
  146. package/skills/four-meme/four-meme-ai/references/contract-addresses.md +47 -0
  147. package/skills/four-meme/four-meme-ai/references/create-token-scripts.md +131 -0
  148. package/skills/four-meme/four-meme-ai/references/errors.md +29 -0
  149. package/skills/four-meme/four-meme-ai/references/event-listening.md +75 -0
  150. package/skills/four-meme/four-meme-ai/references/execute-trade.md +31 -0
  151. package/skills/four-meme/four-meme-ai/references/tax-token-query.md +38 -0
  152. package/skills/four-meme/four-meme-ai/references/token-query-api.md +44 -0
  153. package/skills/four-meme/four-meme-ai/references/token-tax-info.md +77 -0
  154. package/skills/four-meme/four-meme-ai/scripts/8004-balance.ts +52 -0
  155. package/skills/four-meme/four-meme-ai/scripts/8004-register.ts +108 -0
  156. package/skills/four-meme/four-meme-ai/scripts/create-token-api.ts +321 -0
  157. package/skills/four-meme/four-meme-ai/scripts/create-token-chain.ts +102 -0
  158. package/skills/four-meme/four-meme-ai/scripts/create-token-instant.ts +106 -0
  159. package/skills/four-meme/four-meme-ai/scripts/execute-buy.ts +198 -0
  160. package/skills/four-meme/four-meme-ai/scripts/execute-sell.ts +150 -0
  161. package/skills/four-meme/four-meme-ai/scripts/get-public-config.ts +25 -0
  162. package/skills/four-meme/four-meme-ai/scripts/get-recent-events.ts +76 -0
  163. package/skills/four-meme/four-meme-ai/scripts/get-tax-token-info.ts +69 -0
  164. package/skills/four-meme/four-meme-ai/scripts/get-token-info.ts +94 -0
  165. package/skills/four-meme/four-meme-ai/scripts/quote-buy.ts +85 -0
  166. package/skills/four-meme/four-meme-ai/scripts/quote-sell.ts +66 -0
  167. package/skills/four-meme/four-meme-ai/scripts/send-token.ts +98 -0
  168. package/skills/four-meme/four-meme-ai/scripts/token-get.ts +31 -0
  169. package/skills/four-meme/four-meme-ai/scripts/token-list.ts +134 -0
  170. package/skills/four-meme/four-meme-ai/scripts/token-rankings.ts +162 -0
  171. package/skills/four-meme/four-meme-ai/scripts/verify-events.ts +47 -0
  172. package/skills/four-meme/four-meme-integration/SKILL.md +374 -0
  173. package/skills/four-meme/four-meme-integration/references/agent-creator-and-wallets.md +87 -0
  174. package/skills/four-meme/four-meme-integration/references/api-create-token.md +55 -0
  175. package/skills/four-meme/four-meme-integration/references/contract-addresses.md +47 -0
  176. package/skills/four-meme/four-meme-integration/references/create-token-scripts.md +131 -0
  177. package/skills/four-meme/four-meme-integration/references/errors.md +29 -0
  178. package/skills/four-meme/four-meme-integration/references/event-listening.md +75 -0
  179. package/skills/four-meme/four-meme-integration/references/execute-trade.md +31 -0
  180. package/skills/four-meme/four-meme-integration/references/tax-token-query.md +38 -0
  181. package/skills/four-meme/four-meme-integration/references/token-query-api.md +44 -0
  182. package/skills/four-meme/four-meme-integration/references/token-tax-info.md +77 -0
  183. package/skills/four-meme/four-meme-integration/scripts/8004-balance.ts +52 -0
  184. package/skills/four-meme/four-meme-integration/scripts/8004-register.ts +108 -0
  185. package/skills/four-meme/four-meme-integration/scripts/create-token-api.ts +321 -0
  186. package/skills/four-meme/four-meme-integration/scripts/create-token-chain.ts +102 -0
  187. package/skills/four-meme/four-meme-integration/scripts/create-token-instant.ts +106 -0
  188. package/skills/four-meme/four-meme-integration/scripts/execute-buy.ts +198 -0
  189. package/skills/four-meme/four-meme-integration/scripts/execute-sell.ts +150 -0
  190. package/skills/four-meme/four-meme-integration/scripts/get-public-config.ts +25 -0
  191. package/skills/four-meme/four-meme-integration/scripts/get-recent-events.ts +76 -0
  192. package/skills/four-meme/four-meme-integration/scripts/get-tax-token-info.ts +69 -0
  193. package/skills/four-meme/four-meme-integration/scripts/get-token-info.ts +94 -0
  194. package/skills/four-meme/four-meme-integration/scripts/quote-buy.ts +85 -0
  195. package/skills/four-meme/four-meme-integration/scripts/quote-sell.ts +66 -0
  196. package/skills/four-meme/four-meme-integration/scripts/send-token.ts +98 -0
  197. package/skills/four-meme/four-meme-integration/scripts/token-get.ts +31 -0
  198. package/skills/four-meme/four-meme-integration/scripts/token-list.ts +134 -0
  199. package/skills/four-meme/four-meme-integration/scripts/token-rankings.ts +162 -0
  200. package/skills/four-meme/four-meme-integration/scripts/verify-events.ts +47 -0
  201. package/skills/skillpp/contract-profiler/SKILL.md +118 -0
  202. package/skills/skillpp/newbie-tutor/SKILL.md +85 -0
  203. package/skills/skillpp/opportunity-board/SKILL.md +87 -0
  204. package/skills/skillpp/risk-fusion/SKILL.md +146 -0
  205. package/skills/skillpp/scam-pattern-lab/SKILL.md +115 -0
  206. package/skills/skillpp/wallet-doctor/SKILL.md +119 -0
  207. package/skills/skillpp/watchtower/SKILL.md +72 -0
  208. package/tests/compatibility/v0.1.0.json +117 -0
@@ -0,0 +1,112 @@
1
+ # Changelog
2
+
3
+ ## 1.2.0 - 2026-05-14
4
+
5
+ - Added WebSocket streams commands.
6
+
7
+ **Derivatives Trading Portfolio Margin**
8
+
9
+ ### Added (7)
10
+
11
+ - `cancel-all-um-algo-open-orders` (`DELETE /papi/v1/um/algo/allOpenOrders`)
12
+ - `cancel-um-algo-order` (`DELETE /papi/v1/um/algo/order`)
13
+ - `futures-tradfi-perps-contract` (`POST /papi/v1/um/stock/contract`)
14
+ - `new-um-algo-order` (`POST /papi/v1/um/algo/order`)
15
+ - `query-all-current-um-open-algo-orders` (`GET /papi/v1/um/algo/openAlgoOrders`)
16
+ - `query-current-um-open-algo-order` (`GET /papi/v1/um/algo/algoOrder`)
17
+ - `query-um-algo-order-history` (`GET /papi/v1/um/algo/allAlgoOrders`)
18
+
19
+ **Derivatives Trading Portfolio Margin Pro**
20
+
21
+ ### Added (3)
22
+
23
+ - `delete-margin-call-level` (`DELETE /sapi/v1/portfolio/margin-call-level`)
24
+ - `get-margin-call-level` (`GET /sapi/v1/portfolio/margin-call-level`)
25
+ - `set-margin-call-level` (`POST /sapi/v1/portfolio/margin-call-level`)
26
+
27
+ **Derivatives Trading Usds Futures**
28
+
29
+ ### Changed (3)
30
+
31
+ - Deleted parameter `page`
32
+ - affected methods:
33
+ - `query-all-algo-orders` (`GET /fapi/v1/allAlgoOrders`)
34
+ - Modified parameter `interval`:
35
+ - enum added: `1s`
36
+ - affected methods:
37
+ - `continuous-contract-kline-candlestick-data` (`GET /fapi/v1/continuousKlines`)
38
+ - `index-price-kline-candlestick-data` (`GET /fapi/v1/indexPriceKlines`)
39
+ - `kline-candlestick-data` (`GET /fapi/v1/klines`)
40
+ - `mark-price-kline-candlestick-data` (`GET /fapi/v1/markPriceKlines`)
41
+ - `premium-index-kline-data` (`GET /fapi/v1/premiumIndexKlines`)
42
+ - Modified parameter `limit`:
43
+ - required: `true` → `false`
44
+ - affected methods:
45
+ - `basis` (`GET /futures/data/basis`)
46
+
47
+ **Spot**
48
+
49
+ ### Added (1)
50
+
51
+ - `historical-block-trades` (`GET /api/v3/historicalBlockTrades`)
52
+
53
+ ### Changed (1)
54
+
55
+ - Modified parameter `selfTradePreventionMode`:
56
+ - enum added: `TRANSFER`
57
+ - affected methods:
58
+ - `new-order` (`POST /api/v3/order`)
59
+ - `order-cancel-replace` (`POST /api/v3/order/cancelReplace`)
60
+ - `order-oco` (`POST /api/v3/order/oco`)
61
+ - `order-test` (`POST /api/v3/order/test`)
62
+ - `order-list-oco` (`POST /api/v3/orderList/oco`)
63
+ - `order-list-opo` (`POST /api/v3/orderList/opo`)
64
+ - `order-list-opoco` (`POST /api/v3/orderList/opoco`)
65
+ - `order-list-oto` (`POST /api/v3/orderList/oto`)
66
+ - `order-list-otoco` (`POST /api/v3/orderList/otoco`)
67
+ - `sor-order` (`POST /api/v3/sor/order`)
68
+ - `sor-order-test` (`POST /api/v3/sor/order/test`)
69
+
70
+ **Sub Account**
71
+
72
+ ### Changed (2)
73
+
74
+ - Added parameter `rows`
75
+ - affected methods:
76
+ - `get-move-position-history-for-sub-account` (`GET /sapi/v1/sub-account/futures/move-position`)
77
+ - Deleted parameter `row`
78
+ - affected methods:
79
+ - `get-move-position-history-for-sub-account` (`GET /sapi/v1/sub-account/futures/move-position`)
80
+
81
+ ## 1.1.0 - 2026-04-11
82
+
83
+ - Added support for the following products:
84
+ - Algo Trading
85
+ - Alpha
86
+ - C2C
87
+ - Copy Trading
88
+ - Crypto Loan
89
+ - Derivatives Trading (COIN-M Futures)
90
+ - Derivatives Trading (Options)
91
+ - Derivatives Trading (Portfolio Margin)
92
+ - Derivatives Trading (Portfolio Margin Pro)
93
+ - Dual Investment
94
+ - Fiat
95
+ - Gift Card
96
+ - Margin Trading
97
+ - Mining
98
+ - Pay
99
+ - Rebate
100
+ - Simple Earn
101
+ - Staking
102
+ - Sub Account
103
+ - VIP Loan
104
+ - Wallet
105
+
106
+ ## 1.0.1 - 2026-04-09
107
+
108
+ - Renamed BINANCE_API_SECRET to BINANCE_SECRET_KEY
109
+
110
+ ## 1.0.0 - 2026-04-08
111
+
112
+ - Initial release
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Binance
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: binance
3
+ description: Use binance-cli for Binance Spot, Futures (USD-S), and Convert. Requires auth.
4
+ metadata:
5
+ version: 1.2.0
6
+ author: Binance
7
+ openclaw:
8
+ requires:
9
+ bins:
10
+ - binance-cli
11
+ install:
12
+ - kind: node
13
+ package: '@binance/binance-cli'
14
+ bins: [binance-cli]
15
+ label: Install binance-cli (npm)
16
+ license: MIT
17
+ ---
18
+
19
+ # Binance
20
+
21
+ Use `binance-cli` for Binance Spot, Futures (USD-S), and Convert. Requires auth.
22
+
23
+ > **PREREQUISITE:** Read [`auth.md`](./references/auth.md) for auth, global flags, and security rules.
24
+
25
+ ## Helper Commands
26
+
27
+ | Command | Description |
28
+ |---------|-------------|
29
+ | [`algo`](./references/algo.md) | Algo Trading |
30
+ | [`alpha`](./references/alpha.md) | Alpha |
31
+ | [`c2c`](./references/c2c.md) | C2C |
32
+ | [`convert`](./references/convert.md) | Convert |
33
+ | [`copy-trading`](./references/copy-trading.md) | Copy Trading |
34
+ | [`crypto-loan`](./references/crypto-loan.md) | Crypto Loan |
35
+ | [`derivatives-options`](./references/derivatives-options.md) | Derivatives Trading (Options) |
36
+ | [`derivatives-portfolio-margin`](./references/derivatives-portfolio-margin.md) | Derivatives Trading (Portfolio Margin) |
37
+ | [`derivatives-portfolio-margin-streams`](./references/derivatives-portfolio-margin-streams.md) | Derivatives Trading Streams (Portfolio Margin) |
38
+ | [`derivatives-portfolio-margin-pro`](./references/derivatives-portfolio-margin-pro.md) | Derivatives Trading (Portfolio Margin Pro) |
39
+ | [`derivatives-portfolio-margin-pro-streams`](./references/derivatives-portfolio-margin-pro-streams.md) | Derivatives Trading Streams (Portfolio Margin Pro) |
40
+ | [`dual-investment`](./references/dual-investment.md) | Dual Investment |
41
+ | [`fiat`](./references/fiat.md) | Fiat |
42
+ | [`futures-coin`](./references/futures-coin.md) | Derivatives Trading (COIN-M Futures) |
43
+ | [`futures-coin-streams`](./references/futures-coin-streams.md) | Derivatives Trading Streams (COIN-M Futures) |
44
+ | [`futures-usds`](./references/futures-usds.md) | Derivatives Trading (USDS-M Futures) |
45
+ | [`futures-usds-streams`](./references/futures-usds-streams.md) | Derivatives Trading Streams (USDS-M Futures) |
46
+ | [`gift-card`](./references/gift-card.md) | Gift Card |
47
+ | [`margin-trading`](./references/margin-trading.md) | Margin Trading |
48
+ | [`margin-trading-streams`](./references/margin-trading-streams.md) | Margin Trading Streams |
49
+ | [`mining`](./references/mining.md) | Mining |
50
+ | [`pay`](./references/pay.md) | Pay |
51
+ | [`rebate`](./references/rebate.md) | Rebate |
52
+ | [`simple-earn`](./references/simple-earn.md) | Simple Earn |
53
+ | [`spot`](./references/spot.md) | Spot Trading |
54
+ | [`spot-streams`](./references/spot-streams.md) | Spot Trading Streams |
55
+ | [`staking`](./references/staking.md) | Staking |
56
+ | [`sub-account`](./references/sub-account.md) | Sub Account |
57
+ | [`vip-loan`](./references/vip-loan.md) | VIP Loan |
58
+ | [`wallet`](./references/wallet.md) | Wallet |
59
+
60
+ ## Notes
61
+
62
+ - ⚠️ **Prod transactions** — always ask user to type `CONFIRM` before executing.
63
+ - Install binance-cli using `npm install -g @binance/binance-cli`
64
+ - Use `--help` to get the list of commands and parameters.
65
+ - Use the output from both stdout and stderr.
66
+ - Append `--profile <name>` to any command to use a non-active profile.
67
+ - All authenticated endpoints accept optional `--recvWindow <ms>` (max 60 000).
68
+ - Timestamps (`startTime`, `endTime`) are Unix ms.
69
+ - For endpoints not listed in the skill, use `binance-cli request (GET|POST|PUT...) <url> [--signed]`. Any Parameters can be added to the request (e.g: `--param1 value --param2 value`).
@@ -0,0 +1,21 @@
1
+ ## Future Algo (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | cancel-algo-order-future-algo | `algo-id` [] | Cancel Algo Order |
6
+ | query-current-algo-open-orders-future-algo | [] | Query Current Algo Open Orders |
7
+ | query-historical-algo-orders-future-algo | [`symbol` `side` `start-time` `end-time` `page` `page-size`] | Query Historical Algo Orders |
8
+ | query-sub-orders-future-algo | `algo-id` [`page` `page-size`] | Query Sub Orders |
9
+ | time-weighted-average-price-future-algo | `symbol` `side` `quantity` `duration` [`position-side` `client-algo-id` `reduce-only` `limit-price`] | Time-Weighted Average Price(Twap) New Order |
10
+ | volume-participation-future-algo | `symbol` `side` `quantity` `urgency` [`position-side` `client-algo-id` `reduce-only` `limit-price`] | Volume Participation New Order |
11
+
12
+
13
+ ## Spot Algo (auth required)
14
+
15
+ | Endpoint | Key params | Description |
16
+ |---|---|---|
17
+ | cancel-algo-order-spot-algo | `algo-id` [] | Cancel Algo Order |
18
+ | query-current-algo-open-orders-spot-algo | [] | Query Current Algo Open Orders |
19
+ | query-historical-algo-orders-spot-algo | [`symbol` `side` `start-time` `end-time` `page` `page-size`] | Query Historical Algo Orders |
20
+ | query-sub-orders-spot-algo | `algo-id` [`page` `page-size`] | Query Sub Orders |
21
+ | time-weighted-average-price-spot-algo | `symbol` `side` `quantity` `duration` [`client-algo-id` `limit-price`] | Time-Weighted Average Price(Twap) New Order |
@@ -0,0 +1,9 @@
1
+ ## Market Data
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | aggregated-trades | `symbol` [`from-id` `start-time` `end-time` `limit`] | Aggregated Trades |
6
+ | get-exchange-info | [] | Get Exchange Info |
7
+ | klines | `symbol` `interval` [`limit` `start-time` `end-time`] | Klines (Candlestick Data) |
8
+ | ticker | `symbol` [] | Ticker (24hr Price Statistics) |
9
+ | token-list | [] | Token List |
@@ -0,0 +1,32 @@
1
+ # Binance Authentication
2
+
3
+ API Key and Secret
4
+
5
+ - `BINANCE_API_KEY`: Binance API Key
6
+ - `BINANCE_SECRET_KEY`: Binance API Secret or Private Key
7
+
8
+ API Environment (optional)
9
+
10
+ - `BINANCE_API_ENV`: Binance API environment of <prod|testnet|demo>. default: prod
11
+
12
+ ## Profiles
13
+
14
+ ```bash
15
+ # Create
16
+ binance-cli profile create --name <name> --api-key <key> --api-secret <secret> --env <prod|testnet|demo>
17
+ # Select profile
18
+ binance-cli profile select --name <name>
19
+ # List all profiles
20
+ binance-cli profile list
21
+ # View active
22
+ binance-cli profile view
23
+ ```
24
+
25
+ When user provides new credentials: ask for account name and environment (prod/testnet/demo), check for duplicates, then create. Use `--profile <name>` on any command to override the active profile.
26
+
27
+ ## Security Rules
28
+
29
+ - Never run `printenv`, `env`, `export` (without a specific var name), or source any secrets file.
30
+ - Never `grep` env files without anchoring: `^VARNAME=`
31
+ - Never echo or log raw credentials.
32
+ - Never disclose the location of key/secret files.
@@ -0,0 +1,5 @@
1
+ ## C2C (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | get-c2-c-trade-history | [`trade-type` `start-timestamp` `end-timestamp` `page` `rows`] | Get C2C Trade History |
@@ -0,0 +1,19 @@
1
+ ## Market Data
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | list-all-convert-pairs | [`from-asset` `to-asset`] | List All Convert Pairs |
6
+ | query-order-quantity-precision-per-asset | [] | Query order quantity precision per asset |
7
+
8
+
9
+ ## Trade (auth required)
10
+
11
+ | Endpoint | Key params | Description |
12
+ |---|---|---|
13
+ | accept-quote | `quote-id` [] | Accept Quote |
14
+ | cancel-limit-order | `order-id` [] | Cancel limit order |
15
+ | get-convert-trade-history | `start-time` `end-time` [`limit`] | Get Convert Trade History |
16
+ | order-status | [`order-id` `quote-id`] | Order status |
17
+ | place-limit-order | `base-asset` `quote-asset` `limit-price` `side` `expired-type` [`base-amount` `quote-amount` `wallet-type`] | Place limit order |
18
+ | query-limit-open-orders | [] | Query limit open orders |
19
+ | send-quote-request | `from-asset` `to-asset` [`from-amount` `to-amount` `wallet-type` `valid-time`] | Send Quote Request |
@@ -0,0 +1,6 @@
1
+ ## Future Copy Trading (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | get-futures-lead-trader-status | [] | Get Futures Lead Trader Status |
6
+ | get-futures-lead-trading-symbol-whitelist | [] | Get Futures Lead Trading Symbol Whitelist |
@@ -0,0 +1,27 @@
1
+ ## Flexible Rate (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | check-collateral-repay-rate | `loan-coin` `collateral-coin` [] | Check Collateral Repay Rate |
6
+ | flexible-loan-adjust-ltv | `loan-coin` `collateral-coin` `adjustment-amount` `direction` [] | Flexible Loan Adjust LTV |
7
+ | flexible-loan-borrow | `loan-coin` `collateral-coin` [`loan-amount` `collateral-amount`] | Flexible Loan Borrow |
8
+ | flexible-loan-repay | `loan-coin` `collateral-coin` `repay-amount` [`collateral-return` `full-repayment` `repayment-type`] | Flexible Loan Repay |
9
+ | get-flexible-loan-assets-data | [`loan-coin`] | Get Flexible Loan Assets Data |
10
+ | get-flexible-loan-borrow-history | [`loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Flexible Loan Borrow History |
11
+ | get-flexible-loan-collateral-assets-data | [`collateral-coin`] | Get Flexible Loan Collateral Assets Data |
12
+ | get-flexible-loan-interest-rate-history | `coin` [`start-time` `end-time` `current` `limit`] | Get Flexible Loan Interest Rate History |
13
+ | get-flexible-loan-liquidation-history | [`loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Flexible Loan Liquidation History |
14
+ | get-flexible-loan-ltv-adjustment-history | [`loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Flexible Loan LTV Adjustment History |
15
+ | get-flexible-loan-ongoing-orders | [`loan-coin` `collateral-coin` `current` `limit`] | Get Flexible Loan Ongoing Orders |
16
+ | get-flexible-loan-repayment-history | [`loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Flexible Loan Repayment History |
17
+
18
+
19
+ ## Stable Rate (auth required)
20
+
21
+ | Endpoint | Key params | Description |
22
+ |---|---|---|
23
+ | check-collateral-repay-rate-stable-rate | `loan-coin` `collateral-coin` `repay-amount` [] | Check Collateral Repay Rate |
24
+ | get-crypto-loans-income-history | [`asset` `type` `start-time` `end-time` `limit`] | Get Crypto Loans Income History |
25
+ | get-loan-borrow-history | [`order-id` `loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Loan Borrow History |
26
+ | get-loan-ltv-adjustment-history | [`order-id` `loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Loan LTV Adjustment History |
27
+ | get-loan-repayment-history | [`order-id` `loan-coin` `collateral-coin` `start-time` `end-time` `current` `limit`] | Get Loan Repayment History |
@@ -0,0 +1,25 @@
1
+ ## Market
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | index-price-streams | [`id`] | Index Price Streams |
6
+ | kline-candlestick-streams | `symbol` `interval` [`id`] | Kline/Candlestick Streams |
7
+ | mark-price | `underlying` [`id`] | Mark Price |
8
+ | new-symbol-info | [`id`] | New Symbol Info |
9
+ | open-interest | `expiration-date` [`id`] | Open Interest |
10
+
11
+ ## Public
12
+
13
+ | Endpoint | Key params | Description |
14
+ |---|---|---|
15
+ | diff-book-depth-streams | `symbol` [`id` `update-speed`] | Diff Book Depth Streams |
16
+ | individual-symbol-book-ticker-streams | `symbol` [`id`] | Individual Symbol Book Ticker Streams |
17
+ | partial-book-depth-streams | `symbol` `level` [`id` `update-speed`] | Partial Book Depth Streams |
18
+ | ticker24-hour | `symbol` [`id`] | 24-hour TICKER |
19
+ | trade-streams | `symbol` [`id`] | Trade Streams |
20
+
21
+ ## Other streams
22
+
23
+ | Endpoint | Key params | Description |
24
+ |---|---|---|
25
+ | user-data | listen-key [id] | Subscribes to the user data WebSocket stream using the provided listen key. |
@@ -0,0 +1,85 @@
1
+ ## Account (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | account-funding-flow | `currency` [`record-id` `start-time` `end-time` `limit`] | Account Funding Flow |
6
+ | option-margin-account-information | [] | Option Margin Account Information |
7
+
8
+
9
+ ## Market Data
10
+
11
+ | Endpoint | Key params | Description |
12
+ |---|---|---|
13
+ | check-server-time | [] | Check Server Time |
14
+ | exchange-information | [] | Exchange Information |
15
+ | historical-exercise-records | [`underlying` `start-time` `end-time` `limit`] | Historical Exercise Records |
16
+ | index-price | `underlying` [] | Index Price |
17
+ | kline-candlestick-data | `symbol` `interval` [`start-time` `end-time` `limit`] | Kline/Candlestick Data |
18
+ | open-interest | `underlying-asset` `expiration` [] | Open Interest |
19
+ | option-mark-price | [`symbol`] | Option Mark Price |
20
+ | order-book | `symbol` [`limit`] | Order Book |
21
+ | recent-block-trades-list | [`symbol` `limit`] | Recent Block Trades List |
22
+ | recent-trades-list | `symbol` [`limit`] | Recent Trades List |
23
+ | test-connectivity | [] | Test Connectivity |
24
+ | ticker24hr-price-change-statistics | [`symbol`] | 24hr Ticker Price Change Statistics |
25
+
26
+
27
+ ## Market Maker Block Trade (auth required)
28
+
29
+ | Endpoint | Key params | Description |
30
+ |---|---|---|
31
+ | accept-block-trade-order | `block-order-matching-key` [] | Accept Block Trade Order |
32
+ | account-block-trade-list | [`end-time` `start-time` `underlying`] | Account Block Trade List |
33
+ | cancel-block-trade-order | `block-order-matching-key` [] | Cancel Block Trade Order |
34
+ | extend-block-trade-order | `block-order-matching-key` [] | Extend Block Trade Order |
35
+ | new-block-trade-order | `liquidity` `legs` [] | New Block Trade Order |
36
+ | query-block-trade-details | `block-order-matching-key` [] | Query Block Trade Details |
37
+ | query-block-trade-order | [`block-order-matching-key` `end-time` `start-time` `underlying`] | Query Block Trade Order |
38
+
39
+
40
+ ## Market Maker Endpoints (auth required)
41
+
42
+ | Endpoint | Key params | Description |
43
+ |---|---|---|
44
+ | auto-cancel-all-open-orders | `underlyings` [] | Auto-Cancel All Open Orders (Kill-Switch) Heartbeat |
45
+ | get-auto-cancel-all-open-orders | [`underlying`] | Get Auto-Cancel All Open Orders (Kill-Switch) Config |
46
+ | get-market-maker-protection-config | [`underlying`] | Get Market Maker Protection Config |
47
+ | reset-market-maker-protection-config | [`underlying`] | Reset Market Maker Protection Config |
48
+ | set-auto-cancel-all-open-orders | `underlying` `countdown-time` [] | Set Auto-Cancel All Open Orders (Kill-Switch) Config |
49
+ | set-market-maker-protection-config | [`underlying` `window-time-in-milliseconds` `frozen-time-in-milliseconds` `qty-limit` `delta-limit`] | Set Market Maker Protection Config |
50
+
51
+
52
+ ## Trade (auth required)
53
+
54
+ | Endpoint | Key params | Description |
55
+ |---|---|---|
56
+ | account-trade-list | [`symbol` `from-id` `start-time` `end-time` `limit`] | Account Trade List |
57
+ | cancel-all-option-orders-by-underlying | `underlying` [] | Cancel All Option Orders By Underlying |
58
+ | cancel-all-option-orders-on-specific-symbol | `symbol` [] | Cancel all Option orders on specific symbol |
59
+ | cancel-multiple-option-orders | `symbol` [`order-ids` `client-order-ids`] | Cancel Multiple Option Orders |
60
+ | cancel-option-order | `symbol` [`order-id` `client-order-id`] | Cancel Option Order |
61
+ | new-order | `symbol` `side` `type` `quantity` [`price` `time-in-force` `reduce-only` `post-only` `new-order-resp-type` `client-order-id` `is-mmp` `self-trade-prevention-mode`] | New Order |
62
+ | option-position-information | [`symbol`] | Option Position Information |
63
+ | place-multiple-orders | `orders` [] | Place Multiple Orders |
64
+ | query-current-open-option-orders | [`symbol` `order-id` `start-time` `end-time`] | Query Current Open Option Orders |
65
+ | query-option-order-history | `symbol` [`order-id` `start-time` `end-time` `limit`] | Query Option Order History |
66
+ | query-single-order | `symbol` [`order-id` `client-order-id`] | Query Single Order |
67
+ | user-commission | [] | User Commission |
68
+ | user-exercise-record | [`symbol` `start-time` `end-time` `limit`] | User Exercise Record |
69
+
70
+
71
+ ## User Data Streams
72
+
73
+ | Endpoint | Key params | Description |
74
+ |---|---|---|
75
+ | close-user-data-stream | [] | Close User Data Stream |
76
+ | keepalive-user-data-stream | [] | Keepalive User Data Stream |
77
+ | start-user-data-stream | [] | Start User Data Stream |
78
+
79
+ ### Enums
80
+
81
+ **new-order-resp-type:** `ACK` `RESULT`
82
+ **self-trade-prevention-mode:** `EXPIRE_TAKER` `EXPIRE_BOTH` `EXPIRE_MAKER`
83
+ **side:** `BUY` `SELL`
84
+ **time-in-force:** `GTC` `IOC` `FOK` `GTX`
85
+ **type:** `LIMIT`
@@ -0,0 +1,5 @@
1
+ ## Other streams
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | user-data | listen-key [id] | Subscribes to the user data WebSocket stream using the provided listen key. |
@@ -0,0 +1,34 @@
1
+ ## Account (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | bnb-transfer | `amount` `transfer-side` [] | BNB transfer |
6
+ | change-auto-repay-futures-status | `auto-repay` [] | Change Auto-repay-futures Status |
7
+ | delete-margin-call-level | [] | Delete Margin Call Level |
8
+ | fund-auto-collection | [] | Fund Auto-collection |
9
+ | fund-collection-by-asset | `asset` [] | Fund Collection by Asset |
10
+ | get-auto-repay-futures-status | [] | Get Auto-repay-futures Status |
11
+ | get-delta-mode-status | [] | Get Delta Mode Status |
12
+ | get-margin-call-level | [] | Get Margin Call Level |
13
+ | get-portfolio-margin-pro-account-balance | [`asset`] | Get Portfolio Margin Pro Account Balance |
14
+ | get-portfolio-margin-pro-account-info | [] | Get Portfolio Margin Pro Account Info |
15
+ | get-portfolio-margin-pro-span-account-info | [] | Get Portfolio Margin Pro SPAN Account Info |
16
+ | get-transferable-earn-asset-balance-for-portfolio-margin | `asset` `transfer-type` [] | Get Transferable Earn Asset Balance for Portfolio Margin |
17
+ | portfolio-margin-pro-bankruptcy-loan-repay | [`from`] | Portfolio Margin Pro Bankruptcy Loan Repay |
18
+ | query-portfolio-margin-pro-bankruptcy-loan-amount | [] | Query Portfolio Margin Pro Bankruptcy Loan Amount |
19
+ | query-portfolio-margin-pro-bankruptcy-loan-repay-history | [`start-time` `end-time` `current` `size`] | Query Portfolio Margin Pro Bankruptcy Loan Repay History |
20
+ | query-portfolio-margin-pro-negative-balance-interest-history | [`asset` `start-time` `end-time` `size`] | Query Portfolio Margin Pro Negative Balance Interest History |
21
+ | repay-futures-negative-balance | [`from`] | Repay futures Negative Balance |
22
+ | set-margin-call-level | `margin-call-level` [] | Set Margin Call Level |
23
+ | switch-delta-mode | `delta-enabled` [] | Switch Delta Mode |
24
+ | transfer-ldusdt-rwusd-for-portfolio-margin | `asset` `transfer-type` `amount` [] | Transfer LDUSDT/RWUSD for Portfolio Margin |
25
+
26
+
27
+ ## Market Data (auth required)
28
+
29
+ | Endpoint | Key params | Description |
30
+ |---|---|---|
31
+ | get-portfolio-margin-asset-leverage | [] | Get Portfolio Margin Asset Leverage |
32
+ | portfolio-margin-collateral-rate | [] | Portfolio Margin Collateral Rate |
33
+ | portfolio-margin-pro-tiered-collateral-rate | [] | Portfolio Margin Pro Tiered Collateral Rate |
34
+ | query-portfolio-margin-asset-index-price | [`asset`] | Query Portfolio Margin Asset Index Price |
@@ -0,0 +1,5 @@
1
+ ## Other streams
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | user-data | listen-key [id] | Subscribes to the user data WebSocket stream using the provided listen key. |
@@ -0,0 +1,146 @@
1
+ ## Account (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | account-balance | [`asset`] | Account Balance |
6
+ | account-information | [] | Account Information |
7
+ | bnb-transfer | `amount` `transfer-side` [] | BNB transfer |
8
+ | change-auto-repay-futures-status | `auto-repay` [] | Change Auto-repay-futures Status |
9
+ | change-cm-initial-leverage | `symbol` `leverage` [] | Change CM Initial Leverage |
10
+ | change-cm-position-mode | `dual-side-position` [] | Change CM Position Mode |
11
+ | change-um-initial-leverage | `symbol` `leverage` [] | Change UM Initial Leverage |
12
+ | change-um-position-mode | `dual-side-position` [] | Change UM Position Mode |
13
+ | cm-notional-and-leverage-brackets | [`symbol`] | CM Notional and Leverage Brackets |
14
+ | fund-auto-collection | [] | Fund Auto-collection |
15
+ | fund-collection-by-asset | `asset` [] | Fund Collection by Asset |
16
+ | get-auto-repay-futures-status | [] | Get Auto-repay-futures Status |
17
+ | get-cm-account-detail | [] | Get CM Account Detail |
18
+ | get-cm-current-position-mode | [] | Get CM Current Position Mode |
19
+ | get-cm-income-history | [`symbol` `income-type` `start-time` `end-time` `page` `limit`] | Get CM Income History |
20
+ | get-download-id-for-um-futures-order-history | `start-time` `end-time` [] | Get Download Id For UM Futures Order History |
21
+ | get-download-id-for-um-futures-trade-history | `start-time` `end-time` [] | Get Download Id For UM Futures Trade History |
22
+ | get-download-id-for-um-futures-transaction-history | `start-time` `end-time` [] | Get Download Id For UM Futures Transaction History |
23
+ | get-margin-borrow-loan-interest-history | [`asset` `start-time` `end-time` `current` `size` `archived`] | Get Margin Borrow/Loan Interest History |
24
+ | get-um-account-detail | [] | Get UM Account Detail |
25
+ | get-um-account-detail-v2 | [] | Get UM Account Detail V2 |
26
+ | get-um-current-position-mode | [] | Get UM Current Position Mode |
27
+ | get-um-futures-order-download-link-by-id | `download-id` [] | Get UM Futures Order Download Link by Id |
28
+ | get-um-futures-trade-download-link-by-id | `download-id` [] | Get UM Futures Trade Download Link by Id |
29
+ | get-um-futures-transaction-download-link-by-id | `download-id` [] | Get UM Futures Transaction Download Link by Id |
30
+ | get-um-income-history | [`symbol` `income-type` `start-time` `end-time` `page` `limit`] | Get UM Income History |
31
+ | get-user-commission-rate-for-cm | `symbol` [] | Get User Commission Rate for CM |
32
+ | get-user-commission-rate-for-um | `symbol` [] | Get User Commission Rate for UM |
33
+ | margin-max-borrow | `asset` [] | Margin Max Borrow |
34
+ | portfolio-margin-um-trading-quantitative-rules-indicators | [`symbol`] | Portfolio Margin UM Trading Quantitative Rules Indicators |
35
+ | query-cm-position-information | [`margin-asset` `pair`] | Query CM Position Information |
36
+ | query-margin-loan-record | `asset` [`tx-id` `start-time` `end-time` `current` `size` `archived`] | Query Margin Loan Record |
37
+ | query-margin-max-withdraw | `asset` [] | Query Margin Max Withdraw |
38
+ | query-margin-repay-record | `asset` [`tx-id` `start-time` `end-time` `current` `size` `archived`] | Query Margin repay Record |
39
+ | query-portfolio-margin-negative-balance-interest-history | [`asset` `start-time` `end-time` `size`] | Query Portfolio Margin Negative Balance Interest History |
40
+ | query-um-position-information | [`symbol`] | Query UM Position Information |
41
+ | query-user-negative-balance-auto-exchange-record | `start-time` `end-time` [] | Query User Negative Balance Auto Exchange Record |
42
+ | query-user-rate-limit | [] | Query User Rate Limit |
43
+ | repay-futures-negative-balance | [] | Repay futures Negative Balance |
44
+ | um-futures-account-configuration | [] | UM Futures Account Configuration |
45
+ | um-futures-symbol-configuration | [`symbol`] | UM Futures Symbol Configuration |
46
+ | um-notional-and-leverage-brackets | [`symbol`] | UM Notional and Leverage Brackets |
47
+
48
+
49
+ ## Market Data
50
+
51
+ | Endpoint | Key params | Description |
52
+ |---|---|---|
53
+ | test-connectivity | [] | Test Connectivity |
54
+
55
+
56
+ ## Trade (auth required)
57
+
58
+ | Endpoint | Key params | Description |
59
+ |---|---|---|
60
+ | cancel-all-cm-open-conditional-orders | `symbol` [] | Cancel All CM Open Conditional Orders |
61
+ | cancel-all-cm-open-orders | `symbol` [] | Cancel All CM Open Orders |
62
+ | cancel-all-um-algo-open-orders | `symbol` [] | Cancel All UM Algo Open Orders |
63
+ | cancel-all-um-open-conditional-orders | `symbol` [] | Cancel All UM Open Conditional Orders |
64
+ | cancel-all-um-open-orders | `symbol` [] | Cancel All UM Open Orders |
65
+ | cancel-cm-conditional-order | `symbol` [`strategy-id` `new-client-strategy-id`] | Cancel CM Conditional Order |
66
+ | cancel-cm-order | `symbol` [`order-id` `orig-client-order-id`] | Cancel CM Order |
67
+ | cancel-margin-account-all-open-orders-on-a-symbol | `symbol` [] | Cancel Margin Account All Open Orders on a Symbol |
68
+ | cancel-margin-account-oco-orders | `symbol` [`order-list-id` `list-client-order-id` `new-client-order-id`] | Cancel Margin Account OCO Orders |
69
+ | cancel-margin-account-order | `symbol` [`order-id` `orig-client-order-id` `new-client-order-id`] | Cancel Margin Account Order |
70
+ | cancel-um-algo-order | [`algo-id` `client-algo-id`] | Cancel UM Algo Order |
71
+ | cancel-um-conditional-order | `symbol` [`strategy-id` `new-client-strategy-id`] | Cancel UM Conditional Order |
72
+ | cancel-um-order | `symbol` [`order-id` `orig-client-order-id`] | Cancel UM Order |
73
+ | cm-account-trade-list | [`symbol` `pair` `start-time` `end-time` `from-id` `limit`] | CM Account Trade List |
74
+ | cm-position-adl-quantile-estimation | [`symbol`] | CM Position ADL Quantile Estimation |
75
+ | futures-tradfi-perps-contract | [] | Futures TradFi Perps Contract |
76
+ | get-um-futures-bnb-burn-status | [] | Get UM Futures BNB Burn Status |
77
+ | margin-account-borrow | `asset` `amount` [] | Margin Account Borrow |
78
+ | margin-account-new-oco | `symbol` `side` `quantity` `price` `stop-price` [`list-client-order-id` `limit-client-order-id` `limit-iceberg-qty` `stop-client-order-id` `stop-limit-price` `stop-iceberg-qty` `stop-limit-time-in-force` `new-order-resp-type` `side-effect-type`] | Margin Account New OCO |
79
+ | margin-account-repay | `asset` `amount` [] | Margin Account Repay |
80
+ | margin-account-repay-debt | `asset` [`amount` `specify-repay-assets`] | Margin Account Repay Debt |
81
+ | margin-account-trade-list | `symbol` [`order-id` `start-time` `end-time` `from-id` `limit`] | Margin Account Trade List |
82
+ | modify-cm-order | `symbol` `side` `quantity` `price` [`order-id` `orig-client-order-id` `price-match`] | Modify CM Order |
83
+ | modify-um-order | `symbol` `side` `quantity` `price` [`order-id` `orig-client-order-id` `price-match`] | Modify UM Order |
84
+ | new-cm-conditional-order | `symbol` `side` `strategy-type` [`position-side` `time-in-force` `quantity` `reduce-only` `price` `working-type` `price-protect` `new-client-strategy-id` `stop-price` `activation-price` `callback-rate`] | New CM Conditional Order |
85
+ | new-cm-order | `symbol` `side` `type` [`position-side` `time-in-force` `quantity` `reduce-only` `price` `price-match` `new-client-order-id` `new-order-resp-type`] | New CM Order |
86
+ | new-margin-order | `symbol` `side` `type` [`quantity` `quote-order-qty` `price` `stop-price` `new-client-order-id` `new-order-resp-type` `iceberg-qty` `side-effect-type` `time-in-force` `self-trade-prevention-mode` `auto-repay-at-cancel`] | New Margin Order |
87
+ | new-um-algo-order | `algo-type` `symbol` `side` `type` `quantity` [`position-side` `time-in-force` `price` `trigger-price` `working-type` `price-match` `price-protect` `reduce-only` `activate-price` `callback-rate` `client-algo-id` `new-order-resp-type` `self-trade-prevention-mode` `good-till-date`] | New UM Algo Order |
88
+ | new-um-conditional-order | `symbol` `side` `strategy-type` [`position-side` `time-in-force` `quantity` `reduce-only` `price` `working-type` `price-protect` `new-client-strategy-id` `stop-price` `activation-price` `callback-rate` `price-match` `self-trade-prevention-mode` `good-till-date`] | New UM Conditional Order |
89
+ | new-um-order | `symbol` `side` `type` [`position-side` `time-in-force` `quantity` `reduce-only` `price` `new-client-order-id` `new-order-resp-type` `price-match` `self-trade-prevention-mode` `good-till-date`] | New UM Order |
90
+ | query-all-cm-conditional-orders | [`symbol` `strategy-id` `start-time` `end-time` `limit`] | Query All CM Conditional Orders |
91
+ | query-all-cm-orders | `symbol` [`pair` `order-id` `start-time` `end-time` `limit`] | Query All CM Orders |
92
+ | query-all-current-cm-open-conditional-orders | [`symbol`] | Query All Current CM Open Conditional Orders |
93
+ | query-all-current-cm-open-orders | [`symbol` `pair`] | Query All Current CM Open Orders |
94
+ | query-all-current-um-open-algo-orders | [`algo-type` `symbol` `algo-id`] | Query All Current UM Open Algo Orders |
95
+ | query-all-current-um-open-conditional-orders | [`symbol`] | Query All Current UM Open Conditional Orders |
96
+ | query-all-current-um-open-orders | [`symbol`] | Query All Current UM Open Orders |
97
+ | query-all-margin-account-orders | `symbol` [`order-id` `start-time` `end-time` `limit`] | Query All Margin Account Orders |
98
+ | query-all-um-conditional-orders | [`symbol` `strategy-id` `start-time` `end-time` `limit`] | Query All UM Conditional Orders |
99
+ | query-all-um-orders | `symbol` [`order-id` `start-time` `end-time` `limit`] | Query All UM Orders |
100
+ | query-cm-conditional-order-history | `symbol` [`strategy-id` `new-client-strategy-id`] | Query CM Conditional Order History |
101
+ | query-cm-modify-order-history | `symbol` [`order-id` `orig-client-order-id` `start-time` `end-time` `limit`] | Query CM Modify Order History |
102
+ | query-cm-order | `symbol` [`order-id` `orig-client-order-id`] | Query CM Order |
103
+ | query-current-cm-open-conditional-order | `symbol` [`strategy-id` `new-client-strategy-id`] | Query Current CM Open Conditional Order |
104
+ | query-current-cm-open-order | `symbol` [`order-id` `orig-client-order-id`] | Query Current CM Open Order |
105
+ | query-current-margin-open-order | `symbol` [] | Query Current Margin Open Order |
106
+ | query-current-um-open-algo-order | [`algo-id` `client-algo-id`] | Query Current UM Open Algo Order |
107
+ | query-current-um-open-conditional-order | `symbol` [`strategy-id` `new-client-strategy-id`] | Query Current UM Open Conditional Order |
108
+ | query-current-um-open-order | `symbol` [`order-id` `orig-client-order-id`] | Query Current UM Open Order |
109
+ | query-margin-account-order | `symbol` [`order-id` `orig-client-order-id`] | Query Margin Account Order |
110
+ | query-margin-accounts-all-oco | [`from-id` `start-time` `end-time` `limit`] | Query Margin Account\'s all OCO |
111
+ | query-margin-accounts-oco | [`order-list-id` `orig-client-order-id`] | Query Margin Account\'s OCO |
112
+ | query-margin-accounts-open-oco | [] | Query Margin Account\'s Open OCO |
113
+ | query-um-algo-order-history | `symbol` [`algo-id` `start-time` `end-time` `limit`] | Query UM Algo Order History |
114
+ | query-um-conditional-order-history | `symbol` [`strategy-id` `new-client-strategy-id`] | Query UM Conditional Order History |
115
+ | query-um-modify-order-history | `symbol` [`order-id` `orig-client-order-id` `start-time` `end-time` `limit`] | Query UM Modify Order History |
116
+ | query-um-order | `symbol` [`order-id` `orig-client-order-id`] | Query UM Order |
117
+ | query-users-cm-force-orders | [`symbol` `auto-close-type` `start-time` `end-time` `limit`] | Query User\'s CM Force Orders |
118
+ | query-users-margin-force-orders | [`start-time` `end-time` `current` `size`] | Query User\'s Margin Force Orders |
119
+ | query-users-um-force-orders | [`symbol` `auto-close-type` `start-time` `end-time` `limit`] | Query User\'s UM Force Orders |
120
+ | toggle-bnb-burn-on-um-futures-trade | `fee-burn` [] | Toggle BNB Burn On UM Futures Trade |
121
+ | um-account-trade-list | `symbol` [`start-time` `end-time` `from-id` `limit`] | UM Account Trade List |
122
+ | um-position-adl-quantile-estimation | [`symbol`] | UM Position ADL Quantile Estimation |
123
+
124
+
125
+ ## User Data Streams
126
+
127
+ | Endpoint | Key params | Description |
128
+ |---|---|---|
129
+ | close-user-data-stream | [] | Close User Data Stream |
130
+ | keepalive-user-data-stream | [] | Keepalive User Data Stream |
131
+ | start-user-data-stream | [] | Start User Data Stream |
132
+
133
+ ### Enums
134
+
135
+ **auto-close-type:** `LIQUIDATION` `ADL`
136
+ **new-order-resp-type:** `ACK` `RESULT`
137
+ **position-side:** `BOTH` `LONG` `SHORT`
138
+ **price-match:** `NONE` `OPPONENT` `OPPONENT_5` `OPPONENT_10` `OPPONENT_20` `QUEUE` `QUEUE_5` `QUEUE_10` `QUEUE_20`
139
+ **self-trade-prevention-mode:** `NONE` `EXPIRE_TAKER` `EXPIRE_BOTH` `EXPIRE_MAKER`
140
+ **side-effect-type:** `NO_SIDE_EFFECT` `MARGIN_BUY` `AUTO_REPAY`
141
+ **side:** `BUY` `SELL`
142
+ **stop-limit-time-in-force:** `GTC` `IOC` `FOK`
143
+ **strategy-type:** `STOP` `STOP_MARKET` `LIMIT_MAKER` `TAKE_PROFIT` `TAKE_PROFIT_MARKET` `TRAILING_STOP_MARKET`
144
+ **time-in-force:** `GTC` `IOC` `FOK` `GTX`
145
+ **type:** `LIMIT` `MARKET`
146
+ **working-type:** `MARK_PRICE`
@@ -0,0 +1,15 @@
1
+ ## Market Data (auth required)
2
+
3
+ | Endpoint | Key params | Description |
4
+ |---|---|---|
5
+ | get-dual-investment-product-list | `option-type` `exercised-coin` `invest-coin` [`page-size` `page-index`] | Get Dual Investment product list |
6
+
7
+
8
+ ## Trade (auth required)
9
+
10
+ | Endpoint | Key params | Description |
11
+ |---|---|---|
12
+ | change-auto-compound-status | `position-id` [`auto-compound-plan`] | Change Auto-Compound status |
13
+ | check-dual-investment-accounts | [] | Check Dual Investment accounts |
14
+ | get-dual-investment-positions | [`status` `page-size` `page-index`] | Get Dual Investment positions |
15
+ | subscribe-dual-investment-products | `id` `order-id` `deposit-amount` `auto-compound-plan` [] | Subscribe Dual Investment products |