Skip to main content

An unoffical pythonic wrapper for 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.1.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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoros-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3c22ee573d8510a547ad3a1b706b388a0eff3b42a2f3bd1a611bd0b76278f72c
MD5 dee0833fd92aa151438865ebe63b2b13
BLAKE2b-256 857eee10a78b2c69c12c2180caa7f05044fdd132c63fb205c8625aaed70f57a9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytoros-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed9ffbf5e8b08398cc5f21036fa850960e6c1bf6a5a6a489789dac335b34893
MD5 adf7d8796f9d44c173e5971f6de2ff95
BLAKE2b-256 0ca3666ccfc0a709128d9b6bd406c55eedb16a1aa5de206f7f7a37d7512a6057

See more details on using hashes here.

Provenance

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