44from bfxapi.rest._interface import Interface
55from bfxapi.types import (
66 Candle,
7- DerivativesStatus,
87 FundingCurrencyBook,
98 FundingCurrencyRawBook,
109 FundingCurrencyTicker,
1413 FxRate,
1514 Leaderboard,
1615 Liquidation,
17- PlatformStatus,
18- PulseMessage,
1916 PulseProfile,
2017 Statistic,
2118 TickersHistory,
@@ -32,9 +29,6 @@ class RestPublicEndpoints(Interface):
3229 def conf(self, config: str) -> Any:
3330 return self._m.get(f"conf/{config}")[0]
3431
35- def get_platform_status(self) -> PlatformStatus:
36- return serializers.PlatformStatus.parse(*self._m.get("platform/status"))
37-
3832 def get_tickers(
3933 self, symbols: List[str]
4034 ) -> Dict[str, Union[TradingPairTicker, FundingCurrencyTicker]]:
@@ -231,35 +225,6 @@ def get_candles_last(
231225 data = self._m.get(f"candles/trade:{tf}:{symbol}/last", params=params)
232226 return serializers.Candle.parse(*data)
233227
234- def get_derivatives_status(
235- self, keys: Union[List[str], Literal["ALL"]]
236- ) -> Dict[str, DerivativesStatus]:
237- if keys == "ALL":
238- params = {"keys": "ALL"}
239- else:
240- params = {"keys": ",".join(keys)}
241-
242- data = self._m.get("status/deriv", params=params)
243-
244- return {
245- key: serializers.DerivativesStatus.parse(*sub_data)
246- for sub_data in data
247- if (key := sub_data.pop(0))
248- }
249-
250- def get_derivatives_status_history(
251- self,
252- key: str,
253- *,
254- sort: Optional[int] = None,
255- start: Optional[str] = None,
256- end: Optional[str] = None,
257- limit: Optional[int] = None,
258- ) -> List[DerivativesStatus]:
259- params = {"sort": sort, "start": start, "end": end, "limit": limit}
260- data = self._m.get(f"status/deriv/{key}/hist", params=params)
261- return [serializers.DerivativesStatus.parse(*sub_data) for sub_data in data]
262-
263228 def get_liquidations(
264229 self,
265230 *,
@@ -327,18 +292,6 @@ def get_funding_stats(
327292 def get_pulse_profile_details(self, nickname: str) -> PulseProfile:
328293 return serializers.PulseProfile.parse(*self._m.get(f"pulse/profile/{nickname}"))
329294
330- def get_pulse_message_history(
331- self, *, end: Optional[str] = None, limit: Optional[int] = None
332- ) -> List[PulseMessage]:
333- messages = []
334-
335- for sub_data in self._m.get("pulse/hist", params={"end": end, "limit": limit}):
336- sub_data[18] = sub_data[18][0]
337- message = serializers.PulseMessage.parse(*sub_data)
338- messages.append(message)
339-
340- return messages
341-
342295 def get_trading_market_average_price(
343296 self,
344297 symbol: str,
0 commit comments