<filename>server/trade/TestStrategy.py
from .ThreadStrategy import ThreadStrategy


class TestStrategy(ThreadStrategy):
    logger = logging.getLogger(__name__)

    async def order_cancel(self):
        await self.sell({
            'bids': [
                [9999]
            ]
        })

    async def tick(self, resp, balance):
        result = await self.api.call(
            'CancelOrder',
            order_id=1679745692
        )
        print(result)

<filename>server/trade/TestStrategy.py
from .ThreadStrategy import ThreadStrategy


class TestStrategy(ThreadStrategy):
    logger = logging.getLogger(__name__)

    async def order_cancel(self):
        await self.sell({
            'bids': [
                [9999]
            ]
        })

    async def tick(self, resp, balance):
        result = await self.api.call(
            'CancelOrder',
            order_id=1679745692
        )
        print(result)
