Initial public release

This commit is contained in:
sinmb79
2026-03-30 13:19:11 +09:00
commit 92a692b63c
116 changed files with 5822 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
from abc import ABC, abstractmethod
class BaseExchange(ABC):
@abstractmethod
async def get_balance(self) -> dict: ...
@abstractmethod
async def create_order(self, symbol: str, side: str, order_type: str, qty: float, price: float | None = None) -> dict: ...
@abstractmethod
async def cancel_order(self, order_id: str) -> dict: ...
@abstractmethod
async def cancel_all(self) -> list: ...
@abstractmethod
async def get_positions(self) -> list: ...
async def set_leverage(self, symbol: str, leverage: int) -> None:
"""레버리지 설정. 현물 거래소는 no-op (override 불필요)."""
pass