Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Add option to load previous trades #1243

Merged
merged 2 commits into from
Feb 2, 2018

Conversation

defkev
Copy link
Contributor

@defkev defkev commented Jan 30, 2018

Closes #1239

This is an opt-in, either use --use_prev_trades or set c.use_prev_trades = true in conf.js

If enabled we will load N of our previous trades within the time range of all previous trades (currently up to 1000) and use them for initial sell-stop triggers and loss protection.
This way its no longer necessary to wait for a trade in a new session to get triggers/protection to fire, e.g. after a restart.

The age of previous trades is limited so we don't accidentally end up with a stuck bot which isn't trading at all because the market moved too far since our last trade.

All previous trades are exposed by the API in my_prev_trades and included in the dashboard under "My Trades" as "muted" trades at the bottom.

muted_trades

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tonistiigi Tõnis Tiigi
Closes DeviaVir#1239

This is an opt-in, either use `--use_prev_trades` or set `c.use_prev_trades = true` in conf.js

If enabled we will load N of our previous trades within the time range of all previous trades (currently up to 1000) and use them for initial sell-stop triggers and loss protection.
This way its no longer necessary to wait for a trade in a new session to get triggers/protection to fire, e.g. after a restart.

The age of previous trades is limited so we don't accidentally end up with a stuck bot which isn't trading at all because the market moved too far since our last trade.

All previous trades are exposed by the API in `my_prev_trades` and included in the dashboard under "My Trades" as "muted" trades at the bottom.
defkev added a commit to defkev/zenbot that referenced this pull request Jan 30, 2018

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tonistiigi Tõnis Tiigi

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tonistiigi Tõnis Tiigi
@DeviaVir DeviaVir merged commit 5d1a0df into DeviaVir:unstable Feb 2, 2018
@defkev defkev deleted the pr-my_prev_trades branch February 15, 2018 17:19
Heerpa pushed a commit to Heerpa/zenbot that referenced this pull request Feb 25, 2018

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tonistiigi Tõnis Tiigi
* Add option to load previous trades

Closes DeviaVir#1239

This is an opt-in, either use `--use_prev_trades` or set `c.use_prev_trades = true` in conf.js

If enabled we will load N of our previous trades within the time range of all previous trades (currently up to 1000) and use them for initial sell-stop triggers and loss protection.
This way its no longer necessary to wait for a trade in a new session to get triggers/protection to fire, e.g. after a restart.

The age of previous trades is limited so we don't accidentally end up with a stuck bot which isn't trading at all because the market moved too far since our last trade.

All previous trades are exposed by the API in `my_prev_trades` and included in the dashboard under "My Trades" as "muted" trades at the bottom.

* Update README for DeviaVir#1243
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants