mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
update doc
This commit is contained in:
@@ -115,21 +115,30 @@ curl -fsSL https://github.com/discountry/ritmex-bot/raw/refs/heads/main/setup.sh
|
||||
|
||||
* [StandX 做市策略教程](docs/standx/maker-points-guide.md)
|
||||
|
||||
策略需要 StandX 的登录 token 才能下单
|
||||
策略需要 StandX 的 API Token 和签名私钥才能下单。
|
||||
|
||||
获取方式:
|
||||
1. 打开 https://standx.ritmex.one/
|
||||
2. 连接钱包
|
||||
3. 点击“登录”
|
||||
4. 导出登录信息里面会包含 token(STANDX_TOKEN) 和代理钱包私钥(STANDX_REQUEST_PRIVATE_KEY),代理钱包仅用于交易签名,有效保证资产钱包安全
|
||||
**获取方式(使用 StandX 官方 API 生成功能):**
|
||||
1. 打开 StandX 官方 API 创建页面:https://standx.com/user/session
|
||||
2. 连接钱包并登录
|
||||
3. 点击 **"Generate API Token"** 按钮
|
||||
4. 页面会显示以下信息:
|
||||
- **Token**(以 `eyJ` 开头的 JWT 字符串)→ 填入 `STANDX_TOKEN`
|
||||
- **Ed25519 Private Key**(Base58 格式私钥,类似 `HdsyJD7oWgT...`)→ 填入 `STANDX_REQUEST_PRIVATE_KEY`
|
||||
- **创建日期** 和 **有效期天数** → 用于配置 Token 过期提醒
|
||||
|
||||
请妥善保存,不要分享给他人
|
||||
> Ed25519 Private Key 是系统自动生成的签名私钥,仅用于交易请求签名,你的资产仍在主钱包中,非常安全。
|
||||
|
||||
请妥善保存这些凭证,不要分享给他人。
|
||||
|
||||
**配置步骤:**
|
||||
1. 设置 `EXCHANGE=standx`。
|
||||
2. 填写 `STANDX_TOKEN`(Perps API 的 JWT Token)。
|
||||
3. 填写 `STANDX_REQUEST_PRIVATE_KEY`(代理钱包私钥)。
|
||||
3. 填写 `STANDX_REQUEST_PRIVATE_KEY`(Ed25519 签名私钥,Base58 格式)。
|
||||
4. 设置 `STANDX_SYMBOL`(默认 `BTC-USD`),并校准 `PRICE_TICK` / `QTY_STEP`。
|
||||
5. 可选:`STANDX_BASE_URL`、`STANDX_WS_URL`、`STANDX_SESSION_ID` 用于自定义环境。
|
||||
5. 推荐配置 Token 过期时间:
|
||||
- `STANDX_TOKEN_CREATE_DATE`(创建日期,格式 `YYYY-MM-DD`)
|
||||
- `STANDX_TOKEN_VALIDITY_DAYS`(有效期天数)
|
||||
6. 可选:`STANDX_BASE_URL`、`STANDX_WS_URL`、`STANDX_SESSION_ID` 用于自定义环境。
|
||||
|
||||
|
||||
### GRVT
|
||||
|
||||
+17
-8
@@ -112,21 +112,30 @@ The script installs Bun, project dependencies, collects Aster API credentials, g
|
||||
|
||||
* [StandX Maker Points Strategy Guide](docs/standx/maker-points-guide.md)
|
||||
|
||||
The strategy requires a StandX login token to place orders.
|
||||
The strategy requires a StandX API Token and signing private key to place orders.
|
||||
|
||||
How to obtain the token:
|
||||
1. Open https://standx.ritmex.one/
|
||||
2. Connect your wallet
|
||||
3. Click "Login"
|
||||
4. Export your login credentials, which will include the token (`STANDX_TOKEN`) and proxy wallet private key (`STANDX_REQUEST_PRIVATE_KEY`). The proxy wallet is only used for trade signatures, keeping your main wallet secure.
|
||||
**How to obtain (using StandX's official API generation feature):**
|
||||
1. Open the StandX official API creation page: https://standx.com/user/session
|
||||
2. Connect your wallet and log in
|
||||
3. Click the **"Generate API Token"** button
|
||||
4. The page will display the following information:
|
||||
- **Token** (JWT string starting with `eyJ`) → Fill in `STANDX_TOKEN`
|
||||
- **Ed25519 Private Key** (Base58 format, like `HdsyJD7oWgT...`) → Fill in `STANDX_REQUEST_PRIVATE_KEY`
|
||||
- **Creation date** and **Validity days** → Used to configure token expiry reminders
|
||||
|
||||
> The Ed25519 Private Key is an auto-generated signing key used only for trade request signatures. Your assets remain in your main wallet and are completely safe.
|
||||
|
||||
Please keep these credentials safe and do not share them with anyone.
|
||||
|
||||
**Configuration steps:**
|
||||
1. Set `EXCHANGE=standx`.
|
||||
2. Provide `STANDX_TOKEN` (JWT token for perps API).
|
||||
3. Provide `STANDX_REQUEST_PRIVATE_KEY` (proxy wallet private key).
|
||||
3. Provide `STANDX_REQUEST_PRIVATE_KEY` (Ed25519 signing private key, Base58 format).
|
||||
4. Set `STANDX_SYMBOL` (defaults to `BTC-USD`) and align `PRICE_TICK` / `QTY_STEP`.
|
||||
5. Optional: `STANDX_BASE_URL`, `STANDX_WS_URL`, or `STANDX_SESSION_ID` for custom endpoints.
|
||||
5. Recommended: configure token expiry settings:
|
||||
- `STANDX_TOKEN_CREATE_DATE` (creation date, format `YYYY-MM-DD`)
|
||||
- `STANDX_TOKEN_VALIDITY_DAYS` (validity days)
|
||||
6. Optional: `STANDX_BASE_URL`, `STANDX_WS_URL`, or `STANDX_SESSION_ID` for custom endpoints.
|
||||
|
||||
### GRVT
|
||||
1. Set `EXCHANGE=grvt` inside `.env`.
|
||||
|
||||
Reference in New Issue
Block a user