@acta-markets/ts-sdk 0.0.16-beta → 0.0.17-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/ws/types.d.ts +34 -0
  2. package/package.json +1 -1
@@ -154,6 +154,9 @@ export type ClientMessage = {
154
154
  } | {
155
155
  type: "GetEarnSummary";
156
156
  data: GetEarnSummaryMessage;
157
+ } | {
158
+ type: "GetMyTrades";
159
+ data: GetMyTradesMessage;
157
160
  } | {
158
161
  type: "GetSubscriptions";
159
162
  data: GetSubscriptionsMessage;
@@ -460,6 +463,9 @@ export type ServerMessage = {
460
463
  } | {
461
464
  type: "EarnSummary";
462
465
  data: EarnSummaryData;
466
+ } | {
467
+ type: "MyTrades";
468
+ data: MyTradesMessage;
463
469
  } | {
464
470
  type: "RfqSkipped";
465
471
  data: RfqSkippedMessage;
@@ -1057,6 +1063,8 @@ export type EarnAssetSummary = {
1057
1063
  cap_total: WsU64;
1058
1064
  cap_used: WsU64;
1059
1065
  strikes_count: number;
1066
+ nearest_market_pda: string;
1067
+ markets_count: WsU32;
1060
1068
  nearest_expiry_ts: number;
1061
1069
  };
1062
1070
  export type EarnSummaryData = {
@@ -1064,6 +1072,32 @@ export type EarnSummaryData = {
1064
1072
  assets: EarnAssetSummary[];
1065
1073
  computed_at: number;
1066
1074
  };
1075
+ export type GetMyTradesMessage = {
1076
+ request_id: RequestId;
1077
+ limit?: WsU32;
1078
+ /** Unix timestamp seconds cursor for keyset pagination. */
1079
+ cursor?: WsU64;
1080
+ cursor_id?: UuidString;
1081
+ market?: string;
1082
+ };
1083
+ export type MakerTradeInfo = {
1084
+ id: UuidString;
1085
+ rfq_id: UuidString;
1086
+ market_pda: string;
1087
+ position_type: PositionType;
1088
+ taker: string;
1089
+ strike: WsU64;
1090
+ quantity: WsU64;
1091
+ price: WsU64;
1092
+ tx_signature?: string | null;
1093
+ position_pda?: string | null;
1094
+ confirmed_at: WsU64;
1095
+ };
1096
+ export type MyTradesMessage = {
1097
+ request_id: RequestId;
1098
+ trades: MakerTradeInfo[];
1099
+ has_more: boolean;
1100
+ };
1067
1101
  export type StatsDelta = {
1068
1102
  volume_added?: WsU64 | null;
1069
1103
  trades_added?: WsU32 | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acta-markets/ts-sdk",
3
- "version": "0.0.16-beta",
3
+ "version": "0.0.17-beta",
4
4
  "description": "TypeScript SDK for Acta Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",