11"""WhiteBit Public API v1 client."""
22
3- from typing import Optional
4-
53from aiowhitebit .clients .base import BaseClient
64from aiowhitebit .config import APIEndpoints
75from aiowhitebit .converters .public import (
@@ -58,10 +56,10 @@ async def get_single_market(self, market: str) -> MarketSingleResponse:
5856 async def get_kline_market (
5957 self ,
6058 market : str ,
61- start : Optional [ int ] = None ,
62- end : Optional [ int ] = None ,
63- interval : Optional [ str ] = None ,
64- limit : Optional [ int ] = None ,
59+ start : int | None = None ,
60+ end : int | None = None ,
61+ interval : str | None = None ,
62+ limit : int | None = None ,
6563 ) -> Kline :
6664 """Get kline data for the requested market."""
6765 validate_market (market )
@@ -102,7 +100,7 @@ async def get_symbols(self) -> Symbols:
102100 return await self ._make_request (APIEndpoints .SYMBOLS_V1 , converter = lambda x : Symbols (** x ))
103101
104102 @rate_limit (limit = 1000 , window = 10.0 )
105- async def get_order_depth (self , market : str , limit : Optional [ int ] = None ) -> OrderDepth :
103+ async def get_order_depth (self , market : str , limit : int | None = None ) -> OrderDepth :
106104 """Get order book for the requested market.
107105
108106 Args:
@@ -128,7 +126,7 @@ async def get_order_depth(self, market: str, limit: Optional[int] = None) -> Ord
128126
129127 @rate_limit (limit = 1000 , window = 10.0 )
130128 async def get_trade_history (
131- self , market : str , last_id : Optional [ int ] = None , limit : Optional [ int ] = None
129+ self , market : str , last_id : int | None = None , limit : int | None = None
132130 ) -> TradeHistory :
133131 """Get trade history for the requested market."""
134132 validate_market (market )
0 commit comments