1.0.2 • Published 3 years ago

bzk v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

AutoTrade Bazooka Framework

Introduction

  • Investors can just focus Order strategy

    • Monitoring value & Value threshold
    • Order Logic
  • Exchange Or stock brokerage Can provide simple and consistent API

    • This part can be a third party
    • Does not change the Spec of the original API, Just impl this framework some classes
  • Integrate trading strategies and APIs to make it more scalable and consistent.

    • DRY for any auto trade or trade almost code.
    • can Cross use different API

Usage

Investors Baisc Usage

  1. npm i bzk

  2. Follow this

const Reactiver = require('bzk').Reactiver;
const BTCWarder = /* BTCWarder it`s extends require('./warder/Warder'); Thirst Party*/
const OilWarder = /* OilWarder it`s extends require('./warder/Warder'); Thirst Party */
const oilAPI = /* ; */

var btcWarder = new BTCWarder({Some Cofig});
var oilWarder = new OilWarder({Some Cofig});


Reactiver.observe([btcWarder,oilWarder])  // 監控變數
    .where(_d => {  //設定條件門檻
        return _d.btcWarder.value() > 9000 && _d.oilWarder.value() < 30;
    })
    .subscribe(_d => {  // 下單邏輯
      oilAPI.order({Some Cofig});
    });

Third party API developer

main js (index.is) spec

module.export={
  name : 'unique name',
  warders : {
    catalogue:[
    {
      name: 'method1',
      args:[],
      ref: module.export.method1
    }
    ] ,
    method1:(arts1...)=> //TODO
  }
}

Setup / Modify this Porject

  1. Install Nodejs and npm
  2. Go to Root/AutoTradeBazookaFramework/
  3. type cmd : npm install
  4. try is it working : node server.js then show this :
d:[object Warder]
d:[object Object]
1.0.2

3 years ago

1.0.1

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.14

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago