add seed candles

This commit is contained in:
itsdeka
2023-01-17 12:40:09 +01:00
committed by Davide Casale
parent 061ca22752
commit 7ea8b5ae1c
2 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
# python -c "from examples.rest.get_candles_hist import *"
from bfxapi.client import Client, Constants
bfx = Client(
REST_HOST=Constants.REST_HOST
)
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')}")