@injectivelabs/sdk-ts 1.20.40 → 1.20.42
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/cjs/{BaseGrpcConsumer-BoWkMu4k.d.cts → BaseGrpcConsumer-CdK49BN-.d.cts} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-O9bXA4Wp.cjs → ChainGrpcExchangeApi-CId-6M-5.cjs} +6 -1
- package/dist/cjs/{MsgSetDenomMetadata-BoViAtb-.cjs → MsgSetDenomMetadata-B3DybiHv.cjs} +1 -1
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-vAGgibz4.cjs → QueryTradingStrategyContractTotalStrategies-CFnjo4KE.cjs} +1 -1
- package/dist/cjs/{SocialTradingGrpcApi-B5lkURaG.cjs → SocialTradingGrpcApi-D7Tq0N7X.cjs} +7 -3
- package/dist/cjs/{chain-71Y9o8in.cjs → chain-BQSlc71m.cjs} +974 -0
- package/dist/cjs/client/abacus.d.cts +3 -3
- package/dist/cjs/client/chain.cjs +4 -2
- package/dist/cjs/client/chain.d.cts +10 -10
- package/dist/cjs/client/indexer.d.cts +9 -9
- package/dist/cjs/client/olp.d.cts +3 -3
- package/dist/cjs/client/platformServices.cjs +1 -1
- package/dist/cjs/client/platformServices.d.cts +3 -3
- package/dist/cjs/client/tcAbacus.d.cts +3 -3
- package/dist/cjs/client/wasm.cjs +3 -3
- package/dist/cjs/client/wasm.d.cts +2 -2
- package/dist/cjs/core/accounts.d.cts +9 -9
- package/dist/cjs/core/modules.cjs +2 -2
- package/dist/cjs/core/modules.d.cts +9 -9
- package/dist/cjs/core/tx.d.cts +9 -9
- package/dist/cjs/{index-B674D7pD.d.cts → index-B_IiQ_8l.d.cts} +72 -1
- package/dist/cjs/{index-DuSabiqc.d.cts → index-COHrq5cC.d.cts} +1 -1
- package/dist/cjs/{index-Bi_QOX1c.d.cts → index-CTKBDD_0.d.cts} +25 -6
- package/dist/cjs/{index-BgG-Ygmg.d.cts → index-CXOJbnXh.d.cts} +22277 -17750
- package/dist/cjs/{index-BZDon-tA.d.cts → index-D-B0a_XJ.d.cts} +1 -1
- package/dist/cjs/{index-B5gFsbnp.d.cts → index-DZETSzfT.d.cts} +1 -1
- package/dist/cjs/{index-C9A-6Kpk.d.cts → index-DZmLd0jv.d.cts} +1 -1
- package/dist/cjs/{index-CiWsZ0Bw.d.cts → index-Dv0XARBE.d.cts} +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.d.cts +10 -10
- package/dist/cjs/service.d.cts +2 -2
- package/dist/cjs/types.d.cts +1 -1
- package/dist/cjs/utils.d.cts +9 -9
- package/dist/esm/{BaseGrpcConsumer-B-As45Rt.d.ts → BaseGrpcConsumer-ZV4ntv99.d.ts} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-CBjh2YW3.js → ChainGrpcExchangeApi-CKX1iMn5.js} +6 -1
- package/dist/esm/{MsgSetDenomMetadata-CgV0fs9N.js → MsgSetDenomMetadata-cLEp9FNe.js} +1 -1
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DqjBo_5G.js → QueryTradingStrategyContractTotalStrategies-BpCTIlKQ.js} +1 -1
- package/dist/esm/{SocialTradingGrpcApi-6l_bh26-.js → SocialTradingGrpcApi-0_K2Sgpu.js} +7 -3
- package/dist/esm/{chain-lwkNu_TP.js → chain-CN3u6aoh.js} +970 -9
- package/dist/esm/client/abacus.d.ts +3 -3
- package/dist/esm/client/chain.d.ts +10 -10
- package/dist/esm/client/chain.js +3 -3
- package/dist/esm/client/indexer.d.ts +9 -9
- package/dist/esm/client/olp.d.ts +3 -3
- package/dist/esm/client/platformServices.d.ts +3 -3
- package/dist/esm/client/platformServices.js +1 -1
- package/dist/esm/client/tcAbacus.d.ts +3 -3
- package/dist/esm/client/wasm.d.ts +2 -2
- package/dist/esm/client/wasm.js +3 -3
- package/dist/esm/core/accounts.d.ts +9 -9
- package/dist/esm/core/modules.d.ts +9 -9
- package/dist/esm/core/modules.js +2 -2
- package/dist/esm/core/tx.d.ts +9 -9
- package/dist/esm/{index-npjAvTgI.d.ts → index-B4b_ZIR4.d.ts} +1 -1
- package/dist/esm/{index-3oRwOCmE.d.ts → index-B7ZOvVy2.d.ts} +22277 -17750
- package/dist/esm/{index-CWDs9PX_.d.ts → index-BOgOcIyP.d.ts} +1 -1
- package/dist/esm/{index-RFuIuhwk.d.ts → index-BmHizv7B.d.ts} +1 -1
- package/dist/esm/{index-B0keqriy.d.ts → index-By1aye_R.d.ts} +1 -1
- package/dist/esm/{index-CMEOc5cJ.d.ts → index-CyZJTI39.d.ts} +25 -6
- package/dist/esm/{index-D8HsSSPt.d.ts → index-DoFZGNtu.d.ts} +72 -1
- package/dist/esm/{index-BX0RYyak.d.ts → index-m5131rZQ.d.ts} +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +6 -6
- package/dist/esm/service.d.ts +2 -2
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/utils.d.ts +9 -9
- package/package.json +6 -6
|
@@ -2134,6 +2134,73 @@ interface BandIBCParams {
|
|
|
2134
2134
|
*/
|
|
2135
2135
|
legacyOracleIds: bigint[];
|
|
2136
2136
|
}
|
|
2137
|
+
/**
|
|
2138
|
+
* MetadataStatistics refers to the metadata summary statistics of the
|
|
2139
|
+
* historical sample considered
|
|
2140
|
+
*
|
|
2141
|
+
* @generated from protobuf message injective.oracle.v1beta1.MetadataStatistics
|
|
2142
|
+
*/
|
|
2143
|
+
interface MetadataStatistics {
|
|
2144
|
+
/**
|
|
2145
|
+
* GroupCount refers to the number of groups used. Equals RecordsSampleSize if
|
|
2146
|
+
* no grouping is used
|
|
2147
|
+
*
|
|
2148
|
+
* @generated from protobuf field: uint32 group_count = 1
|
|
2149
|
+
*/
|
|
2150
|
+
groupCount: number;
|
|
2151
|
+
/**
|
|
2152
|
+
* RecordsSampleSize refers to the total number of records used.
|
|
2153
|
+
*
|
|
2154
|
+
* @generated from protobuf field: uint32 records_sample_size = 2
|
|
2155
|
+
*/
|
|
2156
|
+
recordsSampleSize: number;
|
|
2157
|
+
/**
|
|
2158
|
+
* Mean refers to the arithmetic mean
|
|
2159
|
+
* For trades, the mean is the VWAP computed over the grouped trade records ∑
|
|
2160
|
+
* (price * quantity) / ∑ quantity For oracle prices, the mean is computed
|
|
2161
|
+
* over the price records ∑ (price) / prices_count
|
|
2162
|
+
*
|
|
2163
|
+
* @generated from protobuf field: string mean = 3
|
|
2164
|
+
*/
|
|
2165
|
+
mean: string;
|
|
2166
|
+
/**
|
|
2167
|
+
* TWAP refers to the time-weighted average price which equals ∑ (price_i *
|
|
2168
|
+
* ∆t_i) / ∑ ∆t_i where ∆t_i = t_i - t_{i-1}
|
|
2169
|
+
*
|
|
2170
|
+
* @generated from protobuf field: string twap = 4
|
|
2171
|
+
*/
|
|
2172
|
+
twap: string;
|
|
2173
|
+
/**
|
|
2174
|
+
* FirstTimestamp is the timestamp of the oldest record considered
|
|
2175
|
+
*
|
|
2176
|
+
* @generated from protobuf field: int64 first_timestamp = 5
|
|
2177
|
+
*/
|
|
2178
|
+
firstTimestamp: bigint;
|
|
2179
|
+
/**
|
|
2180
|
+
* LastTimestamp is the timestamp of the youngest record considered
|
|
2181
|
+
*
|
|
2182
|
+
* @generated from protobuf field: int64 last_timestamp = 6
|
|
2183
|
+
*/
|
|
2184
|
+
lastTimestamp: bigint;
|
|
2185
|
+
/**
|
|
2186
|
+
* MinPrice refers to the smallest individual raw price considered
|
|
2187
|
+
*
|
|
2188
|
+
* @generated from protobuf field: string min_price = 7
|
|
2189
|
+
*/
|
|
2190
|
+
minPrice: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* MaxPrice refers to the largest individual raw price considered
|
|
2193
|
+
*
|
|
2194
|
+
* @generated from protobuf field: string max_price = 8
|
|
2195
|
+
*/
|
|
2196
|
+
maxPrice: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* MedianPrice refers to the median individual raw price considered
|
|
2199
|
+
*
|
|
2200
|
+
* @generated from protobuf field: string median_price = 9
|
|
2201
|
+
*/
|
|
2202
|
+
medianPrice: string;
|
|
2203
|
+
}
|
|
2137
2204
|
/**
|
|
2138
2205
|
* @generated from protobuf enum injective.oracle.v1beta1.OracleType
|
|
2139
2206
|
*/
|
|
@@ -2232,6 +2299,10 @@ declare const BandOracleRequest = new BandOracleRequest$Type();
|
|
|
2232
2299
|
* @generated MessageType for protobuf message injective.oracle.v1beta1.BandIBCParams
|
|
2233
2300
|
*/
|
|
2234
2301
|
declare const BandIBCParams = new BandIBCParams$Type();
|
|
2302
|
+
/**
|
|
2303
|
+
* @generated MessageType for protobuf message injective.oracle.v1beta1.MetadataStatistics
|
|
2304
|
+
*/
|
|
2305
|
+
declare const MetadataStatistics = new MetadataStatistics$Type();
|
|
2235
2306
|
//#endregion
|
|
2236
2307
|
//#region ../../node_modules/.pnpm/@injectivelabs+core-proto-ts-v2@1.20.3/node_modules/@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/exchange_pb.d.ts
|
|
2237
2308
|
/**
|
|
@@ -3996,4 +4067,4 @@ interface ExchangePagination {
|
|
|
3996
4067
|
next?: string[];
|
|
3997
4068
|
}
|
|
3998
4069
|
//#endregion
|
|
3999
|
-
export { BandIBCParams as $, FeeDiscountTierInfo as A, Params as B, DerivativeMarket as C, EffectiveGrant as D, DerivativeOrder as E, MarketVolume as F, SpotLimitOrder as G, PerpetualMarketInfo as H, MidPriceAndTOB as I, SpotOrder as J, SpotMarket as K, OrderInfo as L, GrantAuthorization as M, MarketFeeMultiplier as N, ExpiryFuturesMarketInfo as O, MarketStatus as P, TradingRewardCampaignInfo as Q, OrderMask$1 as R, DerivativeLimitOrder as S, DerivativeMarketSettlementInfo as T, PointsMultiplier as U, PerpetualMarketFunding as V, Position as W, TradeRecords as X, SubaccountTradeNonce as Y, TradingRewardCampaignBoostInfo as Z, BinaryOptionsMarket as _,
|
|
4070
|
+
export { BandIBCParams as $, FeeDiscountTierInfo as A, Params as B, DerivativeMarket as C, EffectiveGrant as D, DerivativeOrder as E, MarketVolume as F, SpotLimitOrder as G, PerpetualMarketInfo as H, MidPriceAndTOB as I, SpotOrder as J, SpotMarket as K, OrderInfo as L, GrantAuthorization as M, MarketFeeMultiplier as N, ExpiryFuturesMarketInfo as O, MarketStatus as P, TradingRewardCampaignInfo as Q, OrderMask$1 as R, DerivativeLimitOrder as S, DerivativeMarketSettlementInfo as T, PointsMultiplier as U, PerpetualMarketFunding as V, Position as W, TradeRecords as X, SubaccountTradeNonce as Y, TradingRewardCampaignBoostInfo as Z, BinaryOptionsMarket as _, DuplexStreamingCall as _t, AminoSignResponse$1 as a, StreamError as at, DenomMinNotional as b, MethodInfo as bt, GrpcCoin as c, StreamManagerRetryConfig as ct, GrpcWebTransportAdditionalOptions as d, TokenMeta as dt, BandOracleRequest as et, GrpcWebOptions as f, TokenSource as ft, AggregateSubaccountVolumeRecord as g, UnaryCall as gt, ActiveGrant as h, RpcTransport as ht, PaginationOption as i, ResolvedStreamManagerConfig as it, FeeDiscountTierTTL as j, FeeDiscountSchedule as k, SignDoc as l, StreamState as lt, OrderMaskMap as m, RpcOptions as mt, PagePagination as n, OracleType as nt, Coin as o, StreamManagerConfig as ot, OrderMask as p, TokenStatic as pt, SpotMarketOrder as q, Pagination as r, Params$1 as rt, DirectSignResponse$1 as s, StreamManagerEvents as st, ExchangePagination as t, MetadataStatistics as tt, TxRaw as u, StreamSubscription as ut, CampaignRewardPool as v, ClientStreamingCall as vt, DerivativeMarketOrder as w, Deposit as x, DenomDecimals as y, ServerStreamingCall as yt, OrderType as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-
|
|
1
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-CdK49BN-.cjs";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+platform-services-proto-ts-v2@1.0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+platform-services-proto-ts-v2@1.0.4/node_modules/@injectivelabs/platform-services-proto-ts-v2/generated/goagen_api_positions_service_pb.d.ts
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Persisted derivative position
|
|
@@ -167,6 +167,13 @@ interface DailyPNL {
|
|
|
167
167
|
* @generated from protobuf field: string pnl = 2
|
|
168
168
|
*/
|
|
169
169
|
pnl: string;
|
|
170
|
+
/**
|
|
171
|
+
* Realized PNL of the day converted to USD at the quote asset USD oracle price
|
|
172
|
+
* of each realizing trade.
|
|
173
|
+
*
|
|
174
|
+
* @generated from protobuf field: string pnl_usd = 3
|
|
175
|
+
*/
|
|
176
|
+
pnlUsd: string;
|
|
170
177
|
}
|
|
171
178
|
/**
|
|
172
179
|
* Account-level rolling position stats
|
|
@@ -199,8 +206,10 @@ interface AccountPositionStats {
|
|
|
199
206
|
*/
|
|
200
207
|
pnl: string;
|
|
201
208
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
209
|
+
* Realized PNL of positions closed in the selected window divided by the
|
|
210
|
+
* summed positive initial margin of those same positions. Decimal ratio, not
|
|
211
|
+
* percentage points: 0.25 means 25%. Zero when no position with positive
|
|
212
|
+
* initial margin closed in the window.
|
|
204
213
|
*
|
|
205
214
|
* @generated from protobuf field: string pnl_percentage = 7
|
|
206
215
|
*/
|
|
@@ -221,9 +230,9 @@ interface AccountPositionStats {
|
|
|
221
230
|
*/
|
|
222
231
|
maxDrawdown: string;
|
|
223
232
|
/**
|
|
224
|
-
* Cumulative realized PNL over the last
|
|
233
|
+
* Cumulative realized PNL over the last 30 days, sampled hourly. Always this
|
|
225
234
|
* span, whatever window is requested, so curves stay comparable between rows.
|
|
226
|
-
*
|
|
235
|
+
* Flat at zero for an account with no activity in that period.
|
|
227
236
|
*
|
|
228
237
|
* @generated from protobuf field: repeated string equity_curve = 11
|
|
229
238
|
*/
|
|
@@ -256,6 +265,13 @@ interface AccountPositionStats {
|
|
|
256
265
|
* @generated from protobuf field: string total_volume = 15
|
|
257
266
|
*/
|
|
258
267
|
totalVolume: string;
|
|
268
|
+
/**
|
|
269
|
+
* Realized PNL converted to USD, each realizing trade at the quote asset USD
|
|
270
|
+
* oracle price in force at its block. Same window semantics as pnl.
|
|
271
|
+
*
|
|
272
|
+
* @generated from protobuf field: string pnl_usd = 16
|
|
273
|
+
*/
|
|
274
|
+
pnlUsd: string;
|
|
259
275
|
}
|
|
260
276
|
/**
|
|
261
277
|
* @generated MessageType for protobuf message positions_service.Position
|
|
@@ -309,6 +325,7 @@ interface PlatformServicesListPositionTradesParams {
|
|
|
309
325
|
positionId: string;
|
|
310
326
|
pageSize?: number;
|
|
311
327
|
nextToken?: string;
|
|
328
|
+
sortDirection?: PlatformServicesPositionsSortDirection;
|
|
312
329
|
}
|
|
313
330
|
interface PlatformServicesGetAccountCountParams {
|
|
314
331
|
window?: PlatformServicesPositionsStatsWindow;
|
|
@@ -360,6 +377,7 @@ interface PlatformServicesListPositionTradesResponse {
|
|
|
360
377
|
}
|
|
361
378
|
interface PlatformServicesAccountPositionStats {
|
|
362
379
|
pnl: string;
|
|
380
|
+
pnlUsd: string;
|
|
363
381
|
wins: string;
|
|
364
382
|
rank?: string;
|
|
365
383
|
tags: string[];
|
|
@@ -377,6 +395,7 @@ interface PlatformServicesAccountPositionStats {
|
|
|
377
395
|
}
|
|
378
396
|
interface PlatformServicesDailyPNL {
|
|
379
397
|
pnl: string;
|
|
398
|
+
pnlUsd: string;
|
|
380
399
|
date: string;
|
|
381
400
|
}
|
|
382
401
|
interface PlatformServicesGetAccountDailyPNLResponse {
|