@sui-tracker/shared 1.0.58 → 1.0.59
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.
|
@@ -26,8 +26,9 @@ export interface PoolData {
|
|
|
26
26
|
}
|
|
27
27
|
export interface PoolDataDetail {
|
|
28
28
|
id: string;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
tokenA: TokenData;
|
|
30
|
+
tokenB: TokenData;
|
|
31
|
+
aIsBase: boolean;
|
|
31
32
|
reserveA?: number;
|
|
32
33
|
reserveB?: number;
|
|
33
34
|
currentPrice: string;
|
|
@@ -51,17 +52,12 @@ export interface PoolDataDetail {
|
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
export interface CandleData {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
openUsd: string;
|
|
61
|
-
highUsd: string;
|
|
62
|
-
lowUsd: string;
|
|
63
|
-
closeUsd: string;
|
|
64
|
-
volumeUsd: string;
|
|
55
|
+
t: string;
|
|
56
|
+
o: string;
|
|
57
|
+
h: string;
|
|
58
|
+
l: string;
|
|
59
|
+
c: string;
|
|
60
|
+
v: string;
|
|
65
61
|
}
|
|
66
62
|
export interface GetTrendingPoolsRequest {
|
|
67
63
|
label: number;
|
|
@@ -78,6 +74,7 @@ export interface GetCandleChartRequest {
|
|
|
78
74
|
resolution: number;
|
|
79
75
|
limit: number;
|
|
80
76
|
timestamp?: string;
|
|
77
|
+
type?: 'usd' | 'token';
|
|
81
78
|
}
|
|
82
79
|
export interface GetTrendingPoolsResponse extends BaseResponse {
|
|
83
80
|
data: PoolData[];
|
|
@@ -108,7 +105,8 @@ export interface SwapOrderData {
|
|
|
108
105
|
}
|
|
109
106
|
export interface GetLastSwapOrderRequest {
|
|
110
107
|
poolAddress: string;
|
|
111
|
-
|
|
108
|
+
startTime: string;
|
|
109
|
+
endTime: string;
|
|
112
110
|
limit?: number;
|
|
113
111
|
type?: string;
|
|
114
112
|
page?: number;
|
|
@@ -52,28 +52,24 @@ message PoolData {
|
|
|
52
52
|
// Pool data detail structure matching PoolDataDetail interface
|
|
53
53
|
message PoolDataDetail {
|
|
54
54
|
string id = 1;
|
|
55
|
-
TokenData
|
|
56
|
-
TokenData
|
|
57
|
-
|
|
58
|
-
optional double
|
|
59
|
-
|
|
60
|
-
string
|
|
61
|
-
|
|
55
|
+
TokenData tokenA = 2;
|
|
56
|
+
TokenData tokenB = 3;
|
|
57
|
+
bool aIsBase = 4;
|
|
58
|
+
optional double reserveA = 5;
|
|
59
|
+
optional double reserveB = 6;
|
|
60
|
+
string currentPrice = 7;
|
|
61
|
+
string dex = 8;
|
|
62
|
+
StatsData statsData = 9;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
// Candle data structure matching CandleData interface
|
|
65
66
|
message CandleData {
|
|
66
|
-
string
|
|
67
|
-
string
|
|
68
|
-
string
|
|
69
|
-
string
|
|
70
|
-
string
|
|
71
|
-
string
|
|
72
|
-
string openUsd = 7;
|
|
73
|
-
string highUsd = 8;
|
|
74
|
-
string lowUsd = 9;
|
|
75
|
-
string closeUsd = 10;
|
|
76
|
-
string volumeUsd = 11;
|
|
67
|
+
string t = 1; // timestamp
|
|
68
|
+
string o = 2; // open
|
|
69
|
+
string h = 3; // high
|
|
70
|
+
string l = 4; // low
|
|
71
|
+
string c = 5; // close
|
|
72
|
+
string v = 6; // volume
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
// Swap order data structure matching SwapOrderData interface
|
|
@@ -130,14 +126,16 @@ message GetCandleChartRequest {
|
|
|
130
126
|
int32 resolution = 2;
|
|
131
127
|
int32 limit = 3;
|
|
132
128
|
optional string timestamp = 4;
|
|
129
|
+
optional string type = 5; // 'usd' | 'token'
|
|
133
130
|
}
|
|
134
131
|
|
|
135
132
|
message GetLastSwapOrderRequest {
|
|
136
133
|
string poolAddress = 1;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
optional
|
|
140
|
-
optional
|
|
134
|
+
string startTime = 2;
|
|
135
|
+
string endTime = 3;
|
|
136
|
+
optional int32 limit = 4;
|
|
137
|
+
optional string type = 5;
|
|
138
|
+
optional int32 page = 6;
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
message GetTrendingTokensRequest {
|