Skip to content

rubykube/arke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Arke

Arke is a trading bot platform built by Openware Cryptocurrency exchange software.

Development

Setup

To start local development:

  1. Clone the repo:
    git clone git@github.com:rubykube/arke.git`
  2. Install dependencies
    bundle install

Now you can run Arke using bin/arke command.

Example usage

Arke is a liquidity aggregation tool which supports copy strategy

ArkeStructureAdd platform host and credentials to config/strategy.yaml

strategy:
  type: 'copy'
  market: 'ETHUSD'
  target:
    driver: rubykube
    host: "http://www.example1.com"
    name: John
    key: "xxxxxxxxxx"
    secret: "xxxxxxxxxx"
  sources:
    - driver: source1
      host: "http://www.example2.com"
      name: Joe
      key: "xxxxxxxxxxx"
      secret: "xxxxxxxxxxxx"
    - driver: source2
      host: "http://www.example2.com"
      name: Joe
      key: "xxxxxxxxxxx"
      secret: "xxxxxxxxxxxx"

To open development console, use bin/arke console

Now your configuration variables can be reached with

Arke::Configuration.get(:variable_name)
# or
Arke::Configuration.require!(:variable_name)

# For example, to get target host:
Arke::Configuration.require!(:target)['host']

#For api key:
Arke::Configuration.require!(:target)['key']
Arke::Configuration.require!(:target)['secret']

To start trading bot type

bin/arke start