Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJuze committed Feb 26, 2024
1 parent a037622 commit 95e1934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "@electra.finance/sdk",
"version": "0.2.11-rc0",
"version": "0.2.11-rc1",
"description": "Electra finance SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/services/Aggregator/ws/schemas/addressUpdateSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const fullOrderSchema = z.object({
t: z.number(), // update time
lv: z.number().optional(), // leverage
roi: z.number().optional(), // ROI%
ep: z.number().optional(), // exit price
ep: z.number().optional(), // entry price
c: subOrderSchema.array(), // sub orders (content)

// CFD only
Expand Down Expand Up @@ -129,7 +129,7 @@ export const fullOrderSchema = z.object({
realizedPnL: o.rpnl,
leverage: o.lv,
roi: o.roi,
exitPrice: o.ep,
entryPrice: o.ep,
subOrders: getTransformedSubOrders(o.c),
}));

Expand Down

0 comments on commit 95e1934

Please sign in to comment.