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.
- package/COMPATIBILITY.md +58 -0
- package/LICENSE +21 -0
- package/README.md +307 -0
- package/README.zh-CN.md +307 -0
- package/SKILL.md +490 -0
- package/adapters/binance-ai.md +22 -0
- package/adapters/claude.md +21 -0
- package/adapters/gemini.md +26 -0
- package/adapters/gpt.md +28 -0
- package/adapters/kimi.md +26 -0
- package/adapters/mimo.md +22 -0
- package/adapters/openclaw.md +29 -0
- package/assets/skillpp-banner.png +0 -0
- package/package.json +59 -0
- package/pipelines.md +310 -0
- package/prompts/newbie-mode.md +48 -0
- package/prompts/router-prompt.md +32 -0
- package/prompts/universal-system-prompt.md +41 -0
- package/registry.md +209 -0
- package/rules.md +323 -0
- package/schemas/audit.schema.json +67 -0
- package/schemas/checkpoint.schema.json +86 -0
- package/schemas/handoff.schema.json +82 -0
- package/schemas/token.schema.json +36 -0
- package/scripts/compatibility-check.mjs +130 -0
- package/scripts/selftest.mjs +384 -0
- package/scripts/skillpp.mjs +448 -0
- package/scripts/validate-skillpp.mjs +140 -0
- package/skillpp.manifest.json +714 -0
- package/skills/audit-plus/SKILL.md +612 -0
- package/skills/binance/binance/CHANGELOG.md +112 -0
- package/skills/binance/binance/LICENSE.md +9 -0
- package/skills/binance/binance/SKILL.md +69 -0
- package/skills/binance/binance/references/algo.md +21 -0
- package/skills/binance/binance/references/alpha.md +9 -0
- package/skills/binance/binance/references/auth.md +32 -0
- package/skills/binance/binance/references/c2c.md +5 -0
- package/skills/binance/binance/references/convert.md +19 -0
- package/skills/binance/binance/references/copy-trading.md +6 -0
- package/skills/binance/binance/references/crypto-loan.md +27 -0
- package/skills/binance/binance/references/derivatives-options-streams.md +25 -0
- package/skills/binance/binance/references/derivatives-options.md +85 -0
- package/skills/binance/binance/references/derivatives-portfolio-margin-pro-streams.md +5 -0
- package/skills/binance/binance/references/derivatives-portfolio-margin-pro.md +34 -0
- package/skills/binance/binance/references/derivatives-portfolio-margin-streams.md +5 -0
- package/skills/binance/binance/references/derivatives-portfolio-margin.md +146 -0
- package/skills/binance/binance/references/dual-investment.md +15 -0
- package/skills/binance/binance/references/fiat.md +9 -0
- package/skills/binance/binance/references/futures-coin-streams.md +29 -0
- package/skills/binance/binance/references/futures-coin.md +109 -0
- package/skills/binance/binance/references/futures-usds-streams.md +35 -0
- package/skills/binance/binance/references/futures-usds.md +144 -0
- package/skills/binance/binance/references/gift-card.md +10 -0
- package/skills/binance/binance/references/margin-trading-streams.md +6 -0
- package/skills/binance/binance/references/margin-trading.md +101 -0
- package/skills/binance/binance/references/mining.md +17 -0
- package/skills/binance/binance/references/pay.md +5 -0
- package/skills/binance/binance/references/rebate.md +5 -0
- package/skills/binance/binance/references/simple-earn.md +56 -0
- package/skills/binance/binance/references/spot-streams.md +25 -0
- package/skills/binance/binance/references/spot.md +114 -0
- package/skills/binance/binance/references/staking.md +59 -0
- package/skills/binance/binance/references/sub-account.md +67 -0
- package/skills/binance/binance/references/vip-loan.md +27 -0
- package/skills/binance/binance/references/wallet.md +75 -0
- package/skills/binance/fiat/CHANGELOG.md +11 -0
- package/skills/binance/fiat/LICENSE.md +9 -0
- package/skills/binance/fiat/SKILL.md +169 -0
- package/skills/binance/fiat/references/authentication.md +126 -0
- package/skills/binance/fiat/references/sapi-endpoints.md +217 -0
- package/skills/binance/onchain-pay/.local.md.example +10 -0
- package/skills/binance/onchain-pay/CHANGELOG.md +20 -0
- package/skills/binance/onchain-pay/LICENSE.md +9 -0
- package/skills/binance/onchain-pay/SKILL.md +466 -0
- package/skills/binance/onchain-pay/references/authentication.md +92 -0
- package/skills/binance/onchain-pay/scripts/sign_and_call.sh +52 -0
- package/skills/binance/p2p/CHANGELOG.md +33 -0
- package/skills/binance/p2p/LICENSE.md +9 -0
- package/skills/binance/p2p/SKILL.md +1082 -0
- package/skills/binance/p2p/references/agent-sapi-api.md +795 -0
- package/skills/binance/p2p/references/authentication.md +100 -0
- package/skills/binance/payment/SKILL.md +824 -0
- package/skills/binance/payment/common.py +560 -0
- package/skills/binance/payment/payment_skill.py +86 -0
- package/skills/binance/payment/receive.py +109 -0
- package/skills/binance/payment/references/setup-guide.md +77 -0
- package/skills/binance/payment/requirements.txt +4 -0
- package/skills/binance/payment/send.py +952 -0
- package/skills/binance/payment/send_extension/__init__.py +43 -0
- package/skills/binance/payment/send_extension/base.py +48 -0
- package/skills/binance/payment/send_extension/c2c.py +193 -0
- package/skills/binance/payment/send_extension/pix.py +316 -0
- package/skills/binance/square-post/README.md +62 -0
- package/skills/binance/square-post/SKILL.md +171 -0
- package/skills/binance/square-post/scripts/lib.mjs +175 -0
- package/skills/binance/square-post/scripts/post-image.mjs +80 -0
- package/skills/binance/square-post/scripts/post-text.mjs +41 -0
- package/skills/binance/square-post/scripts/post-video.mjs +110 -0
- package/skills/binance/square-post/scripts/save-key.mjs +34 -0
- package/skills/binance-web3/binance-agentic-wallet/SKILL.md +150 -0
- package/skills/binance-web3/binance-agentic-wallet/references/authentication.md +136 -0
- package/skills/binance-web3/binance-agentic-wallet/references/limit-order.md +204 -0
- package/skills/binance-web3/binance-agentic-wallet/references/market-order.md +179 -0
- package/skills/binance-web3/binance-agentic-wallet/references/prediction.md +489 -0
- package/skills/binance-web3/binance-agentic-wallet/references/preflight.md +66 -0
- package/skills/binance-web3/binance-agentic-wallet/references/security.md +47 -0
- package/skills/binance-web3/binance-agentic-wallet/references/send.md +53 -0
- package/skills/binance-web3/binance-agentic-wallet/references/wallet-setting.md +86 -0
- package/skills/binance-web3/binance-agentic-wallet/references/wallet-view.md +312 -0
- package/skills/binance-web3/binance-agentic-wallet/references/x402-payment.md +259 -0
- package/skills/binance-web3/binance-tokenized-securities-info/SKILL.md +613 -0
- package/skills/binance-web3/crypto-market-rank/SKILL.md +91 -0
- package/skills/binance-web3/crypto-market-rank/references/cli.md +219 -0
- package/skills/binance-web3/crypto-market-rank/scripts/cli.mjs +149 -0
- package/skills/binance-web3/meme-rush/SKILL.md +72 -0
- package/skills/binance-web3/meme-rush/references/cli.md +158 -0
- package/skills/binance-web3/meme-rush/scripts/cli.mjs +101 -0
- package/skills/binance-web3/query-address-info/SKILL.md +61 -0
- package/skills/binance-web3/query-address-info/references/cli.md +56 -0
- package/skills/binance-web3/query-address-info/scripts/cli.mjs +132 -0
- package/skills/binance-web3/query-token-audit/SKILL.md +162 -0
- package/skills/binance-web3/query-token-info/SKILL.md +83 -0
- package/skills/binance-web3/query-token-info/references/cli.md +135 -0
- package/skills/binance-web3/query-token-info/scripts/cli.mjs +112 -0
- package/skills/binance-web3/trading-signal/SKILL.md +66 -0
- package/skills/binance-web3/trading-signal/references/cli.md +90 -0
- package/skills/binance-web3/trading-signal/scripts/cli.mjs +92 -0
- package/skills/four-meme/four-guard/API-Contract-TaxToken.md +277 -0
- package/skills/four-meme/four-guard/API-CreateToken.02-02-2026.md +285 -0
- package/skills/four-meme/four-guard/API-Documents.03-03-2026.md +789 -0
- package/skills/four-meme/four-guard/AgentIdentifier.abi +585 -0
- package/skills/four-meme/four-guard/README.md +21 -0
- package/skills/four-meme/four-guard/SKILL.md +31 -0
- package/skills/four-meme/four-guard/TaxToken.abi +969 -0
- package/skills/four-meme/four-guard/TokenIdentifierSample.js_ +81 -0
- package/skills/four-meme/four-guard/TokenIdentifierSample.sol +69 -0
- package/skills/four-meme/four-guard/TokenManager.lite.abi +836 -0
- package/skills/four-meme/four-guard/TokenManager2.lite.abi +2325 -0
- package/skills/four-meme/four-guard/TokenManagerHelper3.abi +999 -0
- package/skills/four-meme/four-guard/go.mod +36 -0
- package/skills/four-meme/four-guard/go.sum +127 -0
- package/skills/four-meme/four-guard/main.go +183 -0
- package/skills/four-meme/four-meme-ai/SKILL.md +31 -0
- package/skills/four-meme/four-meme-ai/references/agent-creator-and-wallets.md +87 -0
- package/skills/four-meme/four-meme-ai/references/api-create-token.md +55 -0
- package/skills/four-meme/four-meme-ai/references/contract-addresses.md +47 -0
- package/skills/four-meme/four-meme-ai/references/create-token-scripts.md +131 -0
- package/skills/four-meme/four-meme-ai/references/errors.md +29 -0
- package/skills/four-meme/four-meme-ai/references/event-listening.md +75 -0
- package/skills/four-meme/four-meme-ai/references/execute-trade.md +31 -0
- package/skills/four-meme/four-meme-ai/references/tax-token-query.md +38 -0
- package/skills/four-meme/four-meme-ai/references/token-query-api.md +44 -0
- package/skills/four-meme/four-meme-ai/references/token-tax-info.md +77 -0
- package/skills/four-meme/four-meme-ai/scripts/8004-balance.ts +52 -0
- package/skills/four-meme/four-meme-ai/scripts/8004-register.ts +108 -0
- package/skills/four-meme/four-meme-ai/scripts/create-token-api.ts +321 -0
- package/skills/four-meme/four-meme-ai/scripts/create-token-chain.ts +102 -0
- package/skills/four-meme/four-meme-ai/scripts/create-token-instant.ts +106 -0
- package/skills/four-meme/four-meme-ai/scripts/execute-buy.ts +198 -0
- package/skills/four-meme/four-meme-ai/scripts/execute-sell.ts +150 -0
- package/skills/four-meme/four-meme-ai/scripts/get-public-config.ts +25 -0
- package/skills/four-meme/four-meme-ai/scripts/get-recent-events.ts +76 -0
- package/skills/four-meme/four-meme-ai/scripts/get-tax-token-info.ts +69 -0
- package/skills/four-meme/four-meme-ai/scripts/get-token-info.ts +94 -0
- package/skills/four-meme/four-meme-ai/scripts/quote-buy.ts +85 -0
- package/skills/four-meme/four-meme-ai/scripts/quote-sell.ts +66 -0
- package/skills/four-meme/four-meme-ai/scripts/send-token.ts +98 -0
- package/skills/four-meme/four-meme-ai/scripts/token-get.ts +31 -0
- package/skills/four-meme/four-meme-ai/scripts/token-list.ts +134 -0
- package/skills/four-meme/four-meme-ai/scripts/token-rankings.ts +162 -0
- package/skills/four-meme/four-meme-ai/scripts/verify-events.ts +47 -0
- package/skills/four-meme/four-meme-integration/SKILL.md +374 -0
- package/skills/four-meme/four-meme-integration/references/agent-creator-and-wallets.md +87 -0
- package/skills/four-meme/four-meme-integration/references/api-create-token.md +55 -0
- package/skills/four-meme/four-meme-integration/references/contract-addresses.md +47 -0
- package/skills/four-meme/four-meme-integration/references/create-token-scripts.md +131 -0
- package/skills/four-meme/four-meme-integration/references/errors.md +29 -0
- package/skills/four-meme/four-meme-integration/references/event-listening.md +75 -0
- package/skills/four-meme/four-meme-integration/references/execute-trade.md +31 -0
- package/skills/four-meme/four-meme-integration/references/tax-token-query.md +38 -0
- package/skills/four-meme/four-meme-integration/references/token-query-api.md +44 -0
- package/skills/four-meme/four-meme-integration/references/token-tax-info.md +77 -0
- package/skills/four-meme/four-meme-integration/scripts/8004-balance.ts +52 -0
- package/skills/four-meme/four-meme-integration/scripts/8004-register.ts +108 -0
- package/skills/four-meme/four-meme-integration/scripts/create-token-api.ts +321 -0
- package/skills/four-meme/four-meme-integration/scripts/create-token-chain.ts +102 -0
- package/skills/four-meme/four-meme-integration/scripts/create-token-instant.ts +106 -0
- package/skills/four-meme/four-meme-integration/scripts/execute-buy.ts +198 -0
- package/skills/four-meme/four-meme-integration/scripts/execute-sell.ts +150 -0
- package/skills/four-meme/four-meme-integration/scripts/get-public-config.ts +25 -0
- package/skills/four-meme/four-meme-integration/scripts/get-recent-events.ts +76 -0
- package/skills/four-meme/four-meme-integration/scripts/get-tax-token-info.ts +69 -0
- package/skills/four-meme/four-meme-integration/scripts/get-token-info.ts +94 -0
- package/skills/four-meme/four-meme-integration/scripts/quote-buy.ts +85 -0
- package/skills/four-meme/four-meme-integration/scripts/quote-sell.ts +66 -0
- package/skills/four-meme/four-meme-integration/scripts/send-token.ts +98 -0
- package/skills/four-meme/four-meme-integration/scripts/token-get.ts +31 -0
- package/skills/four-meme/four-meme-integration/scripts/token-list.ts +134 -0
- package/skills/four-meme/four-meme-integration/scripts/token-rankings.ts +162 -0
- package/skills/four-meme/four-meme-integration/scripts/verify-events.ts +47 -0
- package/skills/skillpp/contract-profiler/SKILL.md +118 -0
- package/skills/skillpp/newbie-tutor/SKILL.md +85 -0
- package/skills/skillpp/opportunity-board/SKILL.md +87 -0
- package/skills/skillpp/risk-fusion/SKILL.md +146 -0
- package/skills/skillpp/scam-pattern-lab/SKILL.md +115 -0
- package/skills/skillpp/wallet-doctor/SKILL.md +119 -0
- package/skills/skillpp/watchtower/SKILL.md +72 -0
- package/tests/compatibility/v0.1.0.json +117 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
## Account (auth required)
|
|
2
|
+
|
|
3
|
+
| Endpoint | Key params | Description |
|
|
4
|
+
|---|---|---|
|
|
5
|
+
| account-commission | `symbol` [] | Query Commission Rates |
|
|
6
|
+
| all-order-list | [`from-id` `start-time` `end-time` `limit`] | Query all Order lists |
|
|
7
|
+
| all-orders | `symbol` [`order-id` `start-time` `end-time` `limit`] | All orders |
|
|
8
|
+
| get-account | [`omit-zero-balances`] | Account information |
|
|
9
|
+
| get-open-orders | [`symbol`] | Current open orders |
|
|
10
|
+
| get-order | `symbol` [`order-id` `orig-client-order-id`] | Query order |
|
|
11
|
+
| get-order-list | [`order-list-id` `orig-client-order-id`] | Query Order list |
|
|
12
|
+
| my-allocations | `symbol` [`start-time` `end-time` `from-allocation-id` `limit` `order-id`] | Query Allocations |
|
|
13
|
+
| my-filters | `symbol` [] | Query relevant filters |
|
|
14
|
+
| my-prevented-matches | `symbol` [`prevented-match-id` `order-id` `from-prevented-match-id` `limit`] | Query Prevented Matches |
|
|
15
|
+
| my-trades | `symbol` [`order-id` `start-time` `end-time` `from-id` `limit`] | Account trade list |
|
|
16
|
+
| open-order-list | [] | Query Open Order lists |
|
|
17
|
+
| order-amendments | `symbol` `order-id` [`from-execution-id` `limit`] | Query Order Amendments |
|
|
18
|
+
| rate-limit-order | [] | Query Unfilled Order Count |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## General
|
|
22
|
+
|
|
23
|
+
| Endpoint | Key params | Description |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| exchange-info | [`symbol` `symbols` `permissions` `show-permission-sets` `symbol-status`] | Exchange information |
|
|
26
|
+
| execution-rules | [`symbol` `symbols` `symbol-status`] | Query Execution Rules |
|
|
27
|
+
| ping | [] | Test connectivity |
|
|
28
|
+
| time | [] | Check server time |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Market
|
|
32
|
+
|
|
33
|
+
| Endpoint | Key params | Description |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| agg-trades | `symbol` [`from-id` `start-time` `end-time` `limit`] | Compressed/Aggregate trades list |
|
|
36
|
+
| avg-price | `symbol` [] | Current average price |
|
|
37
|
+
| depth | `symbol` [`limit` `symbol-status`] | Order book |
|
|
38
|
+
| get-trades | `symbol` [`limit`] | Recent trades list |
|
|
39
|
+
| historical-block-trades | `symbol` `from-id` [`limit`] | Historical Block Trades |
|
|
40
|
+
| historical-trades | `symbol` [`limit` `from-id`] | Old trade lookup |
|
|
41
|
+
| klines | `symbol` `interval` [`start-time` `end-time` `time-zone` `limit`] | Kline/Candlestick data |
|
|
42
|
+
| reference-price | `symbol` [] | Query Reference Price |
|
|
43
|
+
| reference-price-calculation | `symbol` [`symbol-status`] | Query Reference Price Calculation |
|
|
44
|
+
| ticker | [`symbol` `symbols` `window-size` `type` `symbol-status`] | Rolling window price change statistics |
|
|
45
|
+
| ticker24hr | [`symbol` `symbols` `type` `symbol-status`] | 24hr ticker price change statistics |
|
|
46
|
+
| ticker-book-ticker | [`symbol` `symbols` `symbol-status`] | Symbol order book ticker |
|
|
47
|
+
| ticker-price | [`symbol` `symbols` `symbol-status`] | Symbol price ticker |
|
|
48
|
+
| ticker-trading-day | [`symbol` `symbols` `time-zone` `type` `symbol-status`] | Trading Day Ticker |
|
|
49
|
+
| ui-klines | `symbol` `interval` [`start-time` `end-time` `time-zone` `limit`] | UIKlines |
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Trade (auth required)
|
|
53
|
+
|
|
54
|
+
| Endpoint | Key params | Description |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| delete-open-orders | `symbol` [] | Cancel All Open Orders on a Symbol |
|
|
57
|
+
| delete-order | `symbol` [`order-id` `orig-client-order-id` `new-client-order-id` `cancel-restrictions`] | Cancel order |
|
|
58
|
+
| delete-order-list | `symbol` [`order-list-id` `list-client-order-id` `new-client-order-id`] | Cancel Order list |
|
|
59
|
+
| new-order | `symbol` `side` `type` [`time-in-force` `quantity` `quote-order-qty` `price` `new-client-order-id` `strategy-id` `strategy-type` `stop-price` `trailing-delta` `iceberg-qty` `new-order-resp-type` `self-trade-prevention-mode` `peg-price-type` `peg-offset-value` `peg-offset-type`] | New order |
|
|
60
|
+
| order-amend-keep-priority | `symbol` `new-qty` [`order-id` `orig-client-order-id` `new-client-order-id`] | Order Amend Keep Priority |
|
|
61
|
+
| order-cancel-replace | `symbol` `side` `type` `cancel-replace-mode` [`time-in-force` `quantity` `quote-order-qty` `price` `cancel-new-client-order-id` `cancel-orig-client-order-id` `cancel-order-id` `new-client-order-id` `strategy-id` `strategy-type` `stop-price` `trailing-delta` `iceberg-qty` `new-order-resp-type` `self-trade-prevention-mode` `cancel-restrictions` `order-rate-limit-exceeded-mode` `peg-price-type` `peg-offset-value` `peg-offset-type`] | Cancel an Existing Order and Send a New Order |
|
|
62
|
+
| order-list-oco | `symbol` `side` `quantity` `above-type` `below-type` [`list-client-order-id` `above-client-order-id` `above-iceberg-qty` `above-price` `above-stop-price` `above-trailing-delta` `above-time-in-force` `above-strategy-id` `above-strategy-type` `above-peg-price-type` `above-peg-offset-type` `above-peg-offset-value` `below-client-order-id` `below-iceberg-qty` `below-price` `below-stop-price` `below-trailing-delta` `below-time-in-force` `below-strategy-id` `below-strategy-type` `below-peg-price-type` `below-peg-offset-type` `below-peg-offset-value` `new-order-resp-type` `self-trade-prevention-mode`] | New Order list - OCO |
|
|
63
|
+
| order-list-opo | `symbol` `working-type` `working-side` `working-price` `working-quantity` `pending-type` `pending-side` [`list-client-order-id` `new-order-resp-type` `self-trade-prevention-mode` `working-client-order-id` `working-iceberg-qty` `working-time-in-force` `working-strategy-id` `working-strategy-type` `working-peg-price-type` `working-peg-offset-type` `working-peg-offset-value` `pending-client-order-id` `pending-price` `pending-stop-price` `pending-trailing-delta` `pending-iceberg-qty` `pending-time-in-force` `pending-strategy-id` `pending-strategy-type` `pending-peg-price-type` `pending-peg-offset-type` `pending-peg-offset-value`] | New Order List - OPO |
|
|
64
|
+
| order-list-opoco | `symbol` `working-type` `working-side` `working-price` `working-quantity` `pending-side` `pending-above-type` [`list-client-order-id` `new-order-resp-type` `self-trade-prevention-mode` `working-client-order-id` `working-iceberg-qty` `working-time-in-force` `working-strategy-id` `working-strategy-type` `working-peg-price-type` `working-peg-offset-type` `working-peg-offset-value` `pending-above-client-order-id` `pending-above-price` `pending-above-stop-price` `pending-above-trailing-delta` `pending-above-iceberg-qty` `pending-above-time-in-force` `pending-above-strategy-id` `pending-above-strategy-type` `pending-above-peg-price-type` `pending-above-peg-offset-type` `pending-above-peg-offset-value` `pending-below-type` `pending-below-client-order-id` `pending-below-price` `pending-below-stop-price` `pending-below-trailing-delta` `pending-below-iceberg-qty` `pending-below-time-in-force` `pending-below-strategy-id` `pending-below-strategy-type` `pending-below-peg-price-type` `pending-below-peg-offset-type` `pending-below-peg-offset-value`] | New Order List - OPOCO |
|
|
65
|
+
| order-list-oto | `symbol` `working-type` `working-side` `working-price` `working-quantity` `pending-type` `pending-side` `pending-quantity` [`list-client-order-id` `new-order-resp-type` `self-trade-prevention-mode` `working-client-order-id` `working-iceberg-qty` `working-time-in-force` `working-strategy-id` `working-strategy-type` `working-peg-price-type` `working-peg-offset-type` `working-peg-offset-value` `pending-client-order-id` `pending-price` `pending-stop-price` `pending-trailing-delta` `pending-iceberg-qty` `pending-time-in-force` `pending-strategy-id` `pending-strategy-type` `pending-peg-price-type` `pending-peg-offset-type` `pending-peg-offset-value`] | New Order list - OTO |
|
|
66
|
+
| order-list-otoco | `symbol` `working-type` `working-side` `working-price` `working-quantity` `pending-side` `pending-quantity` `pending-above-type` [`list-client-order-id` `new-order-resp-type` `self-trade-prevention-mode` `working-client-order-id` `working-iceberg-qty` `working-time-in-force` `working-strategy-id` `working-strategy-type` `working-peg-price-type` `working-peg-offset-type` `working-peg-offset-value` `pending-above-client-order-id` `pending-above-price` `pending-above-stop-price` `pending-above-trailing-delta` `pending-above-iceberg-qty` `pending-above-time-in-force` `pending-above-strategy-id` `pending-above-strategy-type` `pending-above-peg-price-type` `pending-above-peg-offset-type` `pending-above-peg-offset-value` `pending-below-type` `pending-below-client-order-id` `pending-below-price` `pending-below-stop-price` `pending-below-trailing-delta` `pending-below-iceberg-qty` `pending-below-time-in-force` `pending-below-strategy-id` `pending-below-strategy-type` `pending-below-peg-price-type` `pending-below-peg-offset-type` `pending-below-peg-offset-value`] | New Order list - OTOCO |
|
|
67
|
+
| order-oco | `symbol` `side` `quantity` `price` `stop-price` [`list-client-order-id` `limit-client-order-id` `limit-strategy-id` `limit-strategy-type` `limit-iceberg-qty` `trailing-delta` `stop-client-order-id` `stop-strategy-id` `stop-strategy-type` `stop-limit-price` `stop-iceberg-qty` `stop-limit-time-in-force` `new-order-resp-type` `self-trade-prevention-mode`] | New OCO - Deprecated |
|
|
68
|
+
| order-test | `symbol` `side` `type` [`compute-commission-rates` `time-in-force` `quantity` `quote-order-qty` `price` `new-client-order-id` `strategy-id` `strategy-type` `stop-price` `trailing-delta` `iceberg-qty` `new-order-resp-type` `self-trade-prevention-mode` `peg-price-type` `peg-offset-value` `peg-offset-type`] | Test new order |
|
|
69
|
+
| sor-order | `symbol` `side` `type` `quantity` [`time-in-force` `price` `new-client-order-id` `strategy-id` `strategy-type` `iceberg-qty` `new-order-resp-type` `self-trade-prevention-mode`] | New order using SOR |
|
|
70
|
+
| sor-order-test | `symbol` `side` `type` `quantity` [`compute-commission-rates` `time-in-force` `price` `new-client-order-id` `strategy-id` `strategy-type` `iceberg-qty` `new-order-resp-type` `self-trade-prevention-mode`] | Test new order using SOR |
|
|
71
|
+
|
|
72
|
+
### Enums
|
|
73
|
+
|
|
74
|
+
**above-peg-offset-type:** `PRICE_LEVEL`
|
|
75
|
+
**above-peg-price-type:** `PRIMARY_PEG` `MARKET_PEG`
|
|
76
|
+
**above-time-in-force:** `GTC` `IOC` `FOK`
|
|
77
|
+
**above-type:** `STOP_LOSS_LIMIT` `STOP_LOSS` `LIMIT_MAKER` `TAKE_PROFIT` `TAKE_PROFIT_LIMIT`
|
|
78
|
+
**below-peg-offset-type:** `PRICE_LEVEL`
|
|
79
|
+
**below-peg-price-type:** `PRIMARY_PEG` `MARKET_PEG`
|
|
80
|
+
**below-time-in-force:** `GTC` `IOC` `FOK`
|
|
81
|
+
**below-type:** `STOP_LOSS` `STOP_LOSS_LIMIT` `TAKE_PROFIT` `TAKE_PROFIT_LIMIT`
|
|
82
|
+
**cancel-replace-mode:** `STOP_ON_FAILURE` `ALLOW_FAILURE`
|
|
83
|
+
**cancel-restrictions:** `ONLY_NEW` `NEW` `ONLY_PARTIALLY_FILLED` `PARTIALLY_FILLED`
|
|
84
|
+
**interval:** `1s` `1m` `3m` `5m` `15m` `30m` `1h` `2h` `4h` `6h` `8h` `12h` `1d` `3d` `1w` `1M`
|
|
85
|
+
**new-order-resp-type:** `ACK` `RESULT` `FULL` `MARKET` `LIMIT`
|
|
86
|
+
**order-rate-limit-exceeded-mode:** `DO_NOTHING` `CANCEL_ONLY`
|
|
87
|
+
**peg-offset-type:** `PRICE_LEVEL` `NON_REPRESENTABLE`
|
|
88
|
+
**peg-price-type:** `PRIMARY_PEG` `MARKET_PEG` `NON_REPRESENTABLE`
|
|
89
|
+
**pending-above-peg-offset-type:** `PRICE_LEVEL`
|
|
90
|
+
**pending-above-peg-price-type:** `PRIMARY_PEG` `MARKET_PEG`
|
|
91
|
+
**pending-above-time-in-force:** `GTC` `IOC` `FOK`
|
|
92
|
+
**pending-above-type:** `STOP_LOSS_LIMIT` `STOP_LOSS` `LIMIT_MAKER` `TAKE_PROFIT` `TAKE_PROFIT_LIMIT`
|
|
93
|
+
**pending-below-peg-offset-type:** `PRICE_LEVEL`
|
|
94
|
+
**pending-below-peg-price-type:** `PRIMARY_PEG` `MARKET_PEG`
|
|
95
|
+
**pending-below-time-in-force:** `GTC` `IOC` `FOK`
|
|
96
|
+
**pending-below-type:** `STOP_LOSS` `STOP_LOSS_LIMIT` `TAKE_PROFIT` `TAKE_PROFIT_LIMIT`
|
|
97
|
+
**pending-peg-offset-type:** `PRICE_LEVEL`
|
|
98
|
+
**pending-peg-price-type:** `PRIMARY_PEG` `MARKET_PEG`
|
|
99
|
+
**pending-side:** `BUY` `SELL`
|
|
100
|
+
**pending-time-in-force:** `GTC` `IOC` `FOK`
|
|
101
|
+
**pending-type:** `LIMIT` `MARKET` `STOP_LOSS` `STOP_LOSS_LIMIT` `TAKE_PROFIT` `TAKE_PROFIT_LIMIT` `LIMIT_MAKER`
|
|
102
|
+
**self-trade-prevention-mode:** `NONE` `EXPIRE_TAKER` `EXPIRE_MAKER` `EXPIRE_BOTH` `DECREMENT` `TRANSFER` `NON_REPRESENTABLE`
|
|
103
|
+
**side:** `BUY` `SELL`
|
|
104
|
+
**stop-limit-time-in-force:** `GTC` `IOC` `FOK`
|
|
105
|
+
**symbol-status:** `TRADING` `END_OF_DAY` `HALT` `BREAK` `NON_REPRESENTABLE`
|
|
106
|
+
**time-in-force:** `GTC` `IOC` `FOK` `NON_REPRESENTABLE`
|
|
107
|
+
**type:** `FULL` `MINI`
|
|
108
|
+
**type:** `MARKET` `LIMIT` `STOP_LOSS` `STOP_LOSS_LIMIT` `TAKE_PROFIT` `TAKE_PROFIT_LIMIT` `LIMIT_MAKER` `NON_REPRESENTABLE`
|
|
109
|
+
**window-size:** `1m` `2m` `3m` `4m` `5m` `6m` `7m` `8m` `9m` `10m` `11m` `12m` `13m` `14m` `15m` `16m` `17m` `18m` `19m` `20m` `21m` `22m` `23m` `24m` `25m` `26m` `27m` `28m` `29m` `30m` `31m` `32m` `33m` `34m` `35m` `36m` `37m` `38m` `39m` `40m` `41m` `42m` `43m` `44m` `45m` `46m` `47m` `48m` `49m` `50m` `51m` `52m` `53m` `54m` `55m` `56m` `57m` `58m` `59m` `1h` `2h` `3h` `4h` `5h` `6h` `7h` `8h` `9h` `10h` `11h` `12h` `13h` `14h` `15h` `16h` `17h` `18h` `19h` `20h` `21h` `22h` `23h` `1d` `2d` `3d` `4d` `5d` `6d`
|
|
110
|
+
**working-peg-offset-type:** `PRICE_LEVEL`
|
|
111
|
+
**working-peg-price-type:** `PRIMARY_PEG` `MARKET_PEG`
|
|
112
|
+
**working-side:** `BUY` `SELL`
|
|
113
|
+
**working-time-in-force:** `GTC` `IOC` `FOK`
|
|
114
|
+
**working-type:** `LIMIT` `LIMIT_MAKER`
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
## Eth Staking (auth required)
|
|
2
|
+
|
|
3
|
+
| Endpoint | Key params | Description |
|
|
4
|
+
|---|---|---|
|
|
5
|
+
| eth-staking-account | [] | ETH Staking account |
|
|
6
|
+
| get-current-eth-staking-quota | [] | Get current ETH staking quota |
|
|
7
|
+
| get-eth-redemption-history | [`redeem-id` `start-time` `end-time` `current` `size`] | Get ETH redemption history |
|
|
8
|
+
| get-eth-staking-history | [`purchase-id` `start-time` `end-time` `current` `size`] | Get ETH staking history |
|
|
9
|
+
| get-wbeth-rate-history | [`start-time` `end-time` `current` `size`] | Get WBETH Rate History |
|
|
10
|
+
| get-wbeth-rewards-history | [`start-time` `end-time` `current` `size`] | Get WBETH rewards history |
|
|
11
|
+
| get-wbeth-unwrap-history | [`start-time` `end-time` `current` `size`] | Get WBETH unwrap history |
|
|
12
|
+
| get-wbeth-wrap-history | [`start-time` `end-time` `current` `size`] | Get WBETH wrap history |
|
|
13
|
+
| redeem-eth | `amount` [`asset`] | Redeem ETH |
|
|
14
|
+
| subscribe-eth-staking | `amount` [] | Subscribe ETH Staking |
|
|
15
|
+
| wrap-beth | `amount` [] | Wrap BETH |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## On Chain Yields (auth required)
|
|
19
|
+
|
|
20
|
+
| Endpoint | Key params | Description |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| get-on-chain-yields-locked-personal-left-quota | `project-id` [] | Get On-chain Yields Locked Personal Left Quota |
|
|
23
|
+
| get-on-chain-yields-locked-product-list | [`asset` `current` `size`] | Get On-chain Yields Locked Product List |
|
|
24
|
+
| get-on-chain-yields-locked-product-position | [`asset` `position-id` `project-id` `current` `size`] | Get On-chain Yields Locked Product Position |
|
|
25
|
+
| get-on-chain-yields-locked-redemption-record | [`position-id` `redeem-id` `asset` `start-time` `end-time` `current` `size`] | Get On-chain Yields Locked Redemption Record |
|
|
26
|
+
| get-on-chain-yields-locked-rewards-history | [`position-id` `asset` `start-time` `end-time` `current` `size`] | Get On-chain Yields Locked Rewards History |
|
|
27
|
+
| get-on-chain-yields-locked-subscription-preview | `project-id` `amount` [`auto-subscribe`] | Get On-chain Yields Locked Subscription Preview |
|
|
28
|
+
| get-on-chain-yields-locked-subscription-record | [`purchase-id` `client-id` `asset` `start-time` `end-time` `current` `size`] | Get On-chain Yields Locked Subscription Record |
|
|
29
|
+
| on-chain-yields-account | [] | On-chain Yields Account |
|
|
30
|
+
| redeem-on-chain-yields-locked-product | `position-id` [`channel-id`] | Redeem On-chain Yields Locked Product |
|
|
31
|
+
| set-on-chain-yields-locked-auto-subscribe | `position-id` `auto-subscribe` [] | Set On-chain Yields Locked Auto Subscribe |
|
|
32
|
+
| set-on-chain-yields-locked-product-redeem-option | `position-id` `redeem-to` [] | Set On-chain Yields Locked Product Redeem Option |
|
|
33
|
+
| subscribe-on-chain-yields-locked-product | `project-id` `amount` [`auto-subscribe` `source-account` `redeem-to` `channel-id` `client-id`] | Subscribe On-chain Yields Locked Product |
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Soft Staking (auth required)
|
|
37
|
+
|
|
38
|
+
| Endpoint | Key params | Description |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| get-soft-staking-product-list | [`asset` `current` `size`] | Get Soft Staking Product List |
|
|
41
|
+
| get-soft-staking-rewards-history | [`asset` `start-time` `end-time` `current` `size`] | Get Soft Staking Rewards History |
|
|
42
|
+
| set-soft-staking | `soft-staking` [] | Set Soft Staking |
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Sol Staking (auth required)
|
|
46
|
+
|
|
47
|
+
| Endpoint | Key params | Description |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| claim-boost-rewards | [] | Claim Boost Rewards |
|
|
50
|
+
| get-bnsol-rate-history | [`start-time` `end-time` `current` `size`] | Get BNSOL Rate History |
|
|
51
|
+
| get-bnsol-rewards-history | [`start-time` `end-time` `current` `size`] | Get BNSOL rewards history |
|
|
52
|
+
| get-boost-rewards-history | `type` [`start-time` `end-time` `current` `size`] | Get Boost Rewards History |
|
|
53
|
+
| get-sol-redemption-history | [`redeem-id` `start-time` `end-time` `current` `size`] | Get SOL redemption history |
|
|
54
|
+
| get-sol-staking-history | [`purchase-id` `start-time` `end-time` `current` `size`] | Get SOL staking history |
|
|
55
|
+
| get-sol-staking-quota-details | [] | Get SOL staking quota details |
|
|
56
|
+
| get-unclaimed-rewards | [] | Get Unclaimed Rewards |
|
|
57
|
+
| redeem-sol | `amount` [] | Redeem SOL |
|
|
58
|
+
| sol-staking-account | [] | SOL Staking account |
|
|
59
|
+
| subscribe-sol-staking | `amount` [] | Subscribe SOL Staking |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
## Account Management (auth required)
|
|
2
|
+
|
|
3
|
+
| Endpoint | Key params | Description |
|
|
4
|
+
|---|---|---|
|
|
5
|
+
| create-a-virtual-sub-account | `sub-account-string` [] | Create a Virtual Sub-account (For Master Account) |
|
|
6
|
+
| enable-futures-for-sub-account | `email` [] | Enable Futures for Sub-account (For Master Account) |
|
|
7
|
+
| enable-options-for-sub-account | `email` [] | Enable Options for Sub-account (For Master Account) |
|
|
8
|
+
| get-futures-position-risk-of-sub-account | `email` [] | Get Futures Position-Risk of Sub-account (For Master Account) |
|
|
9
|
+
| get-futures-position-risk-of-sub-account-v2 | `email` `futures-type` [] | Get Futures Position-Risk of Sub-account V2 (For Master Account) |
|
|
10
|
+
| get-sub-accounts-status-on-margin-or-futures | [`email`] | Get Sub-account\'s Status on Margin Or Futures (For Master Account) |
|
|
11
|
+
| query-sub-account-list | [`email` `is-freeze` `page` `limit`] | Query Sub-account List (For Master Account) |
|
|
12
|
+
| query-sub-account-transaction-statistics | [`email`] | Query Sub-account Transaction Statistics (For Master Account) |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Api Management (auth required)
|
|
16
|
+
|
|
17
|
+
| Endpoint | Key params | Description |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| add-ip-restriction-for-sub-account-api-key | `email` `sub-account-api-key` `status` [`ip-address`] | Add IP Restriction for Sub-Account API key (For Master Account) |
|
|
20
|
+
| delete-ip-list-for-a-sub-account-api-key | `email` `sub-account-api-key` `ip-address` [] | Delete IP List For a Sub-account API Key (For Master Account) |
|
|
21
|
+
| get-ip-restriction-for-a-sub-account-api-key | `email` `sub-account-api-key` [] | Get IP Restriction for a Sub-account API Key (For Master Account) |
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Asset Management (auth required)
|
|
25
|
+
|
|
26
|
+
| Endpoint | Key params | Description |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| futures-transfer-for-sub-account | `email` `asset` `amount` `type` [] | Futures Transfer for Sub-account (For Master Account) |
|
|
29
|
+
| get-detail-on-sub-accounts-futures-account | `email` [] | Get Detail on Sub-account\'s Futures Account (For Master Account) |
|
|
30
|
+
| get-detail-on-sub-accounts-futures-account-v2 | `email` `futures-type` [] | Get Detail on Sub-account\'s Futures Account V2 (For Master Account) |
|
|
31
|
+
| get-detail-on-sub-accounts-margin-account | `email` [] | Get Detail on Sub-account\'s Margin Account (For Master Account) |
|
|
32
|
+
| get-move-position-history-for-sub-account | `symbol` `page` `rows` [`start-time` `end-time`] | Get Move Position History for Sub-account (For Master Account) |
|
|
33
|
+
| get-sub-account-deposit-address | `email` `coin` [`network` `amount`] | Get Sub-account Deposit Address (For Master Account) |
|
|
34
|
+
| get-sub-account-deposit-history | `email` [`coin` `status` `start-time` `end-time` `limit` `offset` `tx-id`] | Get Sub-account Deposit History (For Master Account) |
|
|
35
|
+
| get-summary-of-sub-accounts-futures-account | `page` `limit` [] | Get Summary of Sub-account\'s Futures Account (For Master Account) |
|
|
36
|
+
| get-summary-of-sub-accounts-futures-account-v2 | `futures-type` [`page` `limit`] | Get Summary of Sub-account\'s Futures Account V2 (For Master Account) |
|
|
37
|
+
| get-summary-of-sub-accounts-margin-account | [] | Get Summary of Sub-account\'s Margin Account (For Master Account) |
|
|
38
|
+
| margin-transfer-for-sub-account | `email` `asset` `amount` `type` [] | Margin Transfer for Sub-account (For Master Account) |
|
|
39
|
+
| move-position-for-sub-account | `from-user-email` `to-user-email` `product-type` `order-args` [] | Move Position for Sub-account (For Master Account) |
|
|
40
|
+
| query-sub-account-assets | `email` [] | Query Sub-account Assets (For Master Account) |
|
|
41
|
+
| query-sub-account-assets-asset-management | `email` [] | Query Sub-account Assets (For Master Account) |
|
|
42
|
+
| query-sub-account-futures-asset-transfer-history | `email` `futures-type` [`start-time` `end-time` `page` `limit`] | Query Sub-account Futures Asset Transfer History (For Master Account) |
|
|
43
|
+
| query-sub-account-spot-asset-transfer-history | [`from-email` `to-email` `start-time` `end-time` `page` `limit`] | Query Sub-account Spot Asset Transfer History (For Master Account) |
|
|
44
|
+
| query-sub-account-spot-assets-summary | [`email` `page` `size`] | Query Sub-account Spot Assets Summary (For Master Account) |
|
|
45
|
+
| query-universal-transfer-history | [`from-email` `to-email` `client-tran-id` `start-time` `end-time` `page` `limit`] | Query Universal Transfer History (For Master Account) |
|
|
46
|
+
| sub-account-futures-asset-transfer | `from-email` `to-email` `futures-type` `asset` `amount` [] | Sub-account Futures Asset Transfer (For Master Account) |
|
|
47
|
+
| sub-account-transfer-history | [`asset` `type` `start-time` `end-time` `limit` `return-fail-history`] | Sub-account Transfer History (For Sub-account) |
|
|
48
|
+
| transfer-to-master | `asset` `amount` [] | Transfer to Master (For Sub-account) |
|
|
49
|
+
| transfer-to-sub-account-of-same-master | `to-email` `asset` `amount` [] | Transfer to Sub-account of Same Master (For Sub-account) |
|
|
50
|
+
| universal-transfer | `from-account-type` `to-account-type` `asset` `amount` [`from-email` `to-email` `client-tran-id` `symbol`] | Universal Transfer (For Master Account) |
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Managed Sub Account (auth required)
|
|
54
|
+
|
|
55
|
+
| Endpoint | Key params | Description |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| deposit-assets-into-the-managed-sub-account | `to-email` `asset` `amount` [] | Deposit Assets Into The Managed Sub-account (For Investor Master Account) |
|
|
58
|
+
| get-managed-sub-account-deposit-address | `email` `coin` [`network` `amount`] | Get Managed Sub-account Deposit Address (For Investor Master Account) |
|
|
59
|
+
| query-managed-sub-account-asset-details | `email` [] | Query Managed Sub-account Asset Details (For Investor Master Account) |
|
|
60
|
+
| query-managed-sub-account-futures-asset-details | `email` [`account-type`] | Query Managed Sub-account Futures Asset Details (For Investor Master Account) |
|
|
61
|
+
| query-managed-sub-account-list | [`email` `page` `limit`] | Query Managed Sub-account List (For Investor) |
|
|
62
|
+
| query-managed-sub-account-margin-asset-details | `email` [`account-type`] | Query Managed Sub-account Margin Asset Details (For Investor Master Account) |
|
|
63
|
+
| query-managed-sub-account-snapshot | `email` `type` [`start-time` `end-time` `limit`] | Query Managed Sub-account Snapshot (For Investor Master Account) |
|
|
64
|
+
| query-managed-sub-account-transfer-log-master-account-investor | `email` `start-time` `end-time` `page` `limit` [`transfers` `transfer-function-account-type`] | Query Managed Sub Account Transfer Log (For Investor Master Account) |
|
|
65
|
+
| query-managed-sub-account-transfer-log-master-account-trading | `email` `start-time` `end-time` `page` `limit` [`transfers` `transfer-function-account-type`] | Query Managed Sub Account Transfer Log (For Trading Team Master Account) |
|
|
66
|
+
| query-managed-sub-account-transfer-log-sub-account-trading | `start-time` `end-time` `page` `limit` [`transfers` `transfer-function-account-type`] | Query Managed Sub Account Transfer Log (For Trading Team Sub Account) |
|
|
67
|
+
| withdrawl-assets-from-the-managed-sub-account | `from-email` `asset` `amount` [`transfer-date`] | Withdrawl Assets From The Managed Sub-account (For Investor Master Account) |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## Market Data (auth required)
|
|
2
|
+
|
|
3
|
+
| Endpoint | Key params | Description |
|
|
4
|
+
|---|---|---|
|
|
5
|
+
| get-borrow-interest-rate | `loan-coin` [] | Get Borrow Interest Rate |
|
|
6
|
+
| get-collateral-asset-data | [`collateral-coin`] | Get Collateral Asset Data |
|
|
7
|
+
| get-loanable-assets-data | [`loan-coin` `vip-level`] | Get Loanable Assets Data |
|
|
8
|
+
| get-vip-loan-interest-rate-history | `coin` [`start-time` `end-time` `current` `limit`] | Get VIP Loan Interest Rate History |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Trade (auth required)
|
|
12
|
+
|
|
13
|
+
| Endpoint | Key params | Description |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| vip-loan-borrow | `loan-account-id` `loan-coin` `loan-amount` `collateral-account-id` `collateral-coin` `is-flexible-rate` [`loan-term`] | VIP Loan Borrow |
|
|
16
|
+
| vip-loan-renew | `order-id` `loan-term` [] | VIP Loan Renew |
|
|
17
|
+
| vip-loan-repay | `order-id` `amount` [] | VIP Loan Repay |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## User Information (auth required)
|
|
21
|
+
|
|
22
|
+
| Endpoint | Key params | Description |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| check-vip-loan-collateral-account | [`order-id` `collateral-account-id`] | Check VIP Loan Collateral Account |
|
|
25
|
+
| get-vip-loan-accrued-interest | [`order-id` `loan-coin` `start-time` `end-time` `current` `limit`] | Get VIP Loan Accrued Interest |
|
|
26
|
+
| get-vip-loan-ongoing-orders | [`order-id` `collateral-account-id` `loan-coin` `collateral-coin` `current` `limit`] | Get VIP Loan Ongoing Orders |
|
|
27
|
+
| query-application-status | [`current` `limit`] | Query Application Status |
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
## Account (auth required)
|
|
2
|
+
|
|
3
|
+
| Endpoint | Key params | Description |
|
|
4
|
+
|---|---|---|
|
|
5
|
+
| account-api-trading-status | [] | Account API Trading Status |
|
|
6
|
+
| account-info | [] | Account info |
|
|
7
|
+
| account-status | [] | Account Status |
|
|
8
|
+
| daily-account-snapshot | `type` [`start-time` `end-time` `limit`] | Daily Account Snapshot |
|
|
9
|
+
| disable-fast-withdraw-switch | [] | Disable Fast Withdraw Switch |
|
|
10
|
+
| enable-fast-withdraw-switch | [] | Enable Fast Withdraw Switch |
|
|
11
|
+
| get-api-key-permission | [] | Get API Key Permission |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Asset (auth required)
|
|
15
|
+
|
|
16
|
+
| Endpoint | Key params | Description |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| asset-detail | [`asset`] | Asset Detail |
|
|
19
|
+
| asset-dividend-record | [`asset` `start-time` `end-time` `limit`] | Asset Dividend Record |
|
|
20
|
+
| dust-convert | `asset` [`client-id` `target-asset` `third-party-client-id` `dust-quota-asset-to-target-asset-price`] | Dust Convert |
|
|
21
|
+
| dust-convertible-assets | `target-asset` [`dust-quota-asset-to-target-asset-price`] | Dust Convertible Assets |
|
|
22
|
+
| dust-transfer | `asset` [`account-type`] | Dust Transfer |
|
|
23
|
+
| dustlog | [`account-type` `start-time` `end-time`] | DustLog |
|
|
24
|
+
| funding-wallet | [`asset` `need-btc-valuation`] | Funding Wallet |
|
|
25
|
+
| get-assets-that-can-be-converted-into-bnb | [`account-type`] | Get Assets That Can Be Converted Into BNB |
|
|
26
|
+
| get-cloud-mining-payment-and-refund-history | `start-time` `end-time` [`tran-id` `client-tran-id` `asset` `current` `size`] | Get Cloud-Mining payment and refund history |
|
|
27
|
+
| get-open-symbol-list | [] | Get Open Symbol List |
|
|
28
|
+
| query-user-delegation-history | `email` `start-time` `end-time` [`type` `asset` `current` `size`] | Query User Delegation History(For Master Account) |
|
|
29
|
+
| query-user-universal-transfer-history | `type` [`start-time` `end-time` `current` `size` `from-symbol` `to-symbol`] | Query User Universal Transfer History |
|
|
30
|
+
| query-user-wallet-balance | [`quote-asset`] | Query User Wallet Balance |
|
|
31
|
+
| toggle-bnb-burn-on-spot-trade-and-margin-interest | [`spot-bnb-burn` `interest-bnb-burn`] | Toggle BNB Burn On Spot Trade And Margin Interest |
|
|
32
|
+
| trade-fee | [`symbol`] | Trade Fee |
|
|
33
|
+
| user-asset | [`asset` `need-btc-valuation`] | User Asset |
|
|
34
|
+
| user-universal-transfer | `type` `asset` `amount` [`from-symbol` `to-symbol`] | User Universal Transfer |
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Capital (auth required)
|
|
38
|
+
|
|
39
|
+
| Endpoint | Key params | Description |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| all-coins-information | [] | All Coins\' Information |
|
|
42
|
+
| deposit-address | `coin` [`network` `amount`] | Deposit Address(supporting network) |
|
|
43
|
+
| deposit-history | [`include-source` `coin` `status` `start-time` `end-time` `offset` `limit` `tx-id`] | Deposit History (supporting network) |
|
|
44
|
+
| fetch-deposit-address-list-with-network | `coin` [`network`] | Fetch deposit address list with network |
|
|
45
|
+
| fetch-withdraw-address-list | [] | Fetch withdraw address list |
|
|
46
|
+
| fetch-withdraw-quota | [] | Fetch withdraw quota |
|
|
47
|
+
| one-click-arrival-deposit-apply | [`deposit-id` `tx-id` `sub-account-id` `sub-user-id`] | One click arrival deposit apply (for expired address deposit) |
|
|
48
|
+
| withdraw | `coin` `address` `amount` [`withdraw-order-id` `network` `address-tag` `transaction-fee-flag` `name` `wallet-type`] | Withdraw |
|
|
49
|
+
| withdraw-history | [`coin` `withdraw-order-id` `status` `offset` `limit` `id-list` `start-time` `end-time`] | Withdraw History (supporting network) |
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Others
|
|
53
|
+
|
|
54
|
+
| Endpoint | Key params | Description |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| get-symbols-delist-schedule-for-spot | [] | Get symbols delist schedule for spot |
|
|
57
|
+
| system-status | [] | System Status (System) |
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Travel Rule (auth required)
|
|
61
|
+
|
|
62
|
+
| Endpoint | Key params | Description |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| broker-withdraw | `address` `coin` `amount` `withdraw-order-id` `questionnaire` `originator-pii` `signature` [`address-tag` `network` `address-name` `transaction-fee-flag` `wallet-type`] | Broker Withdraw (for brokers of local entities that require travel rule) |
|
|
65
|
+
| check-questionnaire-requirements | [] | Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) |
|
|
66
|
+
| deposit-history-travel-rule | [`tr-id` `tx-id` `tran-id` `network` `coin` `travel-rule-status` `pending-questionnaire` `start-time` `end-time` `offset` `limit`] | Deposit History (for local entities that required travel rule) (supporting network) |
|
|
67
|
+
| deposit-history-v2 | [`deposit-id` `tx-id` `network` `coin` `retrieve-questionnaire` `start-time` `end-time` `offset` `limit`] | Deposit History V2 (for local entities that required travel rule) (supporting network) |
|
|
68
|
+
| fetch-address-verification-list | [] | Fetch address verification list |
|
|
69
|
+
| submit-deposit-questionnaire | `sub-account-id` `deposit-id` `questionnaire` `beneficiary-pii` `signature` [`network` `coin` `amount` `address` `address-tag`] | Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) |
|
|
70
|
+
| submit-deposit-questionnaire-travel-rule | `tran-id` `questionnaire` [] | Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) |
|
|
71
|
+
| submit-deposit-questionnaire-v2 | `deposit-id` `questionnaire` [] | Submit Deposit Questionnaire V2 (For local entities that require travel rule) (supporting network) |
|
|
72
|
+
| vasp-list | [] | VASP list (for local entities that require travel rule) (supporting network) |
|
|
73
|
+
| withdraw-history-v1 | [`tr-id` `tx-id` `withdraw-order-id` `network` `coin` `travel-rule-status` `offset` `limit` `start-time` `end-time`] | Withdraw History (for local entities that require travel rule) (supporting network) |
|
|
74
|
+
| withdraw-history-v2 | [`tr-id` `tx-id` `withdraw-order-id` `network` `coin` `travel-rule-status` `offset` `limit` `start-time` `end-time`] | Withdraw History V2 (for local entities that require travel rule) (supporting network) |
|
|
75
|
+
| withdraw-travel-rule | `coin` `address` `amount` `questionnaire` [`withdraw-order-id` `network` `address-tag` `transaction-fee-flag` `name` `wallet-type`] | Withdraw (for local entities that require travel rule) |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.1.0 - 2026-03-24
|
|
4
|
+
|
|
5
|
+
- Environmental variables or files can now be used as input for the API key and secret key.
|
|
6
|
+
- Fix signature generation for RSA and Ed25519 keys.
|
|
7
|
+
- Add `Openclaw` metadata to the User Agent header
|
|
8
|
+
|
|
9
|
+
## 1.0.0 - 2026-03-20
|
|
10
|
+
|
|
11
|
+
- 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,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fiat
|
|
3
|
+
description: Query Binance fiat payment capabilities — supported countries, currencies, payment methods, limits, and crypto prices — via public APIs, plus authenticated order/payment history lookup. Use whenever users ask about buying or selling crypto with fiat, depositing or withdrawing fiat, fiat-crypto exchange rates, payment options in a specific country, or their fiat order history — even if they don't explicitly mention Binance APIs.
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.1.0
|
|
6
|
+
author: Binance
|
|
7
|
+
license: MIT
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Binance Fiat Skill
|
|
11
|
+
|
|
12
|
+
Query Binance fiat payment capabilities, available payment methods, pricing, and supported currencies/countries using **public APIs** (no authentication required). For order and payment history, see [Authenticated Endpoints](./references/sapi-endpoints.md).
|
|
13
|
+
|
|
14
|
+
## Base URL
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Available APIs
|
|
21
|
+
|
|
22
|
+
### 1. get_capabilities
|
|
23
|
+
|
|
24
|
+
Query supported fiat currencies, cryptos, and business types for a country.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-capabilities?country={COUNTRY_CODE}"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Optional: `businessType` (BUY, SELL, DEPOSIT, WITHDRAW) to filter.
|
|
31
|
+
|
|
32
|
+
**Response:** `data.supportedBusinessTypes`, `data.fiatCurrencies[]` (with `code`, `name`, `supportedBusinessTypes`), `data.cryptoCurrencies[]`
|
|
33
|
+
|
|
34
|
+
### 2. get_buy_and_sell_payment_methods
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-buy-and-sell-payment-methods?businessType={BUY|SELL}&fiatCurrency={FIAT}&cryptoCurrency={CRYPTO}&country={COUNTRY_CODE}"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
All 4 parameters required.
|
|
41
|
+
|
|
42
|
+
**Response:** `data.paymentMethods[]` and `data.p2pPaymentMethods[]`, each with `code`, `paymentMethodName`, `fiatMinLimit`, `fiatMaxLimit`, `cryptoMinLimit`, `cryptoMaxLimit`, `quotation`, `suspended`
|
|
43
|
+
|
|
44
|
+
### 3. get_deposit_and_withdraw_payment_methods
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-deposit-and-withdraw-payment-methods?businessType={DEPOSIT|WITHDRAW}&fiatCurrency={FIAT}&country={COUNTRY_CODE}"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
All 3 parameters required. No `cryptoCurrency`, no `quotation`, no P2P methods.
|
|
51
|
+
|
|
52
|
+
**Response:** `data.paymentMethods[]` with `code`, `paymentMethodName`, `fiatMinLimit`, `fiatMaxLimit`, `suspended`
|
|
53
|
+
|
|
54
|
+
### 4. get_price
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-price?fiatCurrency={FIAT}&cryptoCurrency={CRYPTO}&country={COUNTRY_CODE}"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Optional: `businessType` (BUY or SELL, defaults to BUY).
|
|
61
|
+
|
|
62
|
+
**Response:** `data.bestPrice` — indicative reference price, may differ from execution price
|
|
63
|
+
|
|
64
|
+
## Recommended Workflow
|
|
65
|
+
|
|
66
|
+
1. **`get_capabilities`** first — confirms what's supported before making other calls
|
|
67
|
+
2. **Payment methods API** — BUY/SELL → `get_buy_and_sell_payment_methods`; DEPOSIT/WITHDRAW → `get_deposit_and_withdraw_payment_methods`
|
|
68
|
+
3. **`get_price`** — add if the user wants exchange rate info
|
|
69
|
+
|
|
70
|
+
Skip step 1 for simple price queries (e.g., "What's BTC in USD?").
|
|
71
|
+
|
|
72
|
+
## Calling APIs
|
|
73
|
+
|
|
74
|
+
Use `WebFetch` or `Bash` (curl). All responses follow:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{ "code": "000000", "message": null, "data": { ... }, "success": true }
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`code: "000000"` = success; otherwise check `message`.
|
|
81
|
+
|
|
82
|
+
## Action Links
|
|
83
|
+
|
|
84
|
+
After presenting API results, always include a relevant action link so the user can proceed directly on Binance. Build the URL dynamically based on the fiat currency, crypto currency, and business type from the conversation context.
|
|
85
|
+
|
|
86
|
+
### URL Templates
|
|
87
|
+
|
|
88
|
+
| Business Type | URL Template | Example |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| BUY | `https://www.binance.com/en/crypto/buy/{FIAT}/{CRYPTO}` | [Buy BTC with USD](https://www.binance.com/en/crypto/buy/USD/BTC) |
|
|
91
|
+
| SELL | `https://www.binance.com/en/crypto/sell/{FIAT}/{CRYPTO}` | [Sell BTC for USD](https://www.binance.com/en/crypto/sell/USD/BTC) |
|
|
92
|
+
| DEPOSIT | `https://www.binance.com/en/fiat/deposit/{FIAT}` | [Deposit USD](https://www.binance.com/en/fiat/deposit/USD) |
|
|
93
|
+
| WITHDRAW | `https://www.binance.com/en/fiat/withdraw/{FIAT}` | [Withdraw USD](https://www.binance.com/en/fiat/withdraw/USD) |
|
|
94
|
+
|
|
95
|
+
### Language-aware URL
|
|
96
|
+
|
|
97
|
+
Replace the `/en/` locale segment to match the user's language. Supported locales:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
en, zh-CN, zh-TC, ru, es, es-LA, fr, vi, en-TR, it, pl, id, uk-UA, ar,
|
|
101
|
+
en-AU, pt-BR, en-IN, en-NG, ro, bg, cs, lv, sv, pt, es-MX, el, sk, sl,
|
|
102
|
+
es-AR, fr-AF, en-KZ, en-ZA, en-NZ, en-BH, ar-BH, ru-UA, de, kk-KZ,
|
|
103
|
+
ru-KZ, ja, da-DK, en-AE, en-JP, hu, lo-LA, si-LK, az-AZ, uz-UZ, pt-AO
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Common mapping examples:
|
|
107
|
+
|
|
108
|
+
| User language | Locale | Example URL |
|
|
109
|
+
|---|---|---|
|
|
110
|
+
| English | `en` | `https://www.binance.com/en/crypto/buy/USD/BTC` |
|
|
111
|
+
| 简体中文 | `zh-CN` | `https://www.binance.com/zh-CN/crypto/buy/CNY/BTC` |
|
|
112
|
+
| Português (BR) | `pt-BR` | `https://www.binance.com/pt-BR/crypto/buy/BRL/BTC` |
|
|
113
|
+
| Türkçe | `en-TR` | `https://www.binance.com/en-TR/crypto/buy/TRY/BTC` |
|
|
114
|
+
|
|
115
|
+
For regional English variants (en-AU, en-IN, en-NG, en-AE, en-NZ, etc.), use the specific regional locale rather than plain `en` — this ensures the user sees region-appropriate content.
|
|
116
|
+
|
|
117
|
+
Default to `en` if the user's language is unclear.
|
|
118
|
+
|
|
119
|
+
Always include at least one action link when the conversation involves a specific fiat/crypto pair or business type. For general questions, include all relevant links from `get_capabilities`. Format as a call-to-action, e.g.: "Ready to buy? [Buy BTC with USD on Binance](https://www.binance.com/en/crypto/buy/USD/BTC)"
|
|
120
|
+
|
|
121
|
+
## Presenting Results
|
|
122
|
+
|
|
123
|
+
- Table format for payment methods (names, limits, pricing); flag suspended methods
|
|
124
|
+
- Note that prices are indicative/reference prices
|
|
125
|
+
- Respond in the user's language
|
|
126
|
+
- **Always end with the relevant action link(s)**
|
|
127
|
+
|
|
128
|
+
### Price Sorting and Best Value Logic
|
|
129
|
+
|
|
130
|
+
Price direction depends on the business type — always apply the correct comparison:
|
|
131
|
+
|
|
132
|
+
| Business Type | Better price direction | Rationale |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| **BUY** | **Lower price is better** | You pay less fiat per unit of crypto — same fiat buys more crypto |
|
|
135
|
+
| **SELL** | **Higher price is better** | You receive more fiat per unit of crypto sold |
|
|
136
|
+
|
|
137
|
+
When summarizing: for BUY highlight the **lowest** `quotation`; for SELL highlight the **highest** `quotation`. Example (BUY USD/BTC): $70,236 beats $74,291 — more BTC per dollar.
|
|
138
|
+
|
|
139
|
+
### Wallet Payment Method (BUY)
|
|
140
|
+
|
|
141
|
+
If the BUY response includes a payment method with `code` containing `WALLET` (case-insensitive), it represents buying crypto using the user's Binance fiat wallet balance.
|
|
142
|
+
|
|
143
|
+
When this occurs, proactively mention:
|
|
144
|
+
> "One of the available payment methods is your Binance fiat wallet balance. If your wallet doesn't have sufficient funds, you'll need to deposit fiat first. Would you like me to look up the available deposit methods for you?"
|
|
145
|
+
|
|
146
|
+
If the user confirms, call `get_deposit_and_withdraw_payment_methods` with `businessType=DEPOSIT` using the same fiat currency and country, and present the results along with the [Deposit action link](#url-templates).
|
|
147
|
+
|
|
148
|
+
## Order & Payment History (Authenticated)
|
|
149
|
+
|
|
150
|
+
See [`references/sapi-endpoints.md`](./references/sapi-endpoints.md) for authenticated endpoints (order/payment history, deposit/withdraw records). Requires Binance API key and secret.
|
|
151
|
+
|
|
152
|
+
## Country Code Reference
|
|
153
|
+
|
|
154
|
+
Use ISO 3166-1 alpha-2 codes: BR, GB, DE, FR, JP, KR, AU, etc. **Never use `US` as the country parameter** — US users are not supported by Binance fiat payment APIs.
|
|
155
|
+
|
|
156
|
+
### Country Inference Rules
|
|
157
|
+
|
|
158
|
+
Determine the `country` parameter using this priority order:
|
|
159
|
+
|
|
160
|
+
1. **Explicit context** — If the country is already known from the conversation (user stated it, or inferred in a prior turn), reuse it without re-inferring.
|
|
161
|
+
|
|
162
|
+
2. **Fiat currency → country mapping** — Map directly from currency. Examples:
|
|
163
|
+
- `SGD` → `SG`, `BRL` → `BR`, `JPY` → `JP`, `KRW` → `KR`, `AUD` → `AU`, `GBP` → `GB`, `CAD` → `CA`, `INR` → `IN`, `TRY` → `TR`, `MXN` → `MX`, `NGN` → `NG`
|
|
164
|
+
- `EUR` → `FR` (since the user did not specify a country, use `FR` as the default for EUR)
|
|
165
|
+
- `USD` → `SG` (since the user did not specify a country, use `SG` as the default for USD)
|
|
166
|
+
|
|
167
|
+
> **MANDATORY**: `US` MUST NEVER be used as the country parameter under any circumstances.
|
|
168
|
+
|
|
169
|
+
3. **Empty results** — If the API returns no payment methods or an unsupported combination, ask: *"No results found for your current settings. Would you like to try a different country? If so, please tell me which country."* Then use the country the user provides.
|