Skip to main content

PyToros

Download leveraged token data from Toros Finance.

PyPI Version codecov Monthly Downloads License

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.

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.4.tar.gz (5.1 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.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoros-0.1.4.tar.gz
  • Upload date:
  • Size: 5.1 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.4.tar.gz
Algorithm Hash digest
SHA256 8ff622106b6aa51e628490142b2030fc27388b1134c4da7a9b0507247c5fd2c8
MD5 6e8dc783bef31acca28f611cd6ca76a3
BLAKE2b-256 ab6e3d5862b6fc75e84ee0cc485b34d2b5c008b7713973b76e739b2e48c0fefd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytoros-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0616b1ad27586c7bb2a91c58284f94a7c4d4324cd78a071883c9126f47ce3af9
MD5 6de2395201e36ca771fed6201a1d7c70
BLAKE2b-256 f4becc033230a7afa1427f92b4ed374e85fd4f51ef6fb249518ecd7bd880714d

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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