@uniswap/client-trading 0.11.19 → 0.11.21
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.
|
@@ -8468,9 +8468,11 @@ export declare class MarginAssetPair extends Message<MarginAssetPair> {
|
|
|
8468
8468
|
*/
|
|
8469
8469
|
counterToken?: MarginTokenMetadata;
|
|
8470
8470
|
/**
|
|
8471
|
-
* The venues
|
|
8472
|
-
*
|
|
8473
|
-
*
|
|
8471
|
+
* The venues the catalogue opens the pair on, never empty. A venue whose
|
|
8472
|
+
* market is close-only, hard-triggered or stale is left off, and a pair no
|
|
8473
|
+
* venue opens is not listed. A listed venue can still be refused on live
|
|
8474
|
+
* reserve or router state, so /margin/markets and the quote are
|
|
8475
|
+
* authoritative for what opens.
|
|
8474
8476
|
*
|
|
8475
8477
|
* @generated from field: repeated trading.v1.MarginVenue venues = 3;
|
|
8476
8478
|
*/
|
|
@@ -9260,8 +9262,14 @@ export declare class MarginPositionRow extends Message<MarginPositionRow> {
|
|
|
9260
9262
|
*/
|
|
9261
9263
|
roe?: string;
|
|
9262
9264
|
/**
|
|
9263
|
-
* ACTIVE only.
|
|
9264
|
-
*
|
|
9265
|
+
* ACTIVE only. Balances, `oracle_price` and the risk fields below it are read
|
|
9266
|
+
* on chain per request, never cached: a stale health factor is the one number
|
|
9267
|
+
* a caller must not act on. `equity`, `leverage`, `unrealized_pnl`, `roe` and
|
|
9268
|
+
* `unrealized_pnl_in_debt` are valued at `current_price`, or at
|
|
9269
|
+
* `oracle_price` when it is absent. `leverage` is absent when `equity` is
|
|
9270
|
+
* zero at that price, or when `equity` is absent and the LTV is at or above
|
|
9271
|
+
* 1; `health_factor` can still be above 1e18 then, as the venue liquidates
|
|
9272
|
+
* at `oracle_price`.
|
|
9265
9273
|
*
|
|
9266
9274
|
* @generated from field: optional string equity = 12;
|
|
9267
9275
|
*/
|
|
@@ -9274,6 +9282,15 @@ export declare class MarginPositionRow extends Message<MarginPositionRow> {
|
|
|
9274
9282
|
* @generated from field: optional string oracle_price = 14;
|
|
9275
9283
|
*/
|
|
9276
9284
|
oraclePrice?: string;
|
|
9285
|
+
/**
|
|
9286
|
+
* ACTIVE only. The market price the position is marked at, which can differ
|
|
9287
|
+
* from `oracle_price`. Counter per exposure, 1e18-scaled, in the same trader
|
|
9288
|
+
* terms as `oracle_price`. Unlike the risk fields it can be served from a
|
|
9289
|
+
* short-lived cache. Absent when none was read.
|
|
9290
|
+
*
|
|
9291
|
+
* @generated from field: optional string current_price = 38;
|
|
9292
|
+
*/
|
|
9293
|
+
currentPrice?: string;
|
|
9277
9294
|
/**
|
|
9278
9295
|
* In TRADER terms, so a short's mark and liquidation price are both
|
|
9279
9296
|
* reciprocated; see `displayRiskPrices`.
|
|
@@ -9816,9 +9816,11 @@ export class MarginAssetPair extends Message {
|
|
|
9816
9816
|
constructor(data) {
|
|
9817
9817
|
super();
|
|
9818
9818
|
/**
|
|
9819
|
-
* The venues
|
|
9820
|
-
*
|
|
9821
|
-
*
|
|
9819
|
+
* The venues the catalogue opens the pair on, never empty. A venue whose
|
|
9820
|
+
* market is close-only, hard-triggered or stale is left off, and a pair no
|
|
9821
|
+
* venue opens is not listed. A listed venue can still be refused on live
|
|
9822
|
+
* reserve or router state, so /margin/markets and the quote are
|
|
9823
|
+
* authoritative for what opens.
|
|
9822
9824
|
*
|
|
9823
9825
|
* @generated from field: repeated trading.v1.MarginVenue venues = 3;
|
|
9824
9826
|
*/
|
|
@@ -10559,6 +10561,7 @@ MarginPositionRow.fields = proto3.util.newFieldList(() => [
|
|
|
10559
10561
|
{ no: 12, name: "equity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10560
10562
|
{ no: 13, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10561
10563
|
{ no: 14, name: "oracle_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10564
|
+
{ no: 38, name: "current_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10562
10565
|
{ no: 15, name: "liquidation_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10563
10566
|
{ no: 16, name: "buffer", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
10564
10567
|
{ no: 17, name: "health_factor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|