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

Fix bug with preroll when 0 volume #464

Merged
merged 2 commits into from
Aug 11, 2017
Merged

Fix bug with preroll when 0 volume #464

merged 2 commits into from
Aug 11, 2017

Conversation

cmroche
Copy link
Contributor

@cmroche cmroche commented Aug 11, 2017

Fix getCursor on Kraken exchange, getCursor must return milliseconds to be consisitent with API calls to getTrades in backfill and trade commands. It was returning seconds, this would cause entries to be returned outside of their respective time periods.

Also removed opts.to and replace with opts.from. opts.to is only used for 'backward' history scans, not forward. This was always effectively undefined in this case.

Fix getCursor on Kraken exchange, getCursor must return milliseconds to be consisitent with API calls to getTrades in backfill and trade commands. It was returning seconds, this would cause entries to be returned outside of their respective time periods.

Also removed opts.to and replace with opts.from. opts.to is only used for 'backward' history scans, not forward. This was always effectively undefined in this case.
@DeviaVir DeviaVir merged commit af971ef into DeviaVir:master Aug 11, 2017
@cmroche cmroche deleted the prewarm_fixes branch August 12, 2017 00:31
DeviaVir pushed a commit that referenced this pull request Aug 14, 2017
* Really re-order on "post only" error
Check for balance error also on checkOrder (e.g. bitfinex, using websockets, reports the error later than other exchanges)

* Initial commit to switch bitfinex to websockets

* Select pair on first getTrade()

* Fixed bitfinex buy and sell from commandline

* Bitfinex: Trigger calc of wallet balances on getBalance over websockets and retun updated balances

* Bitfinex: Removed duplicate definition of symbol

* Bitfinex: Now using only one websockets connection

* Bitfinex WS: Better error handling on connect/auth/sending messages

* Bitfinex WS: Further improving retries and error handling

* Bitfinex WS: Not directly calling the websockets part of the bitfinex module for close() anymore

* Fix bug with preroll when 0 volume (#464)

* Fix bug with preroll when 0 volume

Fix getCursor on Kraken exchange, getCursor must return milliseconds to be consisitent with API calls to getTrades in backfill and trade commands. It was returning seconds, this would cause entries to be returned outside of their respective time periods.

Also removed opts.to and replace with opts.from. opts.to is only used for 'backward' history scans, not forward. This was always effectively undefined in this case.

* Formatting kraken exchange.js

* Bitfinex WS: Fixed wallet recalc when asset or currency are 0

* Really re-order on "post only" error
Check for balance error also on checkOrder (e.g. bitfinex, using websockets, reports the error later than other exchanges)

* Initial commit to switch bitfinex to websockets

* Select pair on first getTrade()

* Fixed bitfinex buy and sell from commandline

* Bitfinex: Trigger calc of wallet balances on getBalance over websockets and retun updated balances

* Bitfinex: Removed duplicate definition of symbol

* Bitfinex: Now using only one websockets connection

* Bitfinex WS: Better error handling on connect/auth/sending messages

* Bitfinex WS: Further improving retries and error handling

* Bitfinex WS: Not directly calling the websockets part of the bitfinex module for close() anymore

* Bitfinex WS: Fixed wallet recalc when asset or currency are 0

* Bitfinex WS: New reconnect approach, honor "INSUFFICIENT MARGIN"

* Bitfinex WS: Missing )

* Bitfinex WS: Remove debug logging on "close"
supersabbath pushed a commit to supersabbath/zenbot that referenced this pull request Oct 2, 2017
* Fix bug with preroll when 0 volume

Fix getCursor on Kraken exchange, getCursor must return milliseconds to be consisitent with API calls to getTrades in backfill and trade commands. It was returning seconds, this would cause entries to be returned outside of their respective time periods.

Also removed opts.to and replace with opts.from. opts.to is only used for 'backward' history scans, not forward. This was always effectively undefined in this case.

* Formatting kraken exchange.js
supersabbath pushed a commit to supersabbath/zenbot that referenced this pull request Oct 2, 2017
…r#458)

* Really re-order on "post only" error
Check for balance error also on checkOrder (e.g. bitfinex, using websockets, reports the error later than other exchanges)

* Initial commit to switch bitfinex to websockets

* Select pair on first getTrade()

* Fixed bitfinex buy and sell from commandline

* Bitfinex: Trigger calc of wallet balances on getBalance over websockets and retun updated balances

* Bitfinex: Removed duplicate definition of symbol

* Bitfinex: Now using only one websockets connection

* Bitfinex WS: Better error handling on connect/auth/sending messages

* Bitfinex WS: Further improving retries and error handling

* Bitfinex WS: Not directly calling the websockets part of the bitfinex module for close() anymore

* Fix bug with preroll when 0 volume (DeviaVir#464)

* Fix bug with preroll when 0 volume

Fix getCursor on Kraken exchange, getCursor must return milliseconds to be consisitent with API calls to getTrades in backfill and trade commands. It was returning seconds, this would cause entries to be returned outside of their respective time periods.

Also removed opts.to and replace with opts.from. opts.to is only used for 'backward' history scans, not forward. This was always effectively undefined in this case.

* Formatting kraken exchange.js

* Bitfinex WS: Fixed wallet recalc when asset or currency are 0

* Really re-order on "post only" error
Check for balance error also on checkOrder (e.g. bitfinex, using websockets, reports the error later than other exchanges)

* Initial commit to switch bitfinex to websockets

* Select pair on first getTrade()

* Fixed bitfinex buy and sell from commandline

* Bitfinex: Trigger calc of wallet balances on getBalance over websockets and retun updated balances

* Bitfinex: Removed duplicate definition of symbol

* Bitfinex: Now using only one websockets connection

* Bitfinex WS: Better error handling on connect/auth/sending messages

* Bitfinex WS: Further improving retries and error handling

* Bitfinex WS: Not directly calling the websockets part of the bitfinex module for close() anymore

* Bitfinex WS: Fixed wallet recalc when asset or currency are 0

* Bitfinex WS: New reconnect approach, honor "INSUFFICIENT MARGIN"

* Bitfinex WS: Missing )

* Bitfinex WS: Remove debug logging on "close"
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.

2 participants