Sha256: 8d223934fb1c43709d80b9a447a7cbe6a3c88dd13ebc2ce65f6920c4c4a29bbf

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

# CossBot

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

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'coss_bot'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install coss_bot

## Usage

```ruby
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.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.
end

```


## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## 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](https://github.com/[USERNAME]/coss_bot/blob/master/CODE_OF_CONDUCT.md).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coss_bot-0.1.0 README.md