Skip to content

Commit b3711d7

Browse files
committed
indentation
1 parent a548ad0 commit b3711d7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/logic.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Commission is broker-driven by default via `acc.broker`.
232232
mark_for_valuation = _calc_mark_price(inst, pos.quantity + fill_qty, bid, ask)
233233
margin_for_valuation = margin_reference_price(acc, inst, mark_for_valuation, last)
234234
needs_mark_update = isnan(pos.mark_price) || pos.mark_price != mark_for_position ||
235-
pos.last_bid != bid || pos.last_ask != ask || pos.last_price != last || pos.mark_time != dt
235+
pos.last_bid != bid || pos.last_ask != ask || pos.last_price != last || pos.mark_time != dt
236236
needs_mark_update && _update_marks!(acc, pos, dt, mark_for_position, bid, ask, last)
237237

238238
_accrue_borrow_fee!(acc, pos, dt)
@@ -281,9 +281,9 @@ Commission is broker-driven by default via `acc.broker`.
281281
pos.last_price = last
282282
pos.mark_time = dt
283283
if pos.quantity < 0.0 &&
284-
inst.contract_kind == ContractKind.Spot &&
285-
inst.settlement == SettlementStyle.PrincipalExchange &&
286-
inst.short_borrow_rate > 0.0
284+
inst.contract_kind == ContractKind.Spot &&
285+
inst.settlement == SettlementStyle.PrincipalExchange &&
286+
inst.short_borrow_rate > 0.0
287287
pos.borrow_fee_dt = dt
288288
else
289289
pos.borrow_fee_dt = TTime(0)

0 commit comments

Comments
 (0)