@uniswap/client-trading 0.12.18 → 0.12.19
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/dist/trading/v1/api_pb.d.ts +12 -7
- package/package.json +1 -1
|
@@ -8126,7 +8126,8 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
|
|
|
8126
8126
|
realizedPnlToDateInDebt?: string | undefined;
|
|
8127
8127
|
/**
|
|
8128
8128
|
* The position's PnL in the pair's quote asset, from the position store.
|
|
8129
|
-
* Absent
|
|
8129
|
+
* Absent on a SHORT row, whose quote asset is not the debt the PnL is booked
|
|
8130
|
+
* in, and when the store does not track the row's PnL.
|
|
8130
8131
|
*
|
|
8131
8132
|
* @generated from field: optional trading.v1.MarginPositionPnl pnl = 45;
|
|
8132
8133
|
*/
|
|
@@ -8151,13 +8152,14 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
|
|
|
8151
8152
|
export declare const MarginPositionRowSchema: GenMessage<MarginPositionRow>;
|
|
8152
8153
|
/**
|
|
8153
8154
|
* Every amount is a signed base-10 integer in raw `quote_token` units, and
|
|
8154
|
-
* market values are at the price
|
|
8155
|
+
* market values are at the price an ACTIVE row's `equity` is valued at; a
|
|
8156
|
+
* terminal row's are at its close.
|
|
8155
8157
|
*
|
|
8156
8158
|
* @generated from message trading.v1.MarginPositionPnl
|
|
8157
8159
|
*/
|
|
8158
8160
|
export type MarginPositionPnl = Message<"trading.v1.MarginPositionPnl"> & {
|
|
8159
8161
|
/**
|
|
8160
|
-
* The row's `counter_token
|
|
8162
|
+
* The row's `counter_token`.
|
|
8161
8163
|
*
|
|
8162
8164
|
* @generated from field: trading.v1.MarginTokenMetadata quote_token = 1;
|
|
8163
8165
|
*/
|
|
@@ -8198,15 +8200,17 @@ export type MarginPositionPnl = Message<"trading.v1.MarginPositionPnl"> & {
|
|
|
8198
8200
|
*/
|
|
8199
8201
|
unrealized?: string | undefined;
|
|
8200
8202
|
/**
|
|
8201
|
-
* `total` / `invested`, 1e18-scaled, signed: 1e18 is 100
|
|
8202
|
-
* `invested` is zero or negative
|
|
8203
|
+
* `total` / `invested`, 1e18-scaled, signed: 1e18 is 100%, and never below
|
|
8204
|
+
* -1e18. Absent when `invested` is zero or negative, or under 5% of the
|
|
8205
|
+
* deposits.
|
|
8203
8206
|
*
|
|
8204
8207
|
* @generated from field: optional string roi = 7;
|
|
8205
8208
|
*/
|
|
8206
8209
|
roi?: string | undefined;
|
|
8207
8210
|
/**
|
|
8208
8211
|
* ACTIVE only. The market price at which `total` is zero, in the same terms
|
|
8209
|
-
* as the row's `entry_price`. Absent with `roi
|
|
8212
|
+
* as the row's `entry_price`. Absent with `roi`, and when the row holds no
|
|
8213
|
+
* collateral.
|
|
8210
8214
|
*
|
|
8211
8215
|
* @generated from field: optional string break_even_price = 8;
|
|
8212
8216
|
*/
|
|
@@ -8240,7 +8244,8 @@ export type MarginPositionPnl = Message<"trading.v1.MarginPositionPnl"> & {
|
|
|
8240
8244
|
*/
|
|
8241
8245
|
collateralInterest?: string | undefined;
|
|
8242
8246
|
/**
|
|
8243
|
-
* TERMINAL only. What the close paid the owner
|
|
8247
|
+
* TERMINAL only. What the close paid the owner: `total` + `invested`. Never
|
|
8248
|
+
* negative.
|
|
8244
8249
|
*
|
|
8245
8250
|
* @generated from field: optional string payout = 13;
|
|
8246
8251
|
*/
|