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.3.tar.gz (4.7 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.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoros-0.1.3.tar.gz
  • Upload date:
  • Size: 4.7 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.3.tar.gz
Algorithm Hash digest
SHA256 51526262558c6e27bb1b3181665b15158d8cea3c6037538a4304b34b388563eb
MD5 7d96df0cc83cf692a9ed0268f9b74013
BLAKE2b-256 592ce63a643298d734d030e65440beda534d38763399d1399852564aac089a92

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytoros-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: pytoros-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aecfb03f1986fcb6a8a850877cfe6533e6ade8610a05ccaab41f6d3ddffc9941
MD5 aff82ec2098b742d2eb7097be08a528d
BLAKE2b-256 1e1983d2d84572e25f72d0eac8f840bc46282d49cf761911438b8b39358283ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytoros-0.1.3-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