4.1 Trade: website and command line
The testnet uses test funds only. For access, join the waitlist on www.defisilicon.com. The operator approves each account.
Keys
| Key | Function |
|---|---|
| Wallet (Phantom or Solflare) | Signs you in to the website. It does not sign orders. |
| Trading key | Signs each order. The website gives it on the Account page ("Reveal trading key"). |
| RPC key | Lets a program read your data. You make it on www.defisilicon.com/rpc. |
Website
- Open www.defisilicon.com/exchange.
- Connect Phantom or Solflare. On a phone, use the wallet app.
- Select BTC-PERP.
- Set the leverage, the price and the size. Then send the order.
The website shows when your order is final.
Command line
The official client kit contains the ./trade command. You receive the kit when the operator approves your account.
./trade setup # paste the trading key, then the RPC key
./trade markets
./trade balance # proof-verified balance
./trade buy BTC-PERP --price 81500 --size 0.01 --post-only --leverage 5
./trade sell BTC-PERP --price 81400 --size 0.01 --reduce-only
./trade positions
./trade margin add 250
./trade orders --market 2
./trade cancel ORDER_ID --market 2
./trade history --limit 20
./trade dashboard
Rules for the command line
- Each command uses one token from the rate bucket of your session.
- You can use one trading key on more than one computer. Run
./trade setupon each computer. - After an interruption, run
./trade resume. It is safe, because each nonce executes one time only. - Do not delete the files in your data directory. They contain the state of your commands.