Skip to main content

token_data

Developer Guide

If you are new to using nbdev here are some useful pointers to get you started.

Install token_data in Development mode

# make sure token_data package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to token_data
$ nbdev_prepare

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/silvaac/token_data.git

or from pypi

$ pip install token_data

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

How to use

Simple example to pull ETH perpetual price history from Hyperliquid. See documents for more complex use cases.

from token_data.hyperliquid import *
from hyperliquid.utils import constants
address, info, exchange = setup(base_url=constants.MAINNET_API_URL, skip_ws=True)
manager = HyperliquidPerpManager(ticker='ETH',update=True, save=False, verbose=True,info=info)
manager.get_data()
Processing 1 perpetual tokens...
Warning: Processing 1 perpetual tokens exceeds the maximum number of requests per minute. Adjusting waiting time to 2 seconds.
Loaded 6250 rows for ETH from ../data/hyperliquid/perp/ETH_1h.parquet
Updating ETH from 2025-12-04T00:00:00Z
Retrieved 25 new rows for ETH
Added 0 new rows for ETH
<style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; } .dataframe tbody tr th { vertical-align: top; } .dataframe thead th { text-align: right; } </style>
datetime open high low close volume coin
0 2025-03-19 15:00:00 2030.7 2056.7 2026.0 2048.7 30206.2723 ETH
1 2025-03-19 16:00:00 2048.7 2049.2 2035.3 2047.4 22198.4803 ETH
2 2025-03-19 17:00:00 2047.4 2048.9 2014.3 2026.1 35909.8007 ETH
3 2025-03-19 18:00:00 2026.1 2059.9 1998.0 2045.0 84148.3569 ETH
4 2025-03-19 19:00:00 2045.1 2052.1 2020.1 2029.7 38921.5619 ETH
... ... ... ... ... ... ... ...
6245 2025-12-04 20:00:00 3117.9 3143.8 3104.4 3140.5 15553.2974 ETH
6246 2025-12-04 21:00:00 3140.2 3150.0 3117.2 3121.8 13448.5987 ETH
6247 2025-12-04 22:00:00 3122.1 3147.2 3121.5 3142.4 11888.6633 ETH
6248 2025-12-04 23:00:00 3142.6 3142.6 3127.9 3131.7 4731.0506 ETH
6249 2025-12-05 00:00:00 3131.8 3156.0 3131.4 3147.8 10836.3869 ETH

6250 rows × 7 columns

For coinbase data (only spot prices are supported):

from token_data.coinbase import *
# Pull data from coinbase and save it to "./data/coinbase" folder. See function for details.
coinbase_to_file(token_list=['OP-USD'],type="parquet",all_tokens=False)
Processing OP-USD
2025-11-17 09:00:00+00:00
2025-12-05 00:32:14.730630+00:00
OP-USD is not listed.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

token_data-0.0.6.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

token_data-0.0.6-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

Details for the file token_data-0.0.6.tar.gz.

File metadata

  • Download URL: token_data-0.0.6.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for token_data-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b2ca78ddd3bf6561537b31ba954e5b7ad9e9b0676a3472ed59572b48deca323e
MD5 4dcac7e0d3834b7b475e5518a67b1ce0
BLAKE2b-256 9ac8d7916f56329582cfebd27149bdc13cd4c70eb4ff4fbb995404e2f1f6ba11

See more details on using hashes here.

File details

Details for the file token_data-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: token_data-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 48.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for token_data-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 851da5498639a5fdbb58a1c0e13a905b7340cb0c321cefb7cacf5712a40f9735
MD5 b05d119ea7ea53a53c6db612aa521991
BLAKE2b-256 79bab92e3ea97b6f8b68407a98b8e1ddb8dbe3e313a03ba84c6f957c824f440d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page