Loading...
Loading...
Binance Simple-earn request using the Binance API. Authentication requires API key and secret key.
npx skill4agent add s60007766/binance-openclaw simple-earn| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get BFUSD Account (USER_DATA) | None | recvWindow | Yes |
| Get BFUSD Quota Details (USER_DATA) | None | recvWindow | Yes |
| Redeem BFUSD(TRADE) | amount, type | recvWindow | Yes |
| Subscribe BFUSD(TRADE) | asset, amount | recvWindow | Yes |
| Get BFUSD Rate History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get BFUSD Redemption History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get BFUSD Rewards History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get BFUSD subscription history(USER_DATA) | None | asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Personal Left Quota(USER_DATA) | productId | recvWindow | Yes |
| Get Flexible Product Position(USER_DATA) | None | asset, productId, current, size, recvWindow | Yes |
| Get Locked Personal Left Quota(USER_DATA) | projectId | recvWindow | Yes |
| Get Locked Product Position | None | asset, positionId, projectId, current, size, recvWindow | Yes |
| Get Simple Earn Flexible Product List(USER_DATA) | None | asset, current, size, recvWindow | Yes |
| Get Simple Earn Locked Product List(USER_DATA) | None | asset, current, size, recvWindow | Yes |
| Simple Account(USER_DATA) | None | recvWindow | Yes |
| Get Flexible Subscription Preview(USER_DATA) | productId, amount | recvWindow | Yes |
| Get Locked Subscription Preview(USER_DATA) | projectId, amount | autoSubscribe, recvWindow | Yes |
| Redeem Flexible Product(TRADE) | productId | redeemAll, amount, destAccount, recvWindow | Yes |
| Redeem Locked Product(TRADE) | positionId | recvWindow | Yes |
| Set Flexible Auto Subscribe(USER_DATA) | productId, autoSubscribe | recvWindow | Yes |
| Set Locked Auto Subscribe(USER_DATA) | positionId, autoSubscribe | recvWindow | Yes |
| Set Locked Product Redeem Option(USER_DATA) | positionId, redeemTo | recvWindow | Yes |
| Subscribe Flexible Product(TRADE) | productId, amount | autoSubscribe, sourceAccount, recvWindow | Yes |
| Subscribe Locked Product(TRADE) | projectId, amount | autoSubscribe, sourceAccount, redeemTo, recvWindow | Yes |
| Get Collateral Record(USER_DATA) | None | productId, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Redemption Record(USER_DATA) | None | productId, redeemId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Rewards History(USER_DATA) | type | productId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Subscription Record(USER_DATA) | None | productId, purchaseId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Locked Redemption Record(USER_DATA) | None | positionId, redeemId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Locked Rewards History(USER_DATA) | None | positionId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Locked Subscription Record(USER_DATA) | None | purchaseId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Rate History(USER_DATA) | productId | aprPeriod, startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD Quota Details (USER_DATA) | None | recvWindow | Yes |
| Get RWUSD Account (USER_DATA) | None | recvWindow | Yes |
| Redeem RWUSD(TRADE) | amount, type | recvWindow | Yes |
| Subscribe RWUSD(TRADE) | asset, amount | recvWindow | Yes |
| Get RWUSD Rate History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD Redemption History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD Rewards History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD subscription history(USER_DATA) | None | asset, startTime, endTime, current, size, recvWindow | Yes |
SPOTFUNDSPOTSPOTSPOTFUNDALLSPOTSPOTFLEXIBLESPOT.envBINANCE_API_KEYBINANCE_SECRET_KEYKEY="$BINANCE_API_KEY"
SECRET="$BINANCE_SECRET_KEY"
response=$(curl -s -X GET "$URL" \
-H "X-MBX-APIKEY: $KEY" \
--data-urlencode "param1=value1")
echo "$response"~/.openclaw/secrets.env~/.env.envgrep# Try all credential locations in order
API_KEY=$(grep '^BINANCE_API_KEY=' ~/.openclaw/secrets.env 2>/dev/null | cut -d= -f2-)
SECRET_KEY=$(grep '^BINANCE_SECRET_KEY=' ~/.openclaw/secrets.env 2>/dev/null | cut -d= -f2-)
# Fallback: search .env in known directories (KEY=VALUE then raw line format)
for dir in ~/.openclaw ~; do
[ -n "$API_KEY" ] && break
env_file="$dir/.env"
[ -f "$env_file" ] || continue
# Read first two lines
line1=$(sed -n '1p' "$env_file")
line2=$(sed -n '2p' "$env_file")
# Check if lines contain '=' indicating KEY=VALUE format
if [[ "$line1" == *=* && "$line2" == *=* ]]; then
API_KEY=$(grep '^BINANCE_API_KEY=' "$env_file" 2>/dev/null | cut -d= -f2-)
SECRET_KEY=$(grep '^BINANCE_SECRET_KEY=' "$env_file" 2>/dev/null | cut -d= -f2-)
else
# Treat lines as raw values
API_KEY="$line1"
SECRET_KEY="$line2"
fi
done.envabc123...xyz
secret123...keyprintenvenvexportgrepenv^VARNAME='source .env. .envTOOLS.md.gitignoresu1Qc...8akf***...aws1## Binance Accounts
### main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading accountTOOLS.mdX-MBX-APIKEYUser-Agentbinance-simple-earn/1.1.0 (Skill)references/authentication.md