Skip to content

Commit 772c2d4

Browse files
refactor: removed all references to pulse
1 parent 5346787 commit 772c2d4

File tree

5 files changed

+0
-122
lines changed

5 files changed

+0
-122
lines changed

bfxapi/rest/_interfaces/rest_public_endpoints.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
Leaderboard,
1616
Liquidation,
1717
PlatformStatus,
18-
PulseProfile,
1918
Statistic,
2019
TickersHistory,
2120
TradingMarketAveragePrice,
@@ -323,9 +322,6 @@ def get_funding_stats(
323322
data = self._m.get(f"funding/stats/{symbol}/hist", params=params)
324323
return [serializers.FundingStatistic.parse(*sub_data) for sub_data in data]
325324

326-
def get_pulse_profile_details(self, nickname: str) -> PulseProfile:
327-
return serializers.PulseProfile.parse(*self._m.get(f"pulse/profile/{nickname}"))
328-
329325
def get_trading_market_average_price(
330326
self,
331327
symbol: str,

bfxapi/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
PositionIncrease,
4343
PositionIncreaseInfo,
4444
PositionSnapshot,
45-
PulseMessage,
46-
PulseProfile,
4745
Statistic,
4846
SymbolMarginInfo,
4947
TickersHistory,

bfxapi/types/dataclasses.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -161,37 +161,6 @@ class FundingStatistic(_Type):
161161
funding_below_threshold: float
162162

163163

164-
@dataclass
165-
class PulseProfile(_Type):
166-
puid: str
167-
mts: int
168-
nickname: str
169-
picture: str
170-
text: str
171-
twitter_handle: str
172-
followers: int
173-
following: int
174-
tipping_status: int
175-
176-
177-
@dataclass
178-
class PulseMessage(_Type):
179-
pid: str
180-
mts: int
181-
puid: str
182-
title: str
183-
content: str
184-
is_pin: int
185-
is_public: int
186-
comments_disabled: int
187-
tags: List[str]
188-
attachments: List[str]
189-
meta: List[Dict[str, Any]]
190-
likes: int
191-
profile: PulseProfile
192-
comments: int
193-
194-
195164
@dataclass
196165
class TradingMarketAveragePrice(_Type):
197166
price_avg: float

bfxapi/types/serializers.py

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"Liquidation",
2424
"Leaderboard",
2525
"FundingStatistic",
26-
"PulseProfile",
27-
"PulseMessage",
2826
"TradingMarketAveragePrice",
2927
"FundingMarketAveragePrice",
3028
"FxRate",
@@ -257,60 +255,6 @@
257255
],
258256
)
259257

260-
PulseProfile = generate_labeler_serializer(
261-
name="PulseProfile",
262-
klass=dataclasses.PulseProfile,
263-
labels=[
264-
"puid",
265-
"mts",
266-
"_PLACEHOLDER",
267-
"nickname",
268-
"_PLACEHOLDER",
269-
"picture",
270-
"text",
271-
"_PLACEHOLDER",
272-
"_PLACEHOLDER",
273-
"twitter_handle",
274-
"_PLACEHOLDER",
275-
"followers",
276-
"following",
277-
"_PLACEHOLDER",
278-
"_PLACEHOLDER",
279-
"_PLACEHOLDER",
280-
"tipping_status",
281-
],
282-
)
283-
284-
PulseMessage = generate_recursive_serializer(
285-
name="PulseMessage",
286-
klass=dataclasses.PulseMessage,
287-
serializers={"profile": PulseProfile},
288-
labels=[
289-
"pid",
290-
"mts",
291-
"_PLACEHOLDER",
292-
"puid",
293-
"_PLACEHOLDER",
294-
"title",
295-
"content",
296-
"_PLACEHOLDER",
297-
"_PLACEHOLDER",
298-
"is_pin",
299-
"is_public",
300-
"comments_disabled",
301-
"tags",
302-
"attachments",
303-
"meta",
304-
"likes",
305-
"_PLACEHOLDER",
306-
"_PLACEHOLDER",
307-
"profile",
308-
"comments",
309-
"_PLACEHOLDER",
310-
"_PLACEHOLDER",
311-
],
312-
)
313-
314258
TradingMarketAveragePrice = generate_labeler_serializer(
315259
name="TradingMarketAveragePrice",
316260
klass=dataclasses.TradingMarketAveragePrice,

examples/rest/public/pulse_endpoints.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)