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

Bitfinex WebSockets API + Fix postonly not triggering re-buy #458

Merged
merged 27 commits into from
Aug 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7dda2d5
Really re-order on "post only" error
crubb Jul 28, 2017
3458b7c
Initial commit to switch bitfinex to websockets
crubb Jul 28, 2017
9d0b78f
Select pair on first getTrade()
crubb Aug 8, 2017
43e720a
Fixed bitfinex buy and sell from commandline
crubb Aug 9, 2017
d62946a
Bitfinex: Trigger calc of wallet balances on getBalance over websocke…
crubb Aug 9, 2017
fb0fd3f
Bitfinex: Removed duplicate definition of symbol
crubb Aug 9, 2017
00d29b9
Bitfinex: Now using only one websockets connection
crubb Aug 9, 2017
b917509
Bitfinex WS: Better error handling on connect/auth/sending messages
crubb Aug 9, 2017
a39ef82
Bitfinex WS: Further improving retries and error handling
crubb Aug 10, 2017
1d142dc
Bitfinex WS: Not directly calling the websockets part of the bitfinex…
crubb Aug 10, 2017
af971ef
Fix bug with preroll when 0 volume (#464)
cmroche Aug 11, 2017
f68c6b6
Bitfinex WS: Fixed wallet recalc when asset or currency are 0
crubb Aug 11, 2017
199758e
Really re-order on "post only" error
crubb Jul 28, 2017
9c15ea8
Initial commit to switch bitfinex to websockets
crubb Jul 28, 2017
016b60b
Select pair on first getTrade()
crubb Aug 8, 2017
cfc7c78
Fixed bitfinex buy and sell from commandline
crubb Aug 9, 2017
9121fb7
Bitfinex: Trigger calc of wallet balances on getBalance over websocke…
crubb Aug 9, 2017
9a0f484
Bitfinex: Removed duplicate definition of symbol
crubb Aug 9, 2017
68f84de
Bitfinex: Now using only one websockets connection
crubb Aug 9, 2017
88efa70
Bitfinex WS: Better error handling on connect/auth/sending messages
crubb Aug 9, 2017
2268101
Bitfinex WS: Further improving retries and error handling
crubb Aug 10, 2017
a7b88c0
Bitfinex WS: Not directly calling the websockets part of the bitfinex…
crubb Aug 10, 2017
36b9575
Bitfinex WS: Fixed wallet recalc when asset or currency are 0
crubb Aug 11, 2017
4cdc4ad
Merge branch 'crubb/bitfinex.ws' of github.com:crubb/zenbot into crub…
crubb Aug 11, 2017
667fed1
Bitfinex WS: New reconnect approach, honor "INSUFFICIENT MARGIN"
crubb Aug 13, 2017
88b84d7
Bitfinex WS: Missing )
crubb Aug 13, 2017
7822028
Bitfinex WS: Remove debug logging on "close"
crubb Aug 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion commands/trade.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ module.exports = function container (get, set, clear) {
limit: 1000
}
if (db_cursor) {
trade_cursor = db_cursor
opts.query.time = {$gt: db_cursor}
}
else {
trade_cursor = query_start
opts.query.time = {$gte: query_start}
}
get('db.trades').select(opts, function (err, trades) {
Expand Down Expand Up @@ -257,7 +259,9 @@ module.exports = function container (get, set, clear) {
console.error('\n' + moment().format('YYYY-MM-DD HH:mm:ss') + ' - error saving session')
console.error(err)
}
engine.writeReport(true)
if (s.period) {
engine.writeReport(true)
}
})
})
}
Expand Down
Loading