@injectivelabs/sdk-ts 1.19.17 → 1.19.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/cjs/{StreamManagerV2-Di7iOXpa.cjs → StreamManagerV2-C7d4Q1Sc.cjs} +75 -66
- package/dist/cjs/client/chain.d.cts +1 -1
- package/dist/cjs/client/indexer.cjs +1 -1
- package/dist/cjs/client/indexer.d.cts +1 -1
- package/dist/cjs/core/accounts.d.cts +1 -1
- package/dist/cjs/core/modules.d.cts +1 -1
- package/dist/cjs/core/tx.d.cts +1 -1
- package/dist/cjs/{index-Cbh6Sv37.d.cts → index-BbSReEJu.d.cts} +145 -92
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/utils.d.cts +1 -1
- package/dist/esm/{StreamManagerV2-mZliXsfe.js → StreamManagerV2-Dzgh302M.js} +75 -66
- package/dist/esm/client/chain.d.ts +1 -1
- package/dist/esm/client/indexer.d.ts +1 -1
- package/dist/esm/client/indexer.js +1 -1
- package/dist/esm/core/accounts.d.ts +1 -1
- package/dist/esm/core/modules.d.ts +1 -1
- package/dist/esm/core/tx.d.ts +1 -1
- package/dist/esm/{index-BFDdHSKv.d.ts → index-BQCEjcu1.d.ts} +145 -92
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils.d.ts +1 -1
- package/package.json +6 -6
|
@@ -21868,7 +21868,7 @@ declare const BECH32_ADDR_VAL_PREFIX = "injvaloper";
|
|
|
21868
21868
|
declare const BECH32_ADDR_CONS_PREFIX = "injvalcons";
|
|
21869
21869
|
declare const DEFAULT_DERIVATION_PATH = "m/44'/60'/0'/0/0";
|
|
21870
21870
|
//#endregion
|
|
21871
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
21871
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_accounts_rpc_pb.d.ts
|
|
21872
21872
|
/**
|
|
21873
21873
|
* @generated from protobuf message injective_accounts_rpc.PortfolioResponse
|
|
21874
21874
|
*/
|
|
@@ -22384,7 +22384,7 @@ declare const Reward = new Reward$Type();
|
|
|
22384
22384
|
*/
|
|
22385
22385
|
declare const Coin$7 = new Coin$Type();
|
|
22386
22386
|
//#endregion
|
|
22387
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
22387
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_explorer_rpc_pb.d.ts
|
|
22388
22388
|
/**
|
|
22389
22389
|
* @generated from protobuf message injective_explorer_rpc.GetAccountTxsResponse
|
|
22390
22390
|
*/
|
|
@@ -23818,7 +23818,7 @@ declare const fetchAllWithPagination: <T extends {
|
|
|
23818
23818
|
//#region src/utils/transaction.d.ts
|
|
23819
23819
|
declare const recoverTypedSignaturePubKey: (data: TypedDataDefinition, signature: string) => Promise<string>;
|
|
23820
23820
|
//#endregion
|
|
23821
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
23821
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_rpc_pb.d.ts
|
|
23822
23822
|
/**
|
|
23823
23823
|
* @generated from protobuf message injective_rfq_rpc.StreamRequestResponse
|
|
23824
23824
|
*/
|
|
@@ -27066,7 +27066,7 @@ type GrpcSubaccountBalance = SubaccountBalance$2;
|
|
|
27066
27066
|
type GrpcSubaccountPortfolio = SubaccountPortfolio$1;
|
|
27067
27067
|
type GrpcSubaccountBalanceTransfer = SubaccountBalanceTransfer;
|
|
27068
27068
|
//#endregion
|
|
27069
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
27069
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_trading_rpc_pb.d.ts
|
|
27070
27070
|
/**
|
|
27071
27071
|
* @generated from protobuf message injective_trading_rpc.ListTradingStrategiesResponse
|
|
27072
27072
|
*/
|
|
@@ -28318,7 +28318,7 @@ interface QuantityAndFees {
|
|
|
28318
28318
|
resultQuantity: string;
|
|
28319
28319
|
}
|
|
28320
28320
|
//#endregion
|
|
28321
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
28321
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_spot_exchange_rpc_pb.d.ts
|
|
28322
28322
|
/**
|
|
28323
28323
|
* @generated from protobuf message injective_spot_exchange_rpc.MarketsResponse
|
|
28324
28324
|
*/
|
|
@@ -29474,7 +29474,7 @@ type GrpcSpotLimitOrder = SpotLimitOrder$1;
|
|
|
29474
29474
|
type GrpcSpotOrderHistory = SpotOrderHistory$1;
|
|
29475
29475
|
type GrpcAtomicSwap = AtomicSwap$1;
|
|
29476
29476
|
//#endregion
|
|
29477
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
29477
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_rfq_gw_rpc_pb.d.ts
|
|
29478
29478
|
/**
|
|
29479
29479
|
* @generated from protobuf message injective_rfq_gw_rpc.RFQGwPrepareEip712AutoSignRequestType
|
|
29480
29480
|
*/
|
|
@@ -30571,7 +30571,7 @@ type GrpcRFQGwPrepareEip712Response = PrepareEip712Response$1;
|
|
|
30571
30571
|
type GrpcRFQGwPrepareEip712AutoSignRequest = RFQGwPrepareEip712AutoSignRequestType$1;
|
|
30572
30572
|
type GrpcRFQGwPrepareEip712AutoSignResponse = PrepareEip712AutoSignResponse;
|
|
30573
30573
|
//#endregion
|
|
30574
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
30574
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_oracle_rpc_pb.d.ts
|
|
30575
30575
|
/**
|
|
30576
30576
|
* @generated from protobuf message injective_oracle_rpc.OracleListResponse
|
|
30577
30577
|
*/
|
|
@@ -30733,7 +30733,7 @@ declare const StreamPricesByMarketsResponse = new StreamPricesByMarketsResponse$
|
|
|
30733
30733
|
type GrpcOracle = Oracle$1;
|
|
30734
30734
|
interface Oracle extends GrpcOracle {}
|
|
30735
30735
|
//#endregion
|
|
30736
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
30736
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_auction_rpc_pb.d.ts
|
|
30737
30737
|
/**
|
|
30738
30738
|
* @generated from protobuf message injective_auction_rpc.AuctionEndpointResponse
|
|
30739
30739
|
*/
|
|
@@ -31230,7 +31230,7 @@ type GrpcAccountAuctionV2 = AccountAuctionV2$1;
|
|
|
31230
31230
|
type GrpcAuctionContract = AuctionContract$1;
|
|
31231
31231
|
type StreamBidsResponse = StreamBidsResponse$1;
|
|
31232
31232
|
//#endregion
|
|
31233
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31233
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_archiver_rpc_pb.d.ts
|
|
31234
31234
|
/**
|
|
31235
31235
|
* @generated from protobuf message injective_archiver_rpc.BalanceResponse
|
|
31236
31236
|
*/
|
|
@@ -31752,7 +31752,7 @@ type GrpcHistoricalVolumes = HistoricalVolumes$1;
|
|
|
31752
31752
|
type GrpcPnlLeaderboard = PnlLeaderboardResponse | PnlLeaderboardFixedResolutionResponse;
|
|
31753
31753
|
type GrpcVolLeaderboard = VolLeaderboardResponse | VolLeaderboardFixedResolutionResponse;
|
|
31754
31754
|
//#endregion
|
|
31755
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31755
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_referral_rpc_pb.d.ts
|
|
31756
31756
|
/**
|
|
31757
31757
|
* @generated from protobuf message injective_referral_rpc.GetReferrerDetailsResponse
|
|
31758
31758
|
*/
|
|
@@ -31883,7 +31883,7 @@ interface ReferralDetails {
|
|
|
31883
31883
|
invitees: ReferralInvitee[];
|
|
31884
31884
|
}
|
|
31885
31885
|
//#endregion
|
|
31886
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
31886
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_campaign_rpc_pb.d.ts
|
|
31887
31887
|
/**
|
|
31888
31888
|
* @generated from protobuf message injective_campaign_rpc.RankingResponse
|
|
31889
31889
|
*/
|
|
@@ -32720,7 +32720,7 @@ interface AllSpotMarketSummaryResponse {
|
|
|
32720
32720
|
data: AllChronosSpotMarketSummary[];
|
|
32721
32721
|
}
|
|
32722
32722
|
//#endregion
|
|
32723
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
32723
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_megavault_rpc_pb.d.ts
|
|
32724
32724
|
/**
|
|
32725
32725
|
* @generated from protobuf message injective_megavault_rpc.GetVaultResponse
|
|
32726
32726
|
*/
|
|
@@ -33839,7 +33839,7 @@ interface IncentivesCampaign {
|
|
|
33839
33839
|
subaccountIdSuffix: string;
|
|
33840
33840
|
}
|
|
33841
33841
|
//#endregion
|
|
33842
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
33842
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_insurance_rpc_pb.d.ts
|
|
33843
33843
|
/**
|
|
33844
33844
|
* @generated from protobuf message injective_insurance_rpc.FundsResponse
|
|
33845
33845
|
*/
|
|
@@ -34101,7 +34101,7 @@ interface InsuranceFundCreateParams {
|
|
|
34101
34101
|
type GrpcIndexerInsuranceFund = InsuranceFund$2;
|
|
34102
34102
|
type GrpcIndexerRedemptionSchedule = RedemptionSchedule;
|
|
34103
34103
|
//#endregion
|
|
34104
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
34104
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_derivative_exchange_rpc_pb.d.ts
|
|
34105
34105
|
/**
|
|
34106
34106
|
* @generated from protobuf message injective_derivative_exchange_rpc.MarketsResponse
|
|
34107
34107
|
*/
|
|
@@ -34963,6 +34963,12 @@ interface DerivativeLimitOrder$2 {
|
|
|
34963
34963
|
* @generated from protobuf field: string cid = 22
|
|
34964
34964
|
*/
|
|
34965
34965
|
cid: string;
|
|
34966
|
+
/**
|
|
34967
|
+
* Account address that owns the subaccount which placed this order
|
|
34968
|
+
*
|
|
34969
|
+
* @generated from protobuf field: string account_address = 23
|
|
34970
|
+
*/
|
|
34971
|
+
accountAddress: string;
|
|
34966
34972
|
}
|
|
34967
34973
|
/**
|
|
34968
34974
|
* @generated from protobuf message injective_derivative_exchange_rpc.PositionsResponse
|
|
@@ -35308,6 +35314,12 @@ interface StreamPositionsV2Response {
|
|
|
35308
35314
|
* @generated from protobuf field: sint64 timestamp = 2
|
|
35309
35315
|
*/
|
|
35310
35316
|
timestamp: bigint;
|
|
35317
|
+
/**
|
|
35318
|
+
* Position update type
|
|
35319
|
+
*
|
|
35320
|
+
* @generated from protobuf field: string operation_type = 3
|
|
35321
|
+
*/
|
|
35322
|
+
operationType: string;
|
|
35311
35323
|
}
|
|
35312
35324
|
/**
|
|
35313
35325
|
* @generated from protobuf message injective_derivative_exchange_rpc.StreamOrdersResponse
|
|
@@ -35843,23 +35855,23 @@ declare const StreamOrdersHistoryResponse$1 = new StreamOrdersHistoryResponse$Ty
|
|
|
35843
35855
|
//#endregion
|
|
35844
35856
|
//#region src/client/indexer/types/derivatives.d.ts
|
|
35845
35857
|
interface PositionDelta {
|
|
35846
|
-
tradeDirection: TradeDirection;
|
|
35847
35858
|
executionPrice: string;
|
|
35848
|
-
executionQuantity: string;
|
|
35849
35859
|
executionMargin: string;
|
|
35860
|
+
executionQuantity: string;
|
|
35861
|
+
tradeDirection: TradeDirection;
|
|
35850
35862
|
}
|
|
35851
35863
|
interface Position {
|
|
35864
|
+
margin: string;
|
|
35865
|
+
ticker: string;
|
|
35852
35866
|
marketId: string;
|
|
35853
|
-
subaccountId: string;
|
|
35854
|
-
direction: TradeDirection;
|
|
35855
35867
|
quantity: string;
|
|
35868
|
+
markPrice: string;
|
|
35869
|
+
updatedAt: number;
|
|
35856
35870
|
entryPrice: string;
|
|
35857
|
-
|
|
35871
|
+
subaccountId: string;
|
|
35858
35872
|
liquidationPrice: string;
|
|
35859
|
-
|
|
35860
|
-
ticker: string;
|
|
35873
|
+
direction: TradeDirection;
|
|
35861
35874
|
aggregateReduceOnlyQuantity: string;
|
|
35862
|
-
updatedAt: number;
|
|
35863
35875
|
}
|
|
35864
35876
|
interface PositionV2 extends Omit<Position, 'aggregateReduceOnlyQuantity'> {
|
|
35865
35877
|
upnl: string;
|
|
@@ -35870,155 +35882,156 @@ interface PositionV2 extends Omit<Position, 'aggregateReduceOnlyQuantity'> {
|
|
|
35870
35882
|
effectiveCumulativeFundingEntry: string;
|
|
35871
35883
|
}
|
|
35872
35884
|
interface PerpetualMarketInfo {
|
|
35873
|
-
|
|
35885
|
+
fundingInterval: number;
|
|
35874
35886
|
hourlyInterestRate: string;
|
|
35887
|
+
hourlyFundingRateCap: string;
|
|
35875
35888
|
nextFundingTimestamp: number;
|
|
35876
|
-
fundingInterval: number;
|
|
35877
35889
|
}
|
|
35878
35890
|
interface PerpetualMarketFunding {
|
|
35879
|
-
cumulativeFunding: string;
|
|
35880
|
-
cumulativePrice: string;
|
|
35881
35891
|
lastTimestamp: number;
|
|
35892
|
+
cumulativePrice: string;
|
|
35893
|
+
cumulativeFunding: string;
|
|
35882
35894
|
}
|
|
35883
35895
|
interface ExpiryFuturesMarketInfo {
|
|
35884
|
-
expirationTimestamp: number;
|
|
35885
35896
|
settlementPrice: string;
|
|
35897
|
+
expirationTimestamp: number;
|
|
35886
35898
|
}
|
|
35887
35899
|
interface BaseDerivativeMarket {
|
|
35888
|
-
oracleType: string;
|
|
35889
|
-
marketId: string;
|
|
35890
|
-
marketStatus: string;
|
|
35891
35900
|
ticker: string;
|
|
35901
|
+
marketId: string;
|
|
35902
|
+
oracleType: string;
|
|
35892
35903
|
quoteDenom: string;
|
|
35904
|
+
minNotional: number;
|
|
35905
|
+
marketStatus: string;
|
|
35893
35906
|
makerFeeRate: string;
|
|
35894
|
-
quoteToken: TokenMeta | undefined;
|
|
35895
35907
|
takerFeeRate: string;
|
|
35896
|
-
serviceProviderFee: string;
|
|
35897
35908
|
minPriceTickSize: number;
|
|
35909
|
+
serviceProviderFee: string;
|
|
35898
35910
|
minQuantityTickSize: number;
|
|
35899
|
-
|
|
35911
|
+
quoteToken: TokenMeta | undefined;
|
|
35900
35912
|
}
|
|
35901
35913
|
interface PerpetualMarket extends BaseDerivativeMarket {
|
|
35902
|
-
reduceMarginRatio: string;
|
|
35903
|
-
initialMarginRatio: string;
|
|
35904
|
-
maintenanceMarginRatio: string;
|
|
35905
|
-
isPerpetual: boolean;
|
|
35906
35914
|
oracleBase: string;
|
|
35907
35915
|
oracleQuote: string;
|
|
35916
|
+
isPerpetual: boolean;
|
|
35917
|
+
reduceMarginRatio: string;
|
|
35908
35918
|
oracleScaleFactor: number;
|
|
35919
|
+
initialMarginRatio: string;
|
|
35920
|
+
maintenanceMarginRatio: string;
|
|
35909
35921
|
perpetualMarketInfo?: PerpetualMarketInfo;
|
|
35910
35922
|
perpetualMarketFunding?: PerpetualMarketFunding;
|
|
35911
35923
|
}
|
|
35912
35924
|
interface ExpiryFuturesMarket extends BaseDerivativeMarket {
|
|
35913
|
-
reduceMarginRatio: string;
|
|
35914
|
-
initialMarginRatio: string;
|
|
35915
|
-
maintenanceMarginRatio: string;
|
|
35916
|
-
isPerpetual: boolean;
|
|
35917
35925
|
oracleBase: string;
|
|
35918
35926
|
oracleQuote: string;
|
|
35927
|
+
isPerpetual: boolean;
|
|
35928
|
+
reduceMarginRatio: string;
|
|
35919
35929
|
oracleScaleFactor: number;
|
|
35930
|
+
initialMarginRatio: string;
|
|
35931
|
+
maintenanceMarginRatio: string;
|
|
35920
35932
|
expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo;
|
|
35921
35933
|
}
|
|
35922
35934
|
interface BinaryOptionsMarket extends Omit<BaseDerivativeMarket, 'minPriceTickSize' | 'minQuantityTickSize'> {
|
|
35935
|
+
minNotional: number;
|
|
35923
35936
|
oracleSymbol: string;
|
|
35924
35937
|
oracleProvider: string;
|
|
35938
|
+
settlementPrice: string;
|
|
35939
|
+
minPriceTickSize: number;
|
|
35925
35940
|
oracleScaleFactor: number;
|
|
35941
|
+
serviceProviderFee: string;
|
|
35926
35942
|
expirationTimestamp: number;
|
|
35927
35943
|
settlementTimestamp: number;
|
|
35928
|
-
serviceProviderFee: string;
|
|
35929
|
-
minPriceTickSize: number;
|
|
35930
35944
|
minQuantityTickSize: number;
|
|
35931
|
-
minNotional: number;
|
|
35932
|
-
settlementPrice: string;
|
|
35933
35945
|
}
|
|
35934
35946
|
type DerivativeMarket = PerpetualMarket | ExpiryFuturesMarket | BinaryOptionsMarket;
|
|
35935
35947
|
type DerivativeMarketWithoutBinaryOptions = PerpetualMarket | ExpiryFuturesMarket;
|
|
35936
35948
|
interface DerivativeLimitOrder {
|
|
35937
|
-
orderHash: string;
|
|
35938
|
-
orderSide: OrderSide;
|
|
35939
|
-
marketId: string;
|
|
35940
35949
|
cid: string;
|
|
35941
|
-
subaccountId: string;
|
|
35942
|
-
isReduceOnly: boolean;
|
|
35943
|
-
margin: string;
|
|
35944
35950
|
price: string;
|
|
35951
|
+
margin: string;
|
|
35952
|
+
marketId: string;
|
|
35945
35953
|
quantity: string;
|
|
35946
|
-
|
|
35947
|
-
triggerPrice: string;
|
|
35948
|
-
feeRecipient: string;
|
|
35954
|
+
orderHash: string;
|
|
35949
35955
|
state: OrderState;
|
|
35950
35956
|
createdAt: number;
|
|
35951
35957
|
updatedAt: number;
|
|
35952
|
-
orderNumber: number;
|
|
35953
35958
|
orderType: string;
|
|
35954
|
-
isConditional: boolean;
|
|
35955
35959
|
triggerAt: number;
|
|
35956
|
-
|
|
35960
|
+
orderNumber: number;
|
|
35961
|
+
orderSide: OrderSide;
|
|
35962
|
+
subaccountId: string;
|
|
35963
|
+
triggerPrice: string;
|
|
35964
|
+
feeRecipient: string;
|
|
35965
|
+
isReduceOnly: boolean;
|
|
35957
35966
|
executionType: string;
|
|
35967
|
+
isConditional: boolean;
|
|
35968
|
+
accountAddress: string;
|
|
35969
|
+
placedOrderHash: string;
|
|
35970
|
+
unfilledQuantity: string;
|
|
35958
35971
|
}
|
|
35959
35972
|
interface DerivativeOrderHistory {
|
|
35960
|
-
orderHash: string;
|
|
35961
|
-
marketId: string;
|
|
35962
35973
|
cid: string;
|
|
35963
|
-
isActive: boolean;
|
|
35964
|
-
subaccountId: string;
|
|
35965
|
-
executionType: string;
|
|
35966
|
-
orderType: string;
|
|
35967
35974
|
price: string;
|
|
35968
|
-
triggerPrice: string;
|
|
35969
|
-
quantity: string;
|
|
35970
|
-
filledQuantity: string;
|
|
35971
35975
|
state: string;
|
|
35976
|
+
margin: string;
|
|
35977
|
+
marketId: string;
|
|
35978
|
+
quantity: string;
|
|
35979
|
+
orderHash: string;
|
|
35980
|
+
isActive: boolean;
|
|
35981
|
+
orderType: string;
|
|
35972
35982
|
createdAt: number;
|
|
35973
35983
|
updatedAt: number;
|
|
35974
|
-
isReduceOnly: boolean;
|
|
35975
35984
|
direction: string;
|
|
35976
|
-
isConditional: boolean;
|
|
35977
35985
|
triggerAt: number;
|
|
35986
|
+
subaccountId: string;
|
|
35987
|
+
triggerPrice: string;
|
|
35988
|
+
executionType: string;
|
|
35989
|
+
isReduceOnly: boolean;
|
|
35990
|
+
filledQuantity: string;
|
|
35991
|
+
isConditional: boolean;
|
|
35978
35992
|
placedOrderHash: string;
|
|
35979
|
-
margin: string;
|
|
35980
35993
|
}
|
|
35981
35994
|
interface DerivativeTrade extends PositionDelta {
|
|
35982
|
-
orderHash: string;
|
|
35983
|
-
subaccountId: string;
|
|
35984
|
-
tradeId: string;
|
|
35985
35995
|
cid: string;
|
|
35996
|
+
fee: string;
|
|
35997
|
+
pnl: string;
|
|
35998
|
+
payout: string;
|
|
35999
|
+
tradeId: string;
|
|
35986
36000
|
marketId: string;
|
|
36001
|
+
orderHash: string;
|
|
35987
36002
|
executedAt: number;
|
|
35988
|
-
|
|
35989
|
-
tradeDirection: TradeDirection;
|
|
35990
|
-
executionSide: TradeExecutionSide;
|
|
35991
|
-
fee: string;
|
|
36003
|
+
subaccountId: string;
|
|
35992
36004
|
feeRecipient: string;
|
|
35993
36005
|
isLiquidation: boolean;
|
|
35994
|
-
|
|
35995
|
-
|
|
36006
|
+
tradeDirection: TradeDirection;
|
|
36007
|
+
executionSide: TradeExecutionSide;
|
|
36008
|
+
tradeExecutionType: TradeExecutionType;
|
|
35996
36009
|
}
|
|
35997
36010
|
interface DerivativeLimitOrderParams {
|
|
35998
|
-
orderType: GrpcOrderType;
|
|
35999
|
-
triggerPrice?: string;
|
|
36000
|
-
feeRecipient: string;
|
|
36001
36011
|
price: string;
|
|
36002
36012
|
margin: string;
|
|
36003
36013
|
quantity: string;
|
|
36014
|
+
feeRecipient: string;
|
|
36015
|
+
triggerPrice?: string;
|
|
36016
|
+
orderType: GrpcOrderType;
|
|
36004
36017
|
}
|
|
36005
36018
|
interface DerivativeOrderCancelParams {
|
|
36006
36019
|
orderHash: string;
|
|
36007
36020
|
}
|
|
36008
36021
|
interface BatchDerivativeOrderCancelParams {
|
|
36009
36022
|
marketId: string;
|
|
36010
|
-
subaccountId: string;
|
|
36011
36023
|
orderHash: string;
|
|
36024
|
+
subaccountId: string;
|
|
36012
36025
|
}
|
|
36013
36026
|
interface FundingPayment {
|
|
36014
|
-
marketId: string;
|
|
36015
|
-
subaccountId: string;
|
|
36016
36027
|
amount: string;
|
|
36028
|
+
marketId: string;
|
|
36017
36029
|
timestamp: number;
|
|
36030
|
+
subaccountId: string;
|
|
36018
36031
|
}
|
|
36019
36032
|
interface FundingRate {
|
|
36020
|
-
marketId: string;
|
|
36021
36033
|
rate: string;
|
|
36034
|
+
marketId: string;
|
|
36022
36035
|
timestamp: number;
|
|
36023
36036
|
}
|
|
36024
36037
|
type GrpcFundingRate = FundingRate$1;
|
|
@@ -36191,7 +36204,7 @@ interface BankTransferFromExplorerApiResponse {
|
|
|
36191
36204
|
block_timestamp: string;
|
|
36192
36205
|
}
|
|
36193
36206
|
//#endregion
|
|
36194
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
36207
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_tc_derivatives_rpc_pb.d.ts
|
|
36195
36208
|
/**
|
|
36196
36209
|
* @generated from protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
|
|
36197
36210
|
*/
|
|
@@ -36341,6 +36354,12 @@ interface TCDerivativeOrderHistoryType {
|
|
|
36341
36354
|
* @generated from protobuf field: string cid = 21
|
|
36342
36355
|
*/
|
|
36343
36356
|
cid: string;
|
|
36357
|
+
/**
|
|
36358
|
+
* Account address that owns the subaccount which placed this order
|
|
36359
|
+
*
|
|
36360
|
+
* @generated from protobuf field: string account_address = 22
|
|
36361
|
+
*/
|
|
36362
|
+
accountAddress: string;
|
|
36344
36363
|
}
|
|
36345
36364
|
/**
|
|
36346
36365
|
* @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersHistoryResponse
|
|
@@ -36518,6 +36537,12 @@ interface DerivativeLimitOrder$1 {
|
|
|
36518
36537
|
* @generated from protobuf field: string cid = 22
|
|
36519
36538
|
*/
|
|
36520
36539
|
cid: string;
|
|
36540
|
+
/**
|
|
36541
|
+
* Account address that owns the subaccount which placed this order
|
|
36542
|
+
*
|
|
36543
|
+
* @generated from protobuf field: string account_address = 23
|
|
36544
|
+
*/
|
|
36545
|
+
accountAddress: string;
|
|
36521
36546
|
}
|
|
36522
36547
|
/**
|
|
36523
36548
|
* @generated from protobuf message injective_tc_derivatives_rpc.StreamOrdersResponse
|
|
@@ -36673,6 +36698,19 @@ interface TCDerivativeTrade {
|
|
|
36673
36698
|
* @generated from protobuf field: bool is_position_closed = 18
|
|
36674
36699
|
*/
|
|
36675
36700
|
isPositionClosed: boolean;
|
|
36701
|
+
/**
|
|
36702
|
+
* RFQ maker address for the synthetic trade (set only on synthetic trades
|
|
36703
|
+
* coming from an RFQ settlement)
|
|
36704
|
+
*
|
|
36705
|
+
* @generated from protobuf field: string rfq_maker = 19
|
|
36706
|
+
*/
|
|
36707
|
+
rfqMaker: string;
|
|
36708
|
+
/**
|
|
36709
|
+
* Account address that owns the subaccount which executed this trade
|
|
36710
|
+
*
|
|
36711
|
+
* @generated from protobuf field: string account_address = 20
|
|
36712
|
+
*/
|
|
36713
|
+
accountAddress: string;
|
|
36676
36714
|
}
|
|
36677
36715
|
/**
|
|
36678
36716
|
* @generated from protobuf message injective_tc_derivatives_rpc.PositionDelta
|
|
@@ -36865,6 +36903,12 @@ interface StreamPositionsResponse {
|
|
|
36865
36903
|
* @generated from protobuf field: sint64 timestamp = 2
|
|
36866
36904
|
*/
|
|
36867
36905
|
timestamp: bigint;
|
|
36906
|
+
/**
|
|
36907
|
+
* Position update type
|
|
36908
|
+
*
|
|
36909
|
+
* @generated from protobuf field: string operation_type = 3
|
|
36910
|
+
*/
|
|
36911
|
+
operationType: string;
|
|
36868
36912
|
}
|
|
36869
36913
|
/**
|
|
36870
36914
|
* @generated MessageType for protobuf message injective_tc_derivatives_rpc.OrdersHistoryResponse
|
|
@@ -36946,6 +36990,7 @@ interface TcDerivativeOrderHistory {
|
|
|
36946
36990
|
isReduceOnly: boolean;
|
|
36947
36991
|
filledQuantity: string;
|
|
36948
36992
|
isConditional: boolean;
|
|
36993
|
+
accountAddress: string;
|
|
36949
36994
|
placedOrderHash: string;
|
|
36950
36995
|
direction: TradeDirection;
|
|
36951
36996
|
}
|
|
@@ -36956,11 +37001,13 @@ interface TcDerivativeTradeHistory {
|
|
|
36956
37001
|
payout: string;
|
|
36957
37002
|
tradeId: string;
|
|
36958
37003
|
marketId: string;
|
|
37004
|
+
rfqMaker: string;
|
|
36959
37005
|
orderHash: string;
|
|
36960
37006
|
executedAt: number;
|
|
36961
37007
|
subaccountId: string;
|
|
36962
37008
|
feeRecipient: string;
|
|
36963
37009
|
isLiquidation: boolean;
|
|
37010
|
+
accountAddress: string;
|
|
36964
37011
|
executionPrice: string;
|
|
36965
37012
|
positionIsLong: boolean;
|
|
36966
37013
|
executionMargin: string;
|
|
@@ -37012,6 +37059,7 @@ interface TcDerivativeLimitOrder {
|
|
|
37012
37059
|
isConditional: boolean;
|
|
37013
37060
|
placedOrderHash: string;
|
|
37014
37061
|
unfilledQuantity: string;
|
|
37062
|
+
accountAddress: string;
|
|
37015
37063
|
}
|
|
37016
37064
|
interface TcDerivativesOrdersHistoryResponse {
|
|
37017
37065
|
next: string[];
|
|
@@ -37245,7 +37293,7 @@ interface ChronosLeaderboardResponse {
|
|
|
37245
37293
|
data: ChronosLeaderboard;
|
|
37246
37294
|
}
|
|
37247
37295
|
//#endregion
|
|
37248
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
37296
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_portfolio_rpc_pb.d.ts
|
|
37249
37297
|
/**
|
|
37250
37298
|
* @generated from protobuf message injective_portfolio_rpc.AccountPortfolioResponse
|
|
37251
37299
|
*/
|
|
@@ -38101,7 +38149,7 @@ declare class IndexerGrpcMitoApi extends BaseIndexerGrpcConsumer {
|
|
|
38101
38149
|
}>;
|
|
38102
38150
|
}
|
|
38103
38151
|
//#endregion
|
|
38104
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
38152
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_meta_rpc_pb.d.ts
|
|
38105
38153
|
/**
|
|
38106
38154
|
* @generated from protobuf message injective_meta_rpc.PingResponse
|
|
38107
38155
|
*/
|
|
@@ -38486,7 +38534,7 @@ declare class IndexerGrpcOracleApi extends BaseIndexerGrpcConsumer {
|
|
|
38486
38534
|
}): Promise<PriceResponse>;
|
|
38487
38535
|
}
|
|
38488
38536
|
//#endregion
|
|
38489
|
-
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.
|
|
38537
|
+
//#region ../../node_modules/.pnpm/@injectivelabs+indexer-proto-ts-v2@1.18.21/node_modules/@injectivelabs/indexer-proto-ts-v2/generated/injective_exchange_rpc_pb.d.ts
|
|
38490
38538
|
/**
|
|
38491
38539
|
* @generated from protobuf message injective_exchange_rpc.PrepareTxResponse
|
|
38492
38540
|
*/
|
|
@@ -39616,10 +39664,11 @@ declare class IndexerGrpcTcDerivativesApi extends BaseIndexerGrpcConsumer {
|
|
|
39616
39664
|
fetchTradesHistory(params?: {
|
|
39617
39665
|
token?: string;
|
|
39618
39666
|
sortBy?: string;
|
|
39619
|
-
withPnl?: boolean;
|
|
39620
39667
|
endTime?: number;
|
|
39621
39668
|
perPage?: number;
|
|
39669
|
+
withPnl?: boolean;
|
|
39622
39670
|
marketId?: string;
|
|
39671
|
+
rfqMaker?: string;
|
|
39623
39672
|
startTime?: number;
|
|
39624
39673
|
direction?: string;
|
|
39625
39674
|
sortDirection?: string;
|
|
@@ -40615,6 +40664,7 @@ declare class IndexerDerivativeStreamTransformer {
|
|
|
40615
40664
|
static positionV2StreamCallback: (response: StreamPositionsV2Response) => {
|
|
40616
40665
|
position: PositionV2 | undefined;
|
|
40617
40666
|
timestamp: bigint;
|
|
40667
|
+
operationType: string;
|
|
40618
40668
|
};
|
|
40619
40669
|
}
|
|
40620
40670
|
//#endregion
|
|
@@ -40675,6 +40725,7 @@ declare class IndexerTcDerivativesStreamTransformer {
|
|
|
40675
40725
|
};
|
|
40676
40726
|
static positionsStreamCallback: (response: StreamPositionsResponse) => {
|
|
40677
40727
|
timestamp: number;
|
|
40728
|
+
operationType: string;
|
|
40678
40729
|
position: TcDerivativePosition | undefined;
|
|
40679
40730
|
};
|
|
40680
40731
|
static ordersStreamCallback: (response: StreamOrdersResponse) => {
|
|
@@ -42222,10 +42273,12 @@ declare class IndexerGrpcTcDerivativesStreamV2 {
|
|
|
42222
42273
|
}): StreamSubscription;
|
|
42223
42274
|
streamTrades({
|
|
42224
42275
|
marketId,
|
|
42225
|
-
|
|
42226
|
-
callback
|
|
42276
|
+
rfqMaker,
|
|
42277
|
+
callback,
|
|
42278
|
+
accountAddress
|
|
42227
42279
|
}: {
|
|
42228
42280
|
marketId?: string;
|
|
42281
|
+
rfqMaker?: string;
|
|
42229
42282
|
accountAddress?: string;
|
|
42230
42283
|
callback: TcDerivativeTradesStreamCallbackV2;
|
|
42231
42284
|
}): StreamSubscription;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ require('./BaseRestConsumer-uSzCOit7.cjs');
|
|
|
17
17
|
const require_ExecArgNeptuneWithdraw = require('./ExecArgNeptuneWithdraw-ChJ7QUin.cjs');
|
|
18
18
|
const require_AbacusGrpcApi = require('./AbacusGrpcApi-DlbYSnBj.cjs');
|
|
19
19
|
const require_IndexerGrpcWeb3GwApi = require('./IndexerGrpcWeb3GwApi-4kYonJ54.cjs');
|
|
20
|
-
const require_StreamManagerV2 = require('./StreamManagerV2-
|
|
20
|
+
const require_StreamManagerV2 = require('./StreamManagerV2-C7d4Q1Sc.cjs');
|
|
21
21
|
const require_types = require('./types-Cn54Lzf-.cjs');
|
|
22
22
|
const require_TcAbacusGrpcApi = require('./TcAbacusGrpcApi-DIX90jRr.cjs');
|
|
23
23
|
const require_tx = require('./tx-jN0kY2rr.cjs');
|