mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-24 01:04:22 +01:00
add seed candles
This commit is contained in:
15
examples/rest/get_seed_candles.py
Normal file
15
examples/rest/get_seed_candles.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# python -c "from examples.rest.get_seed_candles import *"
|
||||
|
||||
import time
|
||||
|
||||
from bfxapi.client import Client, Constants
|
||||
|
||||
bfx = Client(
|
||||
REST_HOST=Constants.REST_HOST
|
||||
)
|
||||
|
||||
print(f"Candles: {bfx.rest.public.get_seed_candles(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_seed_candles(symbol='fUSD:a30:p2:p30', tf='15m')}")
|
||||
Reference in New Issue
Block a user