Closed stav closed 2 years ago
2022-05-05 16:35:44 UTC INFO [default] Sending {
command: "tradeTransaction",
arguments: {
tradeTransInfo: {
price: undefined,
cmd: 1,
order: 383119357,
offset: 0,
symbol: "ETHEREUM",
customComment: null,
volume: 0.5,
sl: 2799.3,
tp: 0,
expiration: null,
position: 383119357,
type: 3
}
},
customTag: "0.9542951505269972"
}
{"status":false,"customTag":"0.9542951505269972","errorCode":"BE4004","errorDescr":"Invalid price"}
2022-05-05 16:36:51 UTC WARNING [default] Closing XApi Socket { id: 13372997, name: "Thomas Duna (Stav#6)", type: "demo" }
So I added some random price
field and now it's working:
2022-05-07 15:46:05 UTC INFO [default] check1: 27 open trades in total
2022-05-07 15:46:05 UTC INFO [default] check2: 2 in family of DOGECOIN
2022-05-07 15:46:05 UTC INFO [default] STOP LOSS: 0.12983 = 0.12979 + 0.00003893699999999999
2022-05-07 15:46:05 UTC INFO [default] Updating stop loss to 0.12983 for 2 orders
2022-05-07 15:46:05 UTC INFO [default] Sending {
command: "tradeTransaction",
arguments: {
tradeTransInfo: {
price: 0.12979,
cmd: 0,
order: 383713573,
offset: 0,
symbol: "DOGECOIN",
volume: 1000,
sl: 0.12983,
tp: 0.13057,
type: 3
}
},
customTag: "0.5472523318809723"
}
2022-05-07 15:46:05 UTC INFO [default] Message '{"status":true,"returnData":{"order":383713573},"customTag":"0.5472523318809723"}'
Analysis in #20
Closed with 79ee50c626ad05ac0460127112e00f5d9b550250