diff --git a/examples/rest/public/book.py b/examples/rest/public/book.py index 9014835..f716fc4 100644 --- a/examples/rest/public/book.py +++ b/examples/rest/public/book.py @@ -21,4 +21,4 @@ print("25 price points of fUSD order book (with precision P0):", f_book) f_raw_book: List[FundingCurrencyRawBook] = bfx.rest.public.get_f_raw_book("fUSD") -print("fUSD raw order book:", f_raw_book) \ No newline at end of file +print("fUSD raw order book:", f_raw_book) diff --git a/examples/rest/public/conf.py b/examples/rest/public/conf.py index f4f6a55..431eb26 100644 --- a/examples/rest/public/conf.py +++ b/examples/rest/public/conf.py @@ -15,4 +15,4 @@ print (bfx.rest.public.conf(Config.MAP_CURRENCY_SYM)) print(bfx.rest.public.conf(Config.LIST_PAIR_EXCHANGE)) # Prints all the available funding currencies (pub:list:currency) -print(bfx.rest.public.conf(Config.LIST_CURRENCY)) \ No newline at end of file +print(bfx.rest.public.conf(Config.LIST_CURRENCY)) diff --git a/examples/rest/public/get_candles_hist.py b/examples/rest/public/get_candles_hist.py index 8cb28b3..12588b1 100644 --- a/examples/rest/public/get_candles_hist.py +++ b/examples/rest/public/get_candles_hist.py @@ -8,4 +8,4 @@ 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')}") \ No newline at end of file +print(f"Candles: {bfx.rest.public.get_candles_hist(tf='15m', symbol='fUSD:a30:p2:p30')}") diff --git a/examples/rest/public/pulse_endpoints.py b/examples/rest/public/pulse_endpoints.py index c1a079a..9b5b35b 100644 --- a/examples/rest/public/pulse_endpoints.py +++ b/examples/rest/public/pulse_endpoints.py @@ -9,7 +9,7 @@ from bfxapi.rest.types import List, PulseMessage, PulseProfile bfx = Client(rest_host=PUB_REST_HOST) # POSIX timestamp in milliseconds (check https://currentmillis.com/) -end = datetime.datetime(2020, 5, 2).timestamp() * 1000 +end = datetime.datetime(2020, 5, 2).timestamp() * 1000 # Retrieves 25 pulse messages up to 2020/05/02 messages: List[PulseMessage] = bfx.rest.public.get_pulse_history(end=end, limit=25) @@ -21,4 +21,4 @@ for message in messages: profile: PulseProfile = bfx.rest.public.get_pulse_profile("News") URL = profile.picture.replace("size", "small") -print(f"<{profile.nickname}>'s profile picture: https://s3-eu-west-1.amazonaws.com/bfx-pub/{URL}") \ No newline at end of file +print(f"<{profile.nickname}>'s profile picture: https://s3-eu-west-1.amazonaws.com/bfx-pub/{URL}") diff --git a/examples/rest/public/rest_calculation_endpoints.py b/examples/rest/public/rest_calculation_endpoints.py index 2317aea..e66ca70 100644 --- a/examples/rest/public/rest_calculation_endpoints.py +++ b/examples/rest/public/rest_calculation_endpoints.py @@ -25,4 +25,4 @@ print("Average execution rate for fUSD:", funding_market_average_price.rate_avg) fx_rate: FxRate = bfx.rest.public.get_fx_rate(ccy1="USD", ccy2="EUR") -print("Exchange rate between USD and EUR:", fx_rate.current_rate) \ No newline at end of file +print("Exchange rate between USD and EUR:", fx_rate.current_rate) diff --git a/examples/rest/public/trades.py b/examples/rest/public/trades.py index 4428368..5e9242a 100644 --- a/examples/rest/public/trades.py +++ b/examples/rest/public/trades.py @@ -14,4 +14,4 @@ print("Latest 15 trades for tBTCUSD (in ascending order):", t_trades) f_trades: List[FundingCurrencyTrade] = bfx.rest.public.get_f_trades("fUSD", \ limit=15, sort=Sort.DESCENDING) -print("Latest 15 trades for fUSD (in descending order):", f_trades) \ No newline at end of file +print("Latest 15 trades for fUSD (in descending order):", f_trades)