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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoros-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pytoros-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c22beba282f8f75458e6b5c85ddbeaa99f9f925484f5a55855152b8315e515f0
MD5 b2b20306b9ca07c596ab97f652e1adff
BLAKE2b-256 b631bba8c261dae7f17741a49ec7639bb3216c53ce8fae814128c8be04315e86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytoros-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pytoros-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2f8e9337dbdf6205ba0cfbf1b485669fa1674cf601b2f55d3e9d93fafd3d449
MD5 40c928a4f9a8bb8f4bc61b989aee5a39
BLAKE2b-256 d666f375357cf19d9520c00f1d423d4a5f17e8a2c3271aac25ffc513d179975f

See more details on using hashes here.

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