README.md in coss_bot-0.1.0 vs README.md in coss_bot-0.1.1
- old
+ new
@@ -25,11 +25,11 @@
bot.interval = 20 # Trading cycle will happen every 20 seconds
bot.lot_size = 10 # 10 coss tokens will be bought/sold
bot.profit = 0.1 # SELL order will be 0.1% higher than BUY order
bot.pair = 'COSS_ETH' # Bot will work on COSS_ETH pair, buying COSS for ETH
bot.trade_limit = 0.01 # trading cycle does not start if ETH limit is less than 0.1 ETH (ETH is chosen because it is a base pair in this case. If it would be BTC_USDT - it would be USDT)
-bot.call do |buy_price, sell_price|
- puts "Bought for #{buy_price}; Sold for #{sell_price}" # You can pass block to have access to price at which bot places BUY and SELL orders.
+bot.call do |buy_order_id, sell_order_id|
+ puts "BUY order id: #{buy_order_id}; SELL order id: #{sell_order_id}" # You can pass block to save order ids.
end
```