ordora-dex/sdk-go ? reverse-engineered prompt
Reverse engineered prompt
Build me a Go SDK for Ordora DEX on BNB Smart Chain that lets me connect with a private key, check wallet balances, fetch markets, tokens, tickers, open orders, order history, trades, and locked assets, then place and cancel orders easily.
I want simple helpers for selling tokens, selling BNB directly, and buying tokens, plus convenience methods that place an order and wait until it fills or reaches a target status. Please include real time subscriptions for open orders, order status, live trades, my trades, and locked assets, and also simple on chain event listeners for order placed, matched, and cancelled.
Make it work with preset BSC testnet and mainnet settings, but also let me pass a custom chain config and custom Hasura endpoints. Use environment variables for secrets, and add a few runnable examples like placing an order, monitoring orders, and a tiny bot that watches price and submits a bid when conditions match. If you need to, look up the current docs online.
Are you gonna build this?
make sure you review the code using coderabbit