carbon-js-sdk 0.4.0 → 0.4.1
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.
- package/lib/websocket/models.d.ts +19 -22
- package/lib/websocket/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
3
|
-
block_height: number;
|
|
4
|
-
id: number;
|
|
5
|
-
liquidation?: string;
|
|
6
|
-
maker_address: string;
|
|
7
|
-
maker_fee_amount: string;
|
|
8
|
-
maker_fee_denom: string;
|
|
9
|
-
maker_id: string;
|
|
10
|
-
maker_side: string;
|
|
1
|
+
export interface AccountTrade {
|
|
2
|
+
order_id: string;
|
|
11
3
|
market: string;
|
|
4
|
+
side: string;
|
|
12
5
|
price: string;
|
|
13
6
|
quantity: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
fee_amount: string;
|
|
8
|
+
fee_denom: string;
|
|
9
|
+
address: string;
|
|
10
|
+
block_height: number;
|
|
11
|
+
block_created_at: string;
|
|
12
|
+
trade_id: number;
|
|
19
13
|
}
|
|
20
14
|
export interface HistoryOrder {
|
|
21
15
|
address: string;
|
|
@@ -65,18 +59,12 @@ export interface Candlestick {
|
|
|
65
59
|
quote_volume: string;
|
|
66
60
|
resolution: number;
|
|
67
61
|
}
|
|
68
|
-
export interface
|
|
69
|
-
address: string;
|
|
62
|
+
export interface RecentTrade {
|
|
70
63
|
block_created_at: string;
|
|
71
64
|
block_height: number;
|
|
72
|
-
fee_amount: string;
|
|
73
|
-
fee_denom: string;
|
|
74
65
|
market: string;
|
|
75
|
-
order_id: string;
|
|
76
66
|
price: string;
|
|
77
67
|
quantity: string;
|
|
78
|
-
side: string;
|
|
79
|
-
trade_id: number;
|
|
80
68
|
id?: string;
|
|
81
69
|
liquidation?: string;
|
|
82
70
|
taker_id?: string;
|
|
@@ -195,9 +183,18 @@ export interface CDPParams {
|
|
|
195
183
|
interest_fee: string;
|
|
196
184
|
liquidation_fee: string;
|
|
197
185
|
stablecoin_interest_rate: string;
|
|
186
|
+
stablecoin_mint_cap: string;
|
|
198
187
|
complete_liquidation_threshold: string;
|
|
199
188
|
minimum_close_factor: string;
|
|
200
189
|
small_liquidation_size: string;
|
|
190
|
+
stale_price_grace_period: string;
|
|
191
|
+
cdp_paused: boolean;
|
|
192
|
+
stablecoin_interest_rate_epoch: string;
|
|
193
|
+
stablecoin_interest_rate_adjuster_coefficient?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface StablecoinInterestInfo {
|
|
196
|
+
last_updated_time: string;
|
|
197
|
+
stablecoin_interest_rate: string;
|
|
201
198
|
}
|
|
202
199
|
export interface RateStrategy {
|
|
203
200
|
name: string;
|
package/lib/websocket/types.d.ts
CHANGED