52 lines
897 B
Python
52 lines
897 B
Python
import asyncio
|
|
|
|
class Pair:
|
|
def __init__(self, name):
|
|
self.name = name
|
|
self.ticker = None
|
|
|
|
self.candlestick_1s = None
|
|
self.candlestick_1m = None
|
|
self.candlestick_1h = None
|
|
|
|
self.order_unit = None
|
|
self.price_unit = None
|
|
|
|
def buy_market(amount):
|
|
assert(False)
|
|
|
|
def sell_market(amount):
|
|
assert(False)
|
|
|
|
def buy_limit(amount, price):
|
|
assert(False)
|
|
|
|
def sell_limit(amount, price):
|
|
assert(False)
|
|
|
|
def buy_stop(amount, price):
|
|
assert(False)
|
|
|
|
def sell_stop(amount, price):
|
|
assert(False)
|
|
|
|
def buy_stop_limit(amount, trigger, price):
|
|
assert(False)
|
|
|
|
def sell_stop_limit(amount, trigger, price):
|
|
assert(False)
|
|
|
|
|
|
class Order:
|
|
def __init__(self):
|
|
self.price = None
|
|
self.amount = None
|
|
self.remain = None
|
|
self.done = False
|
|
|
|
async def update(self):
|
|
assert(False)
|
|
|
|
async def cancel(self):
|
|
assert(False)
|