File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change
1
+ 5.0.4
2
+ - fix: public funding trade parsing
3
+ - styling: fix code formatting
4
+
1
5
5.0.0
2
- - upgrade: upgraded bfx-api-node-rest to 4.0.0, breaks previous versions compatibility
6
+ - upgrade: upgraded bfx-api-node-rest to 4.0.0, breaks previous versions compatibility
3
7
- fix: jsdocs
4
8
5
9
4.0.17
Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ async function execute () {
72
72
73
73
...( _isFinite ( value )
74
74
? [
75
- prepareAmount ( value ) ,
76
- currency !== valueCCY
77
- ? prepareAmount ( lastPrices [ symbolForWallet ( { currency } ) ] )
78
- : 1
79
- ]
75
+ prepareAmount ( value ) ,
76
+ currency !== valueCCY
77
+ ? prepareAmount ( lastPrices [ symbolForWallet ( { currency } ) ] )
78
+ : 1
79
+ ]
80
80
: [
81
- '-' ,
82
- '-'
83
- ] )
81
+ '-' ,
82
+ '-'
83
+ ] )
84
84
]
85
85
} )
86
86
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ class WSv2 extends EventEmitter {
473
473
return authSeq !== this . _lastAuthSeq
474
474
? new Error (
475
475
`invalid auth seq #, expected no advancement but got ${ authSeq } `
476
- )
476
+ )
477
477
: null
478
478
}
479
479
@@ -971,7 +971,7 @@ class WSv2 extends EventEmitter {
971
971
let data = payload
972
972
973
973
if ( this . _transform ) { // correctly parse single trade/array of trades
974
- const M = eventName [ 0 ] === 'f' ? FundingTrade : PublicTrade
974
+ const M = eventName [ 0 ] === 'f' && msg [ 2 ] . length === 8 ? FundingTrade : PublicTrade
975
975
const trades = M . unserialize ( data )
976
976
977
977
if ( _isArray ( trades ) && trades . length === 1 ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bitfinex-api-node" ,
3
- "version" : " 5.0.3 " ,
3
+ "version" : " 5.0.4 " ,
4
4
"description" : " Node reference library for Bitfinex API" ,
5
5
"engines" : {
6
6
"node" : " >=8.3.0"
You can’t perform that action at this time.
0 commit comments