copytop 0.1.0__tar.gz
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.
- copytop-0.1.0/.gitignore +6 -0
- copytop-0.1.0/LICENSE +21 -0
- copytop-0.1.0/PKG-INFO +152 -0
- copytop-0.1.0/README.md +120 -0
- copytop-0.1.0/pyproject.toml +53 -0
- copytop-0.1.0/src/copytop/__init__.py +36 -0
- copytop-0.1.0/src/copytop/__main__.py +3 -0
- copytop-0.1.0/src/copytop/cli.py +343 -0
- copytop-0.1.0/src/copytop/client.py +420 -0
- copytop-0.1.0/src/copytop/py.typed +0 -0
- copytop-0.1.0/tests/test_client.py +312 -0
- copytop-0.1.0/tests/test_live.py +58 -0
copytop-0.1.0/.gitignore
ADDED
copytop-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 copy.top
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
copytop-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: copytop
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python client for copy.top (https://copy.top): what top fomo, pumpfun and Hyperliquid traders buy and sell. Read-only, no key needed.
|
|
5
|
+
Project-URL: Homepage, https://copy.top
|
|
6
|
+
Project-URL: Documentation, https://copy.top/agents
|
|
7
|
+
Project-URL: API, https://copy.top/v1/openapi.json
|
|
8
|
+
Project-URL: MCP server, https://copy.top/mcp
|
|
9
|
+
Project-URL: Developers, https://copy.top/developers
|
|
10
|
+
Author-email: "copy.top" <ana@copy.top>
|
|
11
|
+
Maintainer-email: "copy.top" <ana@copy.top>
|
|
12
|
+
License-Expression: MIT
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: api client,copy trading,copy.top,copytop,crypto,fomo,hyperliquid,leaderboard,mcp,memecoins,pump.fun,pumpfun,smart money,solana,top traders,trading signals,whale tracker
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
28
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
|
+
Classifier: Typing :: Typed
|
|
30
|
+
Requires-Python: >=3.9
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# copytop: Python client for copy.top
|
|
34
|
+
|
|
35
|
+
**[copy.top](https://copy.top)** tracks what top traders buy and sell on fomo, pumpfun and Hyperliquid, and lets people copy them. This package is the official Python client for the copy.top API: the trader leaderboard, a trader's profile, the coins top traders are buying now, money flow, live trades, alerts and Hyperliquid markets, in a few lines of Python.
|
|
36
|
+
|
|
37
|
+
- Read-only: nothing here places an order.
|
|
38
|
+
- No key needed. Pure Python, no dependency, Python 3.9 or later.
|
|
39
|
+
- Every call returns the JSON answer of [https://copy.top/v1](https://copy.top/v1/openapi.json) as a dict.
|
|
40
|
+
|
|
41
|
+
Site: [https://copy.top](https://copy.top) | Docs for developers and AI agents: [https://copy.top/agents](https://copy.top/agents) | OpenAPI: [https://copy.top/v1/openapi.json](https://copy.top/v1/openapi.json)
|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
pip install copytop
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Examples
|
|
50
|
+
|
|
51
|
+
**1. Coins top traders are buying right now**
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
from copytop import Client, coin_url
|
|
55
|
+
|
|
56
|
+
ct = Client()
|
|
57
|
+
for c in ct.hot_coins(window="1h", limit=5)["coins"]:
|
|
58
|
+
print(c["symbol"], c["topTraders"], "top traders,", c["boughtUsd"], "usd bought", coin_url(c["chain"], c["token"]))
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**2. The 7 day leaderboard of pumpfun traders, clean fair play only**
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
for t in ct.traders(window="7d", platform="pumpfun", fair_play="clean", limit=10)["traders"]:
|
|
65
|
+
print(t["handle"], t["pnl"], t["roi"], t["url"])
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**3. Look up a trader or a coin by name, $ticker or address**
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
found = ct.search("$BONK")
|
|
72
|
+
profile = ct.trader(found["traders"][0]["handle"])
|
|
73
|
+
print(profile["trader"]["pnl"], profile["open_positions"][:3])
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**4. An alert bot in five lines** (several top traders on one coin, or a big trade)
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
for event in ct.watch_alerts(kinds=["confluence", "big_trade"], min_top_traders=3, interval=60):
|
|
80
|
+
print(event["kind"], event.get("symbol"), event["url"])
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**5. Hyperliquid: top perps traders and markets**
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
whales = ct.hl_traders(window="30d", sort="pnl", limit=5)["traders"]
|
|
87
|
+
stocks = ct.hl_markets(category="stocks", limit=10)["markets"]
|
|
88
|
+
btc = ct.hl_market("BTC") # technicals, funding, open interest, what top traders hold
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Command line
|
|
92
|
+
|
|
93
|
+
The package installs a `copytop` command (also `python -m copytop`):
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
copytop hot --window 1h
|
|
97
|
+
copytop traders --window 7d --platform pumpfun --clean
|
|
98
|
+
copytop trader <handle>
|
|
99
|
+
copytop coin solana <address>
|
|
100
|
+
copytop alerts --watch --kinds confluence
|
|
101
|
+
copytop hl-markets --category stocks
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Add `--json` to any command for raw JSON.
|
|
105
|
+
|
|
106
|
+
## Methods
|
|
107
|
+
|
|
108
|
+
| method | route | what it returns |
|
|
109
|
+
|---|---|---|
|
|
110
|
+
| `traders(window, sort, chain, platform, fair_play, limit)` | `GET /traders` | trader leaderboard (fomo and pumpfun), like [copy.top/traders](https://copy.top/traders) |
|
|
111
|
+
| `trader(handle)` | `GET /traders/{handle}` | one trader: pnl 30d, roi, win rate, fair play, positions, latest trades |
|
|
112
|
+
| `search(query)` | `GET /search` | traders and coins by name, @handle, $ticker or address |
|
|
113
|
+
| `hot_coins(window, max_mcap_usd, limit)` | `GET /coins/hot` | coins tracked traders are buying now |
|
|
114
|
+
| `hot_index(window, chain, limit)` | `GET /coins/index` | coins ranked 0 to 100 by attention |
|
|
115
|
+
| `money_flow(side, window, limit)` | `GET /coins/flow` | coins ranked by dollars bought or sold |
|
|
116
|
+
| `dex_paid(limit)` | `GET /coins/dex-paid` | coins whose team paid for a dexscreener profile in the last 24 h |
|
|
117
|
+
| `coin(chain, address)` | `GET /coins/{chain}/{address}` | one coin: price, market cap, which tracked traders hold or sold it |
|
|
118
|
+
| `trades(since, side, min_usd, limit)` | `GET /trades` | the live tape of buys and sells, with a cursor |
|
|
119
|
+
| `alerts(since, min_top_traders, min_trade_usd, max_mcap_usd, kinds, limit)` | `GET /alerts` | confluence, big trade and thesis events since a cursor |
|
|
120
|
+
| `watch_alerts(interval, **filters)` | `GET /alerts` in a loop | a generator of new events, cursor handled for you |
|
|
121
|
+
| `theses(sort, hours, limit)` | `GET /theses` | theses posted by tracked traders |
|
|
122
|
+
| `hl_traders(window, sort, limit)` | `GET /hyperliquid/traders` | Hyperliquid traders ranked by pnl or roi |
|
|
123
|
+
| `hl_trader(address)` | `GET /hyperliquid/traders/{address}` | one Hyperliquid trader: metrics, positions, fills |
|
|
124
|
+
| `hl_markets(category, limit)` | `GET /hyperliquid/markets` | live Hyperliquid markets (crypto, stocks, indices, fx) |
|
|
125
|
+
| `hl_market(coin)` | `GET /hyperliquid/markets/{coin}` | copy.top's read of one Hyperliquid market |
|
|
126
|
+
| `hl_calls(coin)` | `GET /hyperliquid/markets/{coin}/calls` | analyst calls on one Hyperliquid market and their track record |
|
|
127
|
+
|
|
128
|
+
Page links: `trader_url(handle)`, `coin_url(chain, address)`, `hl_trader_url(address)` and `hl_market_url(coin)` give the matching page on copy.top.
|
|
129
|
+
|
|
130
|
+
Chains: `solana`, `base`, `bnb`, `eth`, `robinhood`, `arc`. A handle starting with `pf_` is a pumpfun account; the others are fomo traders.
|
|
131
|
+
|
|
132
|
+
## Limits, API key and errors
|
|
133
|
+
|
|
134
|
+
The API is open without a key, at about 20 calls a minute per IP (about 6 a minute for search, trader and coin). A free key from [https://copy.top/account#api](https://copy.top/account#api) raises the limits:
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
ct = Client(api_key="...") # or set COPYTOP_API_KEY
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Answers 429 and 5xx are retried with backoff (`max_retries=3`, honours `Retry-After`). Errors raise `copytop.CopyTopError`, with `NotFoundError` (404), `RateLimitError` (429) and `AuthError` (401) as subclasses.
|
|
141
|
+
|
|
142
|
+
## Also from copy.top
|
|
143
|
+
|
|
144
|
+
- MCP server for AI agents (Claude, ChatGPT, Cursor): `https://copy.top/mcp`, see [https://copy.top/agents](https://copy.top/agents)
|
|
145
|
+
- npm CLI: `npx copytop hot`
|
|
146
|
+
- Web app: [https://copy.top](https://copy.top)
|
|
147
|
+
|
|
148
|
+
## About
|
|
149
|
+
|
|
150
|
+
copy.top is independent and is not affiliated with fomo, pump.fun or Hyperliquid. Figures are data, not advice. Trading crypto is risky and past performance does not predict results.
|
|
151
|
+
|
|
152
|
+
Contact: ana@copy.top. License: MIT.
|
copytop-0.1.0/README.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# copytop: Python client for copy.top
|
|
2
|
+
|
|
3
|
+
**[copy.top](https://copy.top)** tracks what top traders buy and sell on fomo, pumpfun and Hyperliquid, and lets people copy them. This package is the official Python client for the copy.top API: the trader leaderboard, a trader's profile, the coins top traders are buying now, money flow, live trades, alerts and Hyperliquid markets, in a few lines of Python.
|
|
4
|
+
|
|
5
|
+
- Read-only: nothing here places an order.
|
|
6
|
+
- No key needed. Pure Python, no dependency, Python 3.9 or later.
|
|
7
|
+
- Every call returns the JSON answer of [https://copy.top/v1](https://copy.top/v1/openapi.json) as a dict.
|
|
8
|
+
|
|
9
|
+
Site: [https://copy.top](https://copy.top) | Docs for developers and AI agents: [https://copy.top/agents](https://copy.top/agents) | OpenAPI: [https://copy.top/v1/openapi.json](https://copy.top/v1/openapi.json)
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
pip install copytop
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
**1. Coins top traders are buying right now**
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
from copytop import Client, coin_url
|
|
23
|
+
|
|
24
|
+
ct = Client()
|
|
25
|
+
for c in ct.hot_coins(window="1h", limit=5)["coins"]:
|
|
26
|
+
print(c["symbol"], c["topTraders"], "top traders,", c["boughtUsd"], "usd bought", coin_url(c["chain"], c["token"]))
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**2. The 7 day leaderboard of pumpfun traders, clean fair play only**
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
for t in ct.traders(window="7d", platform="pumpfun", fair_play="clean", limit=10)["traders"]:
|
|
33
|
+
print(t["handle"], t["pnl"], t["roi"], t["url"])
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**3. Look up a trader or a coin by name, $ticker or address**
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
found = ct.search("$BONK")
|
|
40
|
+
profile = ct.trader(found["traders"][0]["handle"])
|
|
41
|
+
print(profile["trader"]["pnl"], profile["open_positions"][:3])
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**4. An alert bot in five lines** (several top traders on one coin, or a big trade)
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
for event in ct.watch_alerts(kinds=["confluence", "big_trade"], min_top_traders=3, interval=60):
|
|
48
|
+
print(event["kind"], event.get("symbol"), event["url"])
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**5. Hyperliquid: top perps traders and markets**
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
whales = ct.hl_traders(window="30d", sort="pnl", limit=5)["traders"]
|
|
55
|
+
stocks = ct.hl_markets(category="stocks", limit=10)["markets"]
|
|
56
|
+
btc = ct.hl_market("BTC") # technicals, funding, open interest, what top traders hold
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Command line
|
|
60
|
+
|
|
61
|
+
The package installs a `copytop` command (also `python -m copytop`):
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
copytop hot --window 1h
|
|
65
|
+
copytop traders --window 7d --platform pumpfun --clean
|
|
66
|
+
copytop trader <handle>
|
|
67
|
+
copytop coin solana <address>
|
|
68
|
+
copytop alerts --watch --kinds confluence
|
|
69
|
+
copytop hl-markets --category stocks
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Add `--json` to any command for raw JSON.
|
|
73
|
+
|
|
74
|
+
## Methods
|
|
75
|
+
|
|
76
|
+
| method | route | what it returns |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| `traders(window, sort, chain, platform, fair_play, limit)` | `GET /traders` | trader leaderboard (fomo and pumpfun), like [copy.top/traders](https://copy.top/traders) |
|
|
79
|
+
| `trader(handle)` | `GET /traders/{handle}` | one trader: pnl 30d, roi, win rate, fair play, positions, latest trades |
|
|
80
|
+
| `search(query)` | `GET /search` | traders and coins by name, @handle, $ticker or address |
|
|
81
|
+
| `hot_coins(window, max_mcap_usd, limit)` | `GET /coins/hot` | coins tracked traders are buying now |
|
|
82
|
+
| `hot_index(window, chain, limit)` | `GET /coins/index` | coins ranked 0 to 100 by attention |
|
|
83
|
+
| `money_flow(side, window, limit)` | `GET /coins/flow` | coins ranked by dollars bought or sold |
|
|
84
|
+
| `dex_paid(limit)` | `GET /coins/dex-paid` | coins whose team paid for a dexscreener profile in the last 24 h |
|
|
85
|
+
| `coin(chain, address)` | `GET /coins/{chain}/{address}` | one coin: price, market cap, which tracked traders hold or sold it |
|
|
86
|
+
| `trades(since, side, min_usd, limit)` | `GET /trades` | the live tape of buys and sells, with a cursor |
|
|
87
|
+
| `alerts(since, min_top_traders, min_trade_usd, max_mcap_usd, kinds, limit)` | `GET /alerts` | confluence, big trade and thesis events since a cursor |
|
|
88
|
+
| `watch_alerts(interval, **filters)` | `GET /alerts` in a loop | a generator of new events, cursor handled for you |
|
|
89
|
+
| `theses(sort, hours, limit)` | `GET /theses` | theses posted by tracked traders |
|
|
90
|
+
| `hl_traders(window, sort, limit)` | `GET /hyperliquid/traders` | Hyperliquid traders ranked by pnl or roi |
|
|
91
|
+
| `hl_trader(address)` | `GET /hyperliquid/traders/{address}` | one Hyperliquid trader: metrics, positions, fills |
|
|
92
|
+
| `hl_markets(category, limit)` | `GET /hyperliquid/markets` | live Hyperliquid markets (crypto, stocks, indices, fx) |
|
|
93
|
+
| `hl_market(coin)` | `GET /hyperliquid/markets/{coin}` | copy.top's read of one Hyperliquid market |
|
|
94
|
+
| `hl_calls(coin)` | `GET /hyperliquid/markets/{coin}/calls` | analyst calls on one Hyperliquid market and their track record |
|
|
95
|
+
|
|
96
|
+
Page links: `trader_url(handle)`, `coin_url(chain, address)`, `hl_trader_url(address)` and `hl_market_url(coin)` give the matching page on copy.top.
|
|
97
|
+
|
|
98
|
+
Chains: `solana`, `base`, `bnb`, `eth`, `robinhood`, `arc`. A handle starting with `pf_` is a pumpfun account; the others are fomo traders.
|
|
99
|
+
|
|
100
|
+
## Limits, API key and errors
|
|
101
|
+
|
|
102
|
+
The API is open without a key, at about 20 calls a minute per IP (about 6 a minute for search, trader and coin). A free key from [https://copy.top/account#api](https://copy.top/account#api) raises the limits:
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
ct = Client(api_key="...") # or set COPYTOP_API_KEY
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Answers 429 and 5xx are retried with backoff (`max_retries=3`, honours `Retry-After`). Errors raise `copytop.CopyTopError`, with `NotFoundError` (404), `RateLimitError` (429) and `AuthError` (401) as subclasses.
|
|
109
|
+
|
|
110
|
+
## Also from copy.top
|
|
111
|
+
|
|
112
|
+
- MCP server for AI agents (Claude, ChatGPT, Cursor): `https://copy.top/mcp`, see [https://copy.top/agents](https://copy.top/agents)
|
|
113
|
+
- npm CLI: `npx copytop hot`
|
|
114
|
+
- Web app: [https://copy.top](https://copy.top)
|
|
115
|
+
|
|
116
|
+
## About
|
|
117
|
+
|
|
118
|
+
copy.top is independent and is not affiliated with fomo, pump.fun or Hyperliquid. Figures are data, not advice. Trading crypto is risky and past performance does not predict results.
|
|
119
|
+
|
|
120
|
+
Contact: ana@copy.top. License: MIT.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.24"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "copytop"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python client for copy.top (https://copy.top): what top fomo, pumpfun and Hyperliquid traders buy and sell. Read-only, no key needed."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "copy.top", email = "ana@copy.top" }]
|
|
14
|
+
maintainers = [{ name = "copy.top", email = "ana@copy.top" }]
|
|
15
|
+
keywords = [
|
|
16
|
+
"copy.top", "copytop", "copy trading", "crypto", "solana", "memecoins", "fomo", "pumpfun",
|
|
17
|
+
"pump.fun", "hyperliquid", "top traders", "smart money", "whale tracker", "trading signals",
|
|
18
|
+
"leaderboard", "api client", "mcp",
|
|
19
|
+
]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 4 - Beta",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"Intended Audience :: Financial and Insurance Industry",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
27
|
+
"Programming Language :: Python :: 3.9",
|
|
28
|
+
"Programming Language :: Python :: 3.10",
|
|
29
|
+
"Programming Language :: Python :: 3.11",
|
|
30
|
+
"Programming Language :: Python :: 3.12",
|
|
31
|
+
"Programming Language :: Python :: 3.13",
|
|
32
|
+
"Programming Language :: Python :: 3.14",
|
|
33
|
+
"Topic :: Office/Business :: Financial :: Investment",
|
|
34
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
35
|
+
"Typing :: Typed",
|
|
36
|
+
]
|
|
37
|
+
dependencies = []
|
|
38
|
+
|
|
39
|
+
[project.urls]
|
|
40
|
+
Homepage = "https://copy.top"
|
|
41
|
+
Documentation = "https://copy.top/agents"
|
|
42
|
+
API = "https://copy.top/v1/openapi.json"
|
|
43
|
+
"MCP server" = "https://copy.top/mcp"
|
|
44
|
+
Developers = "https://copy.top/developers"
|
|
45
|
+
|
|
46
|
+
[project.scripts]
|
|
47
|
+
copytop = "copytop.cli:main"
|
|
48
|
+
|
|
49
|
+
[tool.hatch.build.targets.wheel]
|
|
50
|
+
packages = ["src/copytop"]
|
|
51
|
+
|
|
52
|
+
[tool.hatch.build.targets.sdist]
|
|
53
|
+
include = ["src/copytop", "tests", "README.md", "LICENSE", "pyproject.toml"]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""copytop: Python client for the copy.top API.
|
|
2
|
+
|
|
3
|
+
copy.top (https://copy.top) tracks what top traders buy and sell on fomo, pumpfun
|
|
4
|
+
and Hyperliquid, and lets people copy them. This package reads the public REST API
|
|
5
|
+
at https://copy.top/v1. Read-only: nothing here places an order.
|
|
6
|
+
Figures are data, not advice.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
__version__ = "0.1.0"
|
|
10
|
+
|
|
11
|
+
from .client import ( # noqa: E402
|
|
12
|
+
AuthError,
|
|
13
|
+
Client,
|
|
14
|
+
CopyTopError,
|
|
15
|
+
NotFoundError,
|
|
16
|
+
RateLimitError,
|
|
17
|
+
RedirectRefusedError,
|
|
18
|
+
coin_url,
|
|
19
|
+
hl_market_url,
|
|
20
|
+
hl_trader_url,
|
|
21
|
+
trader_url,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"Client",
|
|
26
|
+
"CopyTopError",
|
|
27
|
+
"NotFoundError",
|
|
28
|
+
"RateLimitError",
|
|
29
|
+
"AuthError",
|
|
30
|
+
"RedirectRefusedError",
|
|
31
|
+
"trader_url",
|
|
32
|
+
"coin_url",
|
|
33
|
+
"hl_trader_url",
|
|
34
|
+
"hl_market_url",
|
|
35
|
+
"__version__",
|
|
36
|
+
]
|