Skip to content

Commit

Permalink
feat: add rfr to ftsu response
Browse files Browse the repository at this point in the history
  • Loading branch information
slavastartsev committed Apr 24, 2024
1 parent d138932 commit 80a2c09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/Aggregator/ws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ class AggregatorWS {
txHash: json.h,
network: json.n,
realizedPnL: json.rpnl,
realizedFR: json.rfr,
roi: json.r,
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ export const futuresTradesStreamSchema = z.object({
h: z.string(), // transaction hash
n: z.enum(networkCodes), // network
rpnl: z.string().optional(), // realized PnL, optional
rfr: z.string().optional(), // realized FR, optional
r: z.string().optional(), // ROI in %, optional
});
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export type FuturesTradesStream = {
txHash: string
network: NetworkShortName
realizedPnL: string | undefined
realizedFR: string | undefined
roi: string | undefined
}

Expand Down

0 comments on commit 80a2c09

Please sign in to comment.