Skip to content

Commit

Permalink
fix minor changes to order update mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
samanthatuhseng authored and alanwu4321 committed Aug 16, 2023
1 parent b0099bf commit 8f57470
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exchanges/OrderlyPrivateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ export class OrderlyPrivateClient extends BasicPrivateClient {
const event = null;

const isSell = d.side.substring(0, 4).toLowerCase() == "sell";
const amount = Math.abs(Number(d.sz || 0));
const amountFilled = Math.abs(Number(d.accFillSz || 0));
const price = Number(d.avgPx || 0) || Number(d.px || 0);
const amount = Math.abs(Number(d.quantity || 0));
const amountFilled = Math.abs(Number(d.executedQuantity || 0));
const price = Number(d.avgPrice || 0) || Number(d.price || 0);
const change = {
exchange: this.name,
pair: d.symbol,
Expand Down

0 comments on commit 8f57470

Please sign in to comment.