cabalspy 0.1.0__py3-none-any.whl

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.
cabalspy/__init__.py ADDED
@@ -0,0 +1,169 @@
1
+ """CabalSpy — realtime multichain data for labeled wallets.
2
+
3
+ KOL, smart money and whale wallet tracking across Solana, BNB Chain, Base,
4
+ Ethereum and Robinhood Chain.
5
+
6
+ from cabalspy import CabalSpy
7
+
8
+ client = CabalSpy() # reads CABALSPY_API_KEY
9
+ board = client.wallets.leaderboard(blockchain="solana", period="7d", limit=25)
10
+
11
+ Async and realtime:
12
+
13
+ from cabalspy import AsyncCabalSpy
14
+
15
+ async with AsyncCabalSpy() as client:
16
+ signals = await client.signals.list(
17
+ blockchain="solana", type="kol", mode="cluster", min_wallets=5
18
+ )
19
+
20
+ Docs: https://docs.cabalspy.xyz
21
+ """
22
+
23
+ from ._client import AsyncCabalSpy, CabalSpy, Envelope
24
+ from ._constants import (
25
+ ANALYTICS_MODES,
26
+ BATCH_MAX_ADDRESSES,
27
+ BATCH_MAX_MINTS,
28
+ CHAINS,
29
+ CURRENCY_BY_CHAIN,
30
+ MARKETCAP_CHAINS_REST,
31
+ MAX_LIMIT,
32
+ PERIODS,
33
+ SIGNAL_MODES,
34
+ TIMERANGE_MAX_SECONDS,
35
+ VOLUME_MAX_SECONDS,
36
+ WALLET_TYPES_BY_CHAIN,
37
+ AnalyticsMode,
38
+ Chain,
39
+ Currency,
40
+ Period,
41
+ SignalMode,
42
+ WalletType,
43
+ parse_api_date,
44
+ wallet_type_is_valid,
45
+ )
46
+ from ._errors import (
47
+ APIConnectionError,
48
+ AuthenticationError,
49
+ BadRequestError,
50
+ CabalSpyError,
51
+ InsufficientCreditsError,
52
+ InvalidResponseError,
53
+ NotFoundError,
54
+ RateLimit,
55
+ RateLimitError,
56
+ ServerError,
57
+ )
58
+ from ._errors import PermissionError_ as PermissionError
59
+ from ._realtime import (
60
+ GATEWAY_EVENTS,
61
+ CabalSpyRealtime,
62
+ is_holder_position_update,
63
+ is_tx_position_update,
64
+ )
65
+ from ._types import (
66
+ ActiveTokensSummary,
67
+ BundleEntry,
68
+ BundlePosition,
69
+ BundleResponse,
70
+ BundleWallet,
71
+ ClusterSignal,
72
+ CountResponse,
73
+ FeedTransaction,
74
+ HealthResponse,
75
+ HoldingsAfter,
76
+ MetaResponse,
77
+ Pagination,
78
+ PeriodStats,
79
+ ResponseMeta,
80
+ SignalsResponse,
81
+ SignalWallet,
82
+ SignalWindow,
83
+ TokenBlock,
84
+ TokenStatsResponse,
85
+ TokenTrader,
86
+ TraderHoldings,
87
+ TraderStats,
88
+ TransactionsListResponse,
89
+ VolumeResponse,
90
+ WalletProfile,
91
+ WalletTrackerResponse,
92
+ WinRateDistribution,
93
+ )
94
+
95
+ __version__ = "0.1.0"
96
+
97
+ __all__ = [
98
+ "__version__",
99
+ # clients
100
+ "CabalSpy",
101
+ "AsyncCabalSpy",
102
+ "CabalSpyRealtime",
103
+ "Envelope",
104
+ # errors
105
+ "CabalSpyError",
106
+ "BadRequestError",
107
+ "AuthenticationError",
108
+ "PermissionError",
109
+ "InsufficientCreditsError",
110
+ "NotFoundError",
111
+ "RateLimitError",
112
+ "ServerError",
113
+ "APIConnectionError",
114
+ "InvalidResponseError",
115
+ "RateLimit",
116
+ # constants and helpers
117
+ "CHAINS",
118
+ "WALLET_TYPES_BY_CHAIN",
119
+ "CURRENCY_BY_CHAIN",
120
+ "MARKETCAP_CHAINS_REST",
121
+ "PERIODS",
122
+ "SIGNAL_MODES",
123
+ "ANALYTICS_MODES",
124
+ "BATCH_MAX_MINTS",
125
+ "BATCH_MAX_ADDRESSES",
126
+ "MAX_LIMIT",
127
+ "TIMERANGE_MAX_SECONDS",
128
+ "VOLUME_MAX_SECONDS",
129
+ "GATEWAY_EVENTS",
130
+ "parse_api_date",
131
+ "wallet_type_is_valid",
132
+ "is_tx_position_update",
133
+ "is_holder_position_update",
134
+ # type aliases
135
+ "Chain",
136
+ "WalletType",
137
+ "Period",
138
+ "Currency",
139
+ "SignalMode",
140
+ "AnalyticsMode",
141
+ # response types
142
+ "ResponseMeta",
143
+ "Pagination",
144
+ "WalletProfile",
145
+ "TokenBlock",
146
+ "HoldingsAfter",
147
+ "PeriodStats",
148
+ "WinRateDistribution",
149
+ "ActiveTokensSummary",
150
+ "WalletTrackerResponse",
151
+ "TokenStatsResponse",
152
+ "TokenTrader",
153
+ "TraderHoldings",
154
+ "TraderStats",
155
+ "ClusterSignal",
156
+ "SignalWallet",
157
+ "SignalWindow",
158
+ "SignalsResponse",
159
+ "FeedTransaction",
160
+ "TransactionsListResponse",
161
+ "CountResponse",
162
+ "VolumeResponse",
163
+ "BundleResponse",
164
+ "BundleEntry",
165
+ "BundleWallet",
166
+ "BundlePosition",
167
+ "HealthResponse",
168
+ "MetaResponse",
169
+ ]