Depositing funds into your wallet
To fund a wallet you need to get a deposit address and send BTC or LTC to that address.
To get a BTC deposit address, run:
sparkswap wallet new-deposit-address BTC
To get an LTC deposit address, run:
sparkswap wallet new-deposit-address LTC
- For adding bitcoin, go to https://testnet.manu.backend.hamburg/faucet, add the BTC wallet address and the amount of coins you would like to add to your wallet. (max of 2 BTC)
- For adding litecoin, go to http://testnet.litecointools.com/, add the LTC wallet address and the amount of coins you would like to add to your wallet. (max of 10 per unique IP)
Committing the balance
Before deposited funds are available for trading they must be committed to the sparkswap Relayer. They are still in your control, but until you release them, they can be used only for trading on sparkswap. This can be thought of as moving funds into your "exchange account" on a custodial exchange. Run:
sparkswap wallet commit ltc --market BTC/LTC
to commit the funds to a market.
Checking the balance
sparkswap wallet balance
to see the balance of your wallet in the supported currencies.
The “committed” balance is what you have available to trade.
Streaming the orderbook
sparkswap orderbook --market BTC/LTC
to get a live view of the orderbook.
I usually keep this running in a separate window while I do other commands.
Placing your first order
Placing a Limit Order
sparkswap buy 0.01 100 --market BTC/LTC
to place a limit order to buy 0.01 BTC at a price of 100 LTC per BTC.
There is a corresponding
sell command as well.
Placing a Market Order
sparkswap buy 0.01 --market BTC/LTC
to place a market order to buy 0.01 BTC.
Note that your order will not complete if there is not enough depth in the market to complete the order right away.