Skip to content

Commit

Permalink
Merge pull request #19 from oraichain/hotfix/calculate-take-profit
Browse files Browse the repository at this point in the history
Update get trigger msg
  • Loading branch information
sonnx-oraichain authored Mar 4, 2024
2 parents a9e86c7 + 5feb1be commit cf45f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tp_sl_lq/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class EngineHandler {

const willTriggetTpSl = this.willTpSl(
BigInt(closePrice),
BigInt(position.take_profit),
BigInt(position.take_profit ?? "0"),
BigInt(position.stop_loss ?? "0"),
BigInt(tpSpread.toString()),
BigInt(slSpread.toString()),
Expand Down

0 comments on commit cf45f92

Please sign in to comment.