Skip to content

Commit 685ee0c

Browse files
authored
Remove dead get_market_positions and fix 0.5.0 ImportError cleanly (#385)
1 parent 77168e3 commit 685ee0c

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

python-client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "metagame"
3-
version = "0.5.0"
3+
version = "0.5.2"
44
description = "MetaGame Trading Bootcamp Python Client"
55
readme = "README.md"
66
authors = [

python-client/src/metagame/trading_client.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -534,20 +534,6 @@ def edit_auction(
534534
assert isinstance(message, websocket_api.Auction)
535535
return message
536536

537-
def get_market_positions(self, market_id: int) -> websocket_api.MarketPositions:
538-
"""
539-
Get positions for all participants in a market.
540-
"""
541-
msg = websocket_api.ClientMessage(
542-
get_market_positions=websocket_api.GetMarketPositions(
543-
market_id=market_id,
544-
),
545-
)
546-
response = self.request(msg)
547-
_, message = betterproto.which_one_of(response, "message")
548-
assert isinstance(message, websocket_api.MarketPositions)
549-
return message
550-
551537
def set_market_status(
552538
self,
553539
market_id: int,

0 commit comments

Comments
 (0)