Skip to content

Commit ea90a32

Browse files
committed
getFuturesHoldingPrice: issell boolean На продажу?
1 parent a7d03f0 commit ea90a32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roffild.lua

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ end
183183

184184
---@class roffildgetFuturesHoldingPriceReturn : qluaClientAccountPositionsFutures
185185
---@field class_code string "SPBFUT"
186+
---@field issell boolean На продажу?
186187
---@field lastprice number Цена последней сделки
187188
---@field lasttrade_num number Номер последней сделки
188189

@@ -201,6 +202,7 @@ function roffild.getFuturesHoldingPrice(timeout)
201202
for k, v in pairs(roffild.getTable("futures_client_holding")) do
202203
if v.totalnet ~= nil and v.totalnet ~= 0 then
203204
v.class_code = "SPBFUT"
205+
v.issell = v.totalnet < 0
204206
v.lastprice = v.avrposnprice
205207
v.lasttrade_num = 0
206208
result[v.trdaccid .. v.sec_code] = v

0 commit comments

Comments
 (0)