@uniswap/client-trading 0.12.16 → 0.12.18
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 +16 -10
- package/package.json +1 -1
|
@@ -7949,10 +7949,15 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
|
|
|
7949
7949
|
*/
|
|
7950
7950
|
oraclePrice?: string | undefined;
|
|
7951
7951
|
/**
|
|
7952
|
-
* ACTIVE only. The market price
|
|
7953
|
-
*
|
|
7954
|
-
*
|
|
7955
|
-
*
|
|
7952
|
+
* ACTIVE only. The pair's market price, which can differ from
|
|
7953
|
+
* `oracle_price`: the midpoint of a small fixed sale of the collateral for
|
|
7954
|
+
* the debt and a buy of about the same amount of collateral, each on its
|
|
7955
|
+
* cheapest single route, so the pool fee largely cancels out of it. Shared
|
|
7956
|
+
* by every position on the pair and up to 30 seconds old, so unlike the risk
|
|
7957
|
+
* fields it can be served from a cache. It leaves out the position's own
|
|
7958
|
+
* size and the pool fee, so a close realizes less than this values it at,
|
|
7959
|
+
* by that close's fee and price impact. Counter per exposure, 1e18-scaled,
|
|
7960
|
+
* in the same trader terms as `oracle_price`. Absent when none was read.
|
|
7956
7961
|
*
|
|
7957
7962
|
* @generated from field: optional string current_price = 38;
|
|
7958
7963
|
*/
|
|
@@ -8015,12 +8020,13 @@ export type MarginPositionRow = Message<"trading.v1.MarginPositionRow"> & {
|
|
|
8015
8020
|
/**
|
|
8016
8021
|
* TERMINAL only, and likewise cost-basis derived. `realized_pnl` is raw
|
|
8017
8022
|
* collateral-token units: collateral returned minus collateral deposited.
|
|
8018
|
-
* On a terminal LONG `size` is the collateral it held when it closed.
|
|
8019
|
-
*
|
|
8020
|
-
*
|
|
8021
|
-
*
|
|
8022
|
-
*
|
|
8023
|
-
*
|
|
8023
|
+
* On a terminal LONG `size` is the collateral it held when it closed. On a
|
|
8024
|
+
* terminal SHORT it is the debt it owed when it closed, interest included,
|
|
8025
|
+
* or, when its debt was repaid before its collateral left, the debt that
|
|
8026
|
+
* repay cleared. Without that debt on record, as for a SHORT closed before
|
|
8027
|
+
* it was kept, it is the debt drawn over the position's life, before
|
|
8028
|
+
* interest: 0 when none was seen drawn, and more than it closed with after
|
|
8029
|
+
* a leverage decrease or partial liquidation.
|
|
8024
8030
|
*
|
|
8025
8031
|
* @generated from field: optional int64 closed_at = 20;
|
|
8026
8032
|
*/
|