@vesper85/strategy-sdk 0.1.2 → 0.1.4

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.
@@ -0,0 +1,135 @@
1
+ export interface GammaMarket {
2
+ id: string;
3
+ conditionId: string;
4
+ slug: string;
5
+ question: string;
6
+ description: string;
7
+ category: string;
8
+ image: string;
9
+ icon: string;
10
+ twitterCardImage: string;
11
+ active: boolean;
12
+ closed: boolean;
13
+ archived: boolean;
14
+ ready: boolean;
15
+ restricted: boolean;
16
+ endDate: string;
17
+ endDateIso: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ closedTime?: string;
21
+ hasReviewedDates: boolean;
22
+ readyForCron: boolean;
23
+ marketType: string;
24
+ liquidity: string;
25
+ volume: string;
26
+ volumeNum: number;
27
+ liquidityNum: number;
28
+ volume24hr: number;
29
+ volume1wk: number;
30
+ volume1mo: number;
31
+ volume1yr: number;
32
+ bestBid: number;
33
+ bestAsk: number;
34
+ lastTradePrice: number;
35
+ spread: number;
36
+ oneDayPriceChange: number;
37
+ oneHourPriceChange: number;
38
+ oneWeekPriceChange: number;
39
+ oneMonthPriceChange: number;
40
+ oneYearPriceChange: number;
41
+ outcomes: string;
42
+ outcomePrices: string;
43
+ clobTokenIds: string;
44
+ umaResolutionStatuses: string;
45
+ marketMakerAddress: string;
46
+ updatedBy: number;
47
+ mailchimpTag?: string;
48
+ fpmmLive: boolean;
49
+ creator: string;
50
+ funded: boolean;
51
+ cyom: boolean;
52
+ competitive: number;
53
+ pagerDutyNotificationEnabled: boolean;
54
+ approved: boolean;
55
+ rewardsMinSize: number;
56
+ rewardsMaxSpread: number;
57
+ clearBookOnStart: boolean;
58
+ manualActivation: boolean;
59
+ negRiskOther: boolean;
60
+ pendingDeployment: boolean;
61
+ deploying: boolean;
62
+ rfqEnabled: boolean;
63
+ holdingRewardsEnabled: boolean;
64
+ feesEnabled: boolean;
65
+ requiresTranslation: boolean;
66
+ volume1wkAmm: number;
67
+ volume1moAmm: number;
68
+ volume1yrAmm: number;
69
+ volume1wkClob: number;
70
+ volume1moClob: number;
71
+ volume1yrClob: number;
72
+ events: any[];
73
+ }
74
+ export interface Event {
75
+ id?: string;
76
+ slug?: string;
77
+ title?: string;
78
+ description?: string;
79
+ start_date?: string;
80
+ end_date?: string;
81
+ image?: string;
82
+ icon?: string;
83
+ created_at?: string;
84
+ updated_at?: string;
85
+ archived?: boolean;
86
+ active?: boolean;
87
+ closed?: boolean;
88
+ restricted?: boolean;
89
+ liquidity?: number;
90
+ volume?: string;
91
+ markets?: GammaMarket[];
92
+ tags?: Tag[];
93
+ categories?: Category[];
94
+ series?: Series[];
95
+ comment_count?: number;
96
+ enable_comment?: boolean;
97
+ ticker?: string;
98
+ }
99
+ export interface Series {
100
+ id?: string;
101
+ slug?: string;
102
+ title?: string;
103
+ description?: string;
104
+ image?: string;
105
+ created_at?: string;
106
+ updated_at?: string;
107
+ events?: Event[];
108
+ categories?: Category[];
109
+ }
110
+ export interface Category {
111
+ id?: string;
112
+ label?: string;
113
+ slug?: string;
114
+ }
115
+ export interface Tag {
116
+ id?: string;
117
+ label?: string;
118
+ slug?: string;
119
+ description?: string;
120
+ event_count?: number;
121
+ market_count?: number;
122
+ parent_id?: string;
123
+ children?: Tag[];
124
+ }
125
+ export interface ClobReward {
126
+ id?: string;
127
+ market_id?: string;
128
+ event_id?: string;
129
+ reward_epoch?: number;
130
+ asset_address?: string;
131
+ reward_amount?: string;
132
+ start_date?: string;
133
+ end_date?: string;
134
+ }
135
+ //# sourceMappingURL=gamma.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { OHLCV, TAParams } from "@osiris-ai/technical-indicators";
2
- import type { GammaMarket, Event as GammaEvent, Tag, Team, Sport, Series, Comment as GammaComment, SearchResults, PaginatedResponse, MarketFilters, EventFilters, EventPaginationFilters, PaginationParams, SearchParams } from "polymarket-gamma";
2
+ import type { Event as GammaEvent, Tag, Team, Sport, Series, Comment as GammaComment, SearchResults, PaginatedResponse, MarketFilters, EventFilters, EventPaginationFilters, PaginationParams, SearchParams, GammaMarket } from "polymarket-gamma";
3
3
  import type { ClearinghouseState, SpotMeta, SpotClearinghouseState, SpotMetaAndAssetCtxs, Meta, MetaAndAssetCtxs, UserFunding, UserNonFundingLedgerUpdates, FundingHistory, PredictedFundings, PerpsAtOpenInterestCap, PerpDexLimits, AllMids, UserOpenOrders, FrontendOpenOrders, UserFills, UserRateLimit, OrderStatus, L2Book, CandleSnapshot, HistoricalOrder, TwapSliceFill, SubAccount, VaultDetails, VaultEquity, UserRole, Delegation, DelegatorSummary, DelegatorHistoryEntry, DelegatorReward, ValidatorSummary, VaultSummary, UserFees, PortfolioPeriods, PreTransferCheck, Referral, ExtraAgent, LegalCheck, TwapHistory, MultiSigSigners, BuilderFeeApproval, UserOrderHistory } from "hyperliquid";
4
4
  export interface OsirisState {
5
5
  get(key: string): Promise<any>;
@@ -0,0 +1,3 @@
1
+ import { GammaMarket } from "polymarket-gamma";
2
+ export declare function mapToGammaMarket(raw: any): GammaMarket;
3
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesper85/strategy-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "SDK for writing and running trading strategies with Polymarket and Hyperliquid integrations",
6
6
  "keywords": [
@@ -44,8 +44,9 @@
44
44
  "release": "npm run build && changeset publish"
45
45
  },
46
46
  "dependencies": {
47
- "@vesper85/technical-indicators": "^0.1.0",
48
47
  "@polymarket/clob-client": "^4.6.0",
48
+ "@polymarket/real-time-data-client": "^1.0.0",
49
+ "@vesper85/technical-indicators": "^0.1.0",
49
50
  "axios": "^1.7.9",
50
51
  "ethers": "^6.13.4",
51
52
  "hyperliquid": "^1.7.7",
@@ -74,4 +75,4 @@
74
75
  "url": "https://github.com/FetcchX/legion-sdk/issues"
75
76
  },
76
77
  "homepage": "https://github.com/FetcchX/legion-sdk#readme"
77
- }
78
+ }