mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 22:34:21 +01:00
15 lines
483 B
Python
15 lines
483 B
Python
# python -c "import examples.rest.public.get_candles_hist"
|
|
|
|
from bfxapi import Client
|
|
|
|
bfx = Client()
|
|
|
|
print(f"Candles: {bfx.rest.public.get_candles_hist(symbol='tBTCUSD')}")
|
|
|
|
# Be sure to specify a period or aggregated period when retrieving funding candles.
|
|
# If you wish to mimic the candles found in the UI, use the following setup
|
|
# to aggregate all funding candles: a30:p2:p30
|
|
print(
|
|
f"Candles: {bfx.rest.public.get_candles_hist(tf='15m', symbol='fUSD:a30:p2:p30')}"
|
|
)
|