mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Apply pylint's linting rules to examples/rest/public/*.py.
This commit is contained in:
@@ -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}")
|
||||
print(f"<{profile.nickname}>'s profile picture: https://s3-eu-west-1.amazonaws.com/bfx-pub/{URL}")
|
||||
|
||||
Reference in New Issue
Block a user