Align code with new Bitfinex API documentation improvements.

This commit is contained in:
Davide Casale
2023-03-14 20:58:56 +01:00
parent 464d942fb0
commit 41fd46dec7
6 changed files with 18 additions and 18 deletions

View File

@@ -12,13 +12,13 @@ bfx = Client(rest_host=PUB_REST_HOST)
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)
messages: List[PulseMessage] = bfx.rest.public.get_pulse_message_history(end=end, limit=25)
for message in messages:
print(f"Message author: {message.profile.nickname} ({message.profile.puid})")
print(f"Title: <{message.title}>")
print(f"Tags: {message.tags}\n")
profile: PulseProfile = bfx.rest.public.get_pulse_profile("News")
profile: PulseProfile = bfx.rest.public.get_pulse_profile_details("News")
URL = profile.picture.replace("size", "small")
print(f"<{profile.nickname}>'s profile picture: https://s3-eu-west-1.amazonaws.com/bfx-pub/{URL}")