Project

coss_bot

0.0
No commit activity in last 3 years
No release in over 3 years
The simplest accumulating bot for coss.io
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0

Runtime

 Project Readme

CossBot

This bot has simplest trading strategies implemented for trading on COSS.

Installation

Add this line to your application's Gemfile:

gem 'coss_bot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install coss_bot

Usage

bot = CossBot::BuyLowSellHigh.new(public_key: 'Public Key', private_key: 'Private Key')
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.logger = Rails.logger # optionally set logger
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

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the CossBot project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.