Download leveraged token data from Toros Finance.
pip install pytoros
import pytoros as toros
token = Token("ARB:BTCBULL3X")
history = token.history()
print(history)
- Parameters:
ticker
(str): The token's identifier (e.g.,ARB:BTCBULL3X
).
- Description: Initializes the Token object for fetching data.
- 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.