File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ let user_payload = []
3535
3636const binance_client = binance ( )
3737
38- const nbt_vers = "0.1.3 "
38+ const nbt_vers = "0.1.4 "
3939const socket = io ( 'https://nbt-hub.herokuapp.com' , { query : "v=" + nbt_vers + "&type=client&key=" + bva_key } )
4040
4141socket . on ( 'connect' , ( ) => {
@@ -61,6 +61,7 @@ socket.on('buy_signal', async (signal) => {
6161 key : bva_key ,
6262 stratname : signal . stratname ,
6363 stratid : signal . stratid ,
64+ trading_type : user_payload [ tresult ] . trading_type ,
6465 pair : signal . pair ,
6566 buy_price : Number ( buy_prices [ signal . pair + signal . stratid ] . toString ( ) ) ,
6667 }
@@ -87,6 +88,7 @@ socket.on('sell_signal', async (signal) => {
8788 key : bva_key ,
8889 stratname : signal . stratname ,
8990 stratid : signal . stratid ,
91+ trading_type : user_payload [ tresult ] . trading_type ,
9092 pair : signal . pair ,
9193 sell_price : Number ( sell_price . toString ( ) ) ,
9294 pnl : Number ( pnl . minus ( 0.1 ) . decimalPlaces ( 2 ) . toString ( ) ) ,
You can’t perform that action at this time.
0 commit comments