@codex-data/sdk 2.3.8 → 2.3.10
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/sdk/Subscribe.js +1 -1
- package/dist/sdk/Subscribe.mjs +1 -1
- package/dist/sdk/generated/gql.d.ts +6 -6
- package/dist/sdk/generated/gql.js +3 -3
- package/dist/sdk/generated/gql.mjs +3 -3
- package/dist/sdk/generated/graphql.d.ts +16 -5
- package/dist/sdk/generated/graphql.js +3 -3
- package/dist/sdk/generated/graphql.mjs +3 -3
- package/package.json +1 -1
|
@@ -2136,7 +2136,9 @@ export type FilterNetworkWalletsInput = {
|
|
|
2136
2136
|
/** Response returned by `onFilterTokensUpdated`. */
|
|
2137
2137
|
export type FilterTokenUpdates = {
|
|
2138
2138
|
__typename?: 'FilterTokenUpdates';
|
|
2139
|
-
/** The
|
|
2139
|
+
/** The IDs of tokens that no longer match the subscription parameters, sent when the subscription's result set is refreshed. */
|
|
2140
|
+
removedTokenIds?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2141
|
+
/** The list of updated token results matching the subscription parameters. When the subscription's result set is refreshed, also includes full results for tokens that newly match. */
|
|
2140
2142
|
updates?: Maybe<Array<Maybe<TokenFilterResult>>>;
|
|
2141
2143
|
};
|
|
2142
2144
|
/** The input for filtering wallets for a token. */
|
|
@@ -9837,7 +9839,7 @@ export type PredictionTraderMarketFilterResult = {
|
|
|
9837
9839
|
eventId: Scalars['String']['output'];
|
|
9838
9840
|
/** The timestamp of the first trade. */
|
|
9839
9841
|
firstTradeTimestamp: Scalars['Int']['output'];
|
|
9840
|
-
/** Whether the trader has an open position. */
|
|
9842
|
+
/** Whether the trader has an open position. Means they have actual shares held in the market (either outcome). */
|
|
9841
9843
|
hasOpenPosition: Scalars['Boolean']['output'];
|
|
9842
9844
|
/** The unique identifier. */
|
|
9843
9845
|
id: Scalars['String']['output'];
|
|
@@ -10010,7 +10012,7 @@ export type PredictionTraderMarketStats = {
|
|
|
10010
10012
|
__typename?: 'PredictionTraderMarketStats';
|
|
10011
10013
|
/** The creation timestamp. */
|
|
10012
10014
|
createdAt: Scalars['Int']['output'];
|
|
10013
|
-
/** Whether the trader has an open position. */
|
|
10015
|
+
/** Whether the trader has an open position. Means they have actual shares held in the market (either outcome). */
|
|
10014
10016
|
hasOpenPosition: Scalars['Boolean']['output'];
|
|
10015
10017
|
/** The ID of the prediction market. */
|
|
10016
10018
|
marketId: Scalars['String']['output'];
|
|
@@ -10047,6 +10049,8 @@ export type PredictionTraderMarketsStatsInput = {
|
|
|
10047
10049
|
/** Per-outcome stats within a trader-market filter result. */
|
|
10048
10050
|
export type PredictionTraderOutcomeFilterResult = {
|
|
10049
10051
|
__typename?: 'PredictionTraderOutcomeFilterResult';
|
|
10052
|
+
/** The actual shares held. If the trader has not actually redeemed the shares, but we've already calculated the pnl, this will still track their actual shares held. */
|
|
10053
|
+
actualSharesHeld: Scalars['String']['output'];
|
|
10050
10054
|
/** The avg entry price ct. */
|
|
10051
10055
|
avgEntryPriceCT: Scalars['String']['output'];
|
|
10052
10056
|
/** The avg entry price usd. */
|
|
@@ -10093,7 +10097,7 @@ export type PredictionTraderOutcomeFilterResult = {
|
|
|
10093
10097
|
sellVolumeUsd: Scalars['String']['output'];
|
|
10094
10098
|
/** The number of sells. */
|
|
10095
10099
|
sells: Scalars['Int']['output'];
|
|
10096
|
-
/** The shares held. */
|
|
10100
|
+
/** The shares held. This number may not be the same as the actual shares held if the trader has not actually redeemed the shares, but we've already calculated the pnl. */
|
|
10097
10101
|
sharesHeld: Scalars['String']['output'];
|
|
10098
10102
|
/** The unrealized pnl in collateral token units. Returns 0 for closed/no-share positions; null when latest price data is unavailable for an open position. */
|
|
10099
10103
|
unrealizedPnlCT?: Maybe<Scalars['String']['output']>;
|
|
@@ -10103,6 +10107,8 @@ export type PredictionTraderOutcomeFilterResult = {
|
|
|
10103
10107
|
/** Per-outcome stats for a trader within a specific market. */
|
|
10104
10108
|
export type PredictionTraderOutcomeStats = {
|
|
10105
10109
|
__typename?: 'PredictionTraderOutcomeStats';
|
|
10110
|
+
/** The actual shares held. If the trader has not actually redeemed the shares, but we've already calculated the pnl, this will still track their actual shares held. */
|
|
10111
|
+
actualSharesHeld: Scalars['String']['output'];
|
|
10106
10112
|
/** The avg entry price ct. */
|
|
10107
10113
|
avgEntryPriceCT: Scalars['String']['output'];
|
|
10108
10114
|
/** The avg entry price usd. */
|
|
@@ -10139,7 +10145,7 @@ export type PredictionTraderOutcomeStats = {
|
|
|
10139
10145
|
sellVolumeUsd: Scalars['String']['output'];
|
|
10140
10146
|
/** The number of sells. */
|
|
10141
10147
|
sells: Scalars['Int']['output'];
|
|
10142
|
-
/** The shares held. */
|
|
10148
|
+
/** The shares held. This number may not be the same as the actual shares held if the trader has not actually redeemed the shares, but we've already calculated the pnl. */
|
|
10143
10149
|
sharesHeld: Scalars['String']['output'];
|
|
10144
10150
|
};
|
|
10145
10151
|
/** A ranking to apply when sorting prediction traders. */
|
|
@@ -25976,6 +25982,7 @@ export type FilterPredictionTraderMarketsQuery = {
|
|
|
25976
25982
|
};
|
|
25977
25983
|
outcome0: {
|
|
25978
25984
|
__typename?: 'PredictionTraderOutcomeFilterResult';
|
|
25985
|
+
actualSharesHeld: string;
|
|
25979
25986
|
avgEntryPriceCT: string;
|
|
25980
25987
|
avgEntryPriceUsd: string;
|
|
25981
25988
|
buyVolumeCT: string;
|
|
@@ -26005,6 +26012,7 @@ export type FilterPredictionTraderMarketsQuery = {
|
|
|
26005
26012
|
};
|
|
26006
26013
|
outcome1: {
|
|
26007
26014
|
__typename?: 'PredictionTraderOutcomeFilterResult';
|
|
26015
|
+
actualSharesHeld: string;
|
|
26008
26016
|
avgEntryPriceCT: string;
|
|
26009
26017
|
avgEntryPriceUsd: string;
|
|
26010
26018
|
buyVolumeCT: string;
|
|
@@ -45916,6 +45924,7 @@ export type PredictionTraderMarketsStatsQuery = {
|
|
|
45916
45924
|
updatedAt: number;
|
|
45917
45925
|
outcome0Stats: {
|
|
45918
45926
|
__typename?: 'PredictionTraderOutcomeStats';
|
|
45927
|
+
actualSharesHeld: string;
|
|
45919
45928
|
avgEntryPriceCT: string;
|
|
45920
45929
|
avgEntryPriceUsd: string;
|
|
45921
45930
|
buyVolumeCT: string;
|
|
@@ -45938,6 +45947,7 @@ export type PredictionTraderMarketsStatsQuery = {
|
|
|
45938
45947
|
};
|
|
45939
45948
|
outcome1Stats: {
|
|
45940
45949
|
__typename?: 'PredictionTraderOutcomeStats';
|
|
45950
|
+
actualSharesHeld: string;
|
|
45941
45951
|
avgEntryPriceCT: string;
|
|
45942
45952
|
avgEntryPriceUsd: string;
|
|
45943
45953
|
buyVolumeCT: string;
|
|
@@ -54791,6 +54801,7 @@ export type OnFilterTokensUpdatedSubscription = {
|
|
|
54791
54801
|
__typename?: 'Subscription';
|
|
54792
54802
|
onFilterTokensUpdated?: {
|
|
54793
54803
|
__typename?: 'FilterTokenUpdates';
|
|
54804
|
+
removedTokenIds?: Array<string | null> | null;
|
|
54794
54805
|
updates?: Array<{
|
|
54795
54806
|
__typename?: 'TokenFilterResult';
|
|
54796
54807
|
athCircMc?: string | null;
|