Skip to content

Conversation

@ex10ded
Copy link
Contributor

@ex10ded ex10ded commented Jul 1, 2025

No description provided.

@ex10ded ex10ded changed the base branch from main to starknet July 1, 2025 11:29
@ex10ded ex10ded force-pushed the add_simple_liquidity_bot branch from 233be0c to 5608c38 Compare July 1, 2025 11:31
chain_rpc_url="https://rpc.sepolia.org",
api_base_url="https://api.starknet.sepolia.extended.exchange/api/v1",
stream_url="wss://api.starknet.sepolia.extended.exchange/stream.extended.exchange/v1",
stream_url="wss://starknet.sepolia.extended.exchange/stream.extended.exchange/v1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for UI, pls revert

target_order_amount_usd = Decimal("50")
market = available_markets["BTC-USD"]
await root_trading_client.mass_cancel(markets=[market.name])
buy_orders_infoz: List[Tuple[str, Decimal] | None] = [None, None, None]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can't we reuse OrderBookEntry?

self.init_orderbook(event.data)
elif event.type == StreamDataType.DELTA.value:
self.update_orderbook(event.data)
while True:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for reconnection?

try:
return await self.__receive()
except websockets.ConnectionClosed:
raise StopAsyncIteration from None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from None -- why we can't use correct cause?

"""

url = self.__get_url("/orderbooks/<market?>", market=market_name)
url = self.__get_url("/orderbooks/<market?>" + (f"?depth={depth}" if depth else ""), market=market_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls check test_generate_valid_url_from_template you can do

query={ "depth": depth }

if will be removed if it is None

@ex10ded ex10ded merged commit 1e7039f into starknet Jul 15, 2025
@alexex10 alexex10 deleted the add_simple_liquidity_bot branch August 18, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants