Skip to content

Commit

Permalink
fix: useCounterParty with STOP / LIMIT order (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
zccz14 authored Oct 29, 2023
1 parent 7ef953d commit d7f9129
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions @libs/utils/useCounterParty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export function useCounterParty(source_account_id: string) {
...order,
account_id: tar.account_id,
client_order_id: UUID(),
type:
order.type === OrderType.STOP
? OrderType.LIMIT
: order.type === OrderType.LIMIT
? OrderType.STOP
: order.type,
direction:
order.direction === OrderDirection.OPEN_LONG
? OrderDirection.OPEN_SHORT
Expand Down

0 comments on commit d7f9129

Please sign in to comment.