Giter Site home page Giter Site logo

discretionary_engine's Introduction

Discretionary Engine

Minimum Supported Rust Version crates.io docs.rs build status Lines Of Code

Places and follows a position from a definition of what the target position is

Usage

Example query:

discretionary_engine new --size=-0.1 --symbol=ADAUSDT '-f=sar:t5m:s0.07:i0.02:m0.15' '-f=tpsl:t0.4884:s0.5190'

This would open a new position on ADA, where:

  • Side: SELL, as the provided size is negative
  • Size: 10% of the total balance
  • rm_protocol_1: sar indicator, following the price action on 5m timeframe, with starting value 0.07, increase of 0.02, max 0.15
  • rm_protocol_2: static tp and sl, which are set at 0.4884 and 0.5190, respectively

Coverage

Currently only working with Binance.

Configuration

Config is read from ${HOME}/.config/discretionary_engine.toml by default, but can also be specified via --config cli argument.

An example config can be found in ./examples/config.toml

Current assumptions

  • no two positions are opened on the same symbol

  • no new positions on account are opened outside of the engine

  • orders are placed immediately (not that far off, as most of the time we will spam the thing until it accepts, and only other action that will need to be taken is to prevent any increases in exposure while we have any mismatches).


This repository follows my best practices.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

discretionary_engine's People

Contributors

valeratrades avatar dev-ardi avatar

Watchers

 avatar

Forkers

dev-ardi

discretionary_engine's Issues

testable protocols

  1. data sources physically on protocol

  2. substitute them

  3. test with substitute

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.