Skip to main content

Download leveraged token data from Toros Finance.

Project description

PyToros

Download leveraged token data from Toros Finance.

PyPI Version License Downloads

Installation

pip install pytoros

Usage

import pytoros as toros

token = Token("ARB:BTCBULL3X")
history = token.history()
print(history)

API Documentation

Token Class

Token(ticker: str)

  • Parameters:
    • ticker (str): The token's identifier (e.g., ARB:BTCBULL3X).
  • Description: Initializes the Token object for fetching data.

history(period: str = "1y", interval: str = "1d")

  • Parameters:
    • period (str): Time range for historical data. Options: 1d, 1w, 1m, 1y (default: 1y).
    • interval (str): Time interval between data points. Options: 1h, 4h, 1d, 1w (default: 1d).
  • Returns: A pandas.DataFrame containing historical price data with the following columns:
    • Date: Timestamp of the data point.
    • Open: Opening price.
    • Close: Closing price.
    • High: Highest price during the interval.
    • Low: Lowest price during the interval.

Project details


Download files

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

Source Distribution

pytoros-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pytoros-0.1.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pytoros-0.1.2.tar.gz.

File metadata

  • Download URL: pytoros-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytoros-0.1.2.tar.gz
Algorithm Hash digest
SHA256 61466ce6fb26332ad17d5b0424aa4ea404be3b4f3de24d9fc680e0464ef49ecd
MD5 58dbafa1587cbc7dcbff3c95fbd3f31d
BLAKE2b-256 f205e483eaf5ff831457459266559b96c50753926aa75a53594186c73e88072d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytoros-0.1.2.tar.gz:

Publisher: python-publish.yml on dhruvan2006/pytoros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytoros-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pytoros-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytoros-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3348ff3ba0d76308a572c3305d5204a0d86d7fd310ecbfdfbef31b9abaa5c74
MD5 07348b9093f7387032f038f0c0cc6e84
BLAKE2b-256 f600d0a4f098f8a447d4780c833651699ce52b47b4fc8d574deb62fd00f6682f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytoros-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on dhruvan2006/pytoros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page