Exchange Commands - TraderPlan/wiki GitHub Wiki

Buy

Commands/Shortcuts: [pre]buy, [pre]bid

Description These two basic commands will initiate a purchase order on the exchange and can complete this task one of three ways described below:

  1. Price To initiate a buy at a specific price you will use the following syntax when entering the order: [pre]buy base counter amount price For example if you would like to purchase 100 Diamond (DMD) for the price of .01 Bitcoin (BTC) each. Your command would be as follows: [pre]buy DMD BTC 100 .01

  2. Market To initiate a buy at market price you will use the following syntax when entering the order: [pre]buy base counter amount market For example if you would like to purchase 200 DMD at the current Market price against BTC. Your command would be as follows: [pre]buy DMD BTC 200 market

  3. Trail To initiate a buy with a trailing buy you will use the following syntax when entering the order: [pre]buy base counter amount trail For example if you would like to purchase 300 DMD at the current Market price against BTC. Your command would be as follows: [pre]buy DMD BTC 300 trail

Sell

Commands/Shortcuts: [pre]sell

Description This basic command will initiate a sell order on the exchange and you can complete this task one of three ways. This is the exact same as the !buy commands but in reverse.

How do I use this feature? [pre]sell

  1. Price To initiate a sell at a specific price you will use the following syntax when entering the order: [pre]sell base counter amount price For example if you would like to sell 100 Diamond (DMD) for the price of .01 Bitcoin (BTC) each. Your command would be as follows: !sell DMD BTC 100 .01

  2. Market To initiate a sell at market price you will use the following syntax when entering the order: [pre]sell base counter amount market For example if you would like to sell 200 DMD at the current Market price against BTC. Your command would be as follows: [pre]sell DMD BTC 200 market

  3. Trail To initiate a sell with a trailing buy you will use the following syntax when entering the order: [pre]sell base counter amount trail For example if you would like to sell 300 DMD at the current Market price against BTC. Your command would be as follows: [pre]sell DMD BTC 300 trail

Cancel Order

Commands/Shortcuts: [pre]cancelorder

Description This will cancel an order placed using the !buy or !sell command.

How do I use this feature? [pre]cancelorder Order ID

Exchange Orders

Commands/Shortcuts: [pre]exchangeorders

Description This command will print out all active orders that you have open on the exchange.

How do I use this feature? [pre]exchangeorders

Cancel Exchange Orders

Commands/Shortcuts: [pre]cancelexchangeorder

Description This command will cancel a specific order on your exchange and should be used in conjunction with the [pre]exchangeorders command.

How do I use this feature? [pre]cancelexchangeorder Order ID

Using the Order ID from the !exchangeorders tutorial we will cancel out that order. [pre]cancelexchangeorder 49ec9c26-b731-43fd-87b2-dc3e58842bce

Orderbook

Commands/Shortcuts: [pre]orderbook, [pre]orderbooks, [pre]books

Description This command will print out the current orderbook for your selected market.

How do I use this feature? [pre]orderbook BASE COUNTER [pre]orderbook BTC USDT

Price

Commands/Shortcuts: [pre]price Base Counter

Description This command will print out the current value of the pair selected. [pre]price BTC will automatically pair with Tether. All other coins will automatically pair with BTC unless countered with another coin.

How do I use this feature? [pre]price BTC USDT [pre]price ETH [pre]price ETH USDT