π¦ ClawHub
Coinw Spot Skill
by @connectcoinw
Coinw Spot REST API skill: covers market data, order placement/cancellation, order queries, account balances, and asset transfers.
π‘ Examples
GET (public endpoint)
curl "https://api.coinw.com/api/v1/public?command=returnSymbol"
Auth required (private endpoint)
params="api_key=$COINW_API_KEY&amount=0.001&funds=1&isMarket=1&out_trade_no=1&rate=40000&symbol=BTC_USDT"
sign_string="$params&secret_key=$COINW_SECRET_KEY"
sign=$(echo -n "$sign_string" | openssl md5 | cut -d' ' -f2 | tr '[:lower:]' '[:upper:]')
curl -X POST "https://api.coinw.com/api/v1/private?command=doTrade&$params&sign=$sign"
TERMINAL
clawhub install coinw-spot-skill