Giter Site home page Giter Site logo

rubykube / arke Goto Github PK

View Code? Open in Web Editor NEW
46.0 12.0 75.0 174 KB

Arke is a liquidity gathering framework

Home Page: https://www.openware.com

Ruby 99.28% Dockerfile 0.72%
cryptocurrency arbitrage cryptocurrency-exchanges bitcoin ethereum trading trading-bot

arke's Introduction

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 [email protected]: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

arke's People

Contributors

dnfd avatar kite-bot avatar liutenko avatar m-an avatar mkalenska avatar mod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arke's Issues

Orderback support

How can I gain access to source files of the latest arke as described in openware.com which has other strategies such as orderback?

Arke start error

After installing and config, when I try to start the services, I get the following error:

D, [2020-06-10T11:11:20.139840 #21367] DEBUG -- : Starting Exchange: binance
D, [2020-06-10T11:11:21.434053 #21367] DEBUG -- : Starting Exchange: target
D, [2020-06-10T11:11:22.435448 #21367] DEBUG -- : Calling Strategy 2020-06-10 11:11:22 +0000
D, [2020-06-10T11:11:22.468052 #21367] DEBUG -- : Scheduling Action 2020-06-10 11:11:22 +0000 - Exchange target Delay 1.0 - Queue size: 0
D, [2020-06-10T11:11:22.468387 #21367] DEBUG -- : pop: #Type: order_create, params: {:order=>#<Arke::Order:0x0000562c0e5385f0 @market="ethusd", @price=243.37, @amount=0.40156400000000003, @side=:buy>}
F, [2020-06-10T11:11:22.493774 #21367] FATAL -- : Code: 422 Message: Unprocessable Entity
D, [2020-06-10T11:11:23.436267 #21367] DEBUG -- : Scheduling Action 2020-06-10 11:11:23 +0000 - Exchange target Delay 1.0 - Queue size: 0
D, [2020-06-10T11:11:23.436829 #21367] DEBUG -- : pop: #Type: order_create, params: {:order=>#<Arke::Order:0x0000562c0e718af0 @market="ethusd", @price=243.4, @amount=2.3805430000000003, @side=:sell>}
F, [2020-06-10T11:11:23.450724 #21367] FATAL -- : Code: 422 Message: Unprocessable Entity
D, [2020-06-10T11:11:23.471286 #21367] DEBUG -- : Calling Strategy 2020-06-10 11:11:23 +0000
D, [2020-06-10T11:11:24.440709 #21367] DEBUG -- : Scheduling Action 2020-06-10 11:11:24 +0000 - Exchange target Delay 1.0 - Queue size: 1

Please advise

Flow and project structure

start command must:

1- Initialize and load configuration
2- Create an instance of strategy(config)
3- Strategy will create orderbook instance
4- Strategy should start 1 thread per exchange(orderbook)

Arke v0.1.9 have error

i'm using arke v0.1.9

At first, every order is made very well

but after only a few minutes it reported an error: FATAL -- : Code: 422 Message: Unprocessable Entity
image

Yaml structure

Implement the following yaml parsing:

strategy:
  type: 'copy'
  target:
    driver: rubykube
    name: John
    key:
    secret:
  sources:
    - driver: bitfinex
      name: Joe
      key:
      secret:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.