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

@@ -239,10 +239,10 @@ class RestPublicEndpoints(Middleware):
data = self._get(f"funding/stats/{symbol}/hist", params=params)
return [ serializers.FundingStatistic.parse(*sub_data) for sub_data in data ]
def get_pulse_profile(self, nickname: str) -> PulseProfile:
def get_pulse_profile_details(self, nickname: str) -> PulseProfile:
return serializers.PulseProfile.parse(*self._get(f"pulse/profile/{nickname}"))
def get_pulse_history(self, *, end: Optional[str] = None, limit: Optional[int] = None) -> List[PulseMessage]:
def get_pulse_message_history(self, *, end: Optional[str] = None, limit: Optional[int] = None) -> List[PulseMessage]:
messages = []
for subdata in self._get("pulse/hist", params={ "end": end, "limit": limit }):