58 lines
988 B
Python
58 lines
988 B
Python
from core.exchanges import BaseExchange
|
|
|
|
|
|
class FakeExchange(BaseExchange):
|
|
def call_method(self, request):
|
|
pass
|
|
|
|
def connect(self):
|
|
pass
|
|
|
|
def get_account(self):
|
|
pass
|
|
|
|
def get_instruments(self):
|
|
pass
|
|
|
|
def get_currencies(self, currencies):
|
|
pass
|
|
|
|
def get_supported_assets(self, response=None):
|
|
pass
|
|
|
|
def get_balance(self, return_usd=False):
|
|
pass
|
|
|
|
def get_market_value(self, symbol):
|
|
pass
|
|
|
|
def post_trade(self, trade):
|
|
pass
|
|
|
|
def close_trade(self, trade_id):
|
|
pass
|
|
|
|
def get_trade(self, trade_id):
|
|
pass
|
|
|
|
def update_trade(self, trade):
|
|
pass
|
|
|
|
def cancel_trade(self, trade_id):
|
|
pass
|
|
|
|
def get_position_info(self, symbol):
|
|
pass
|
|
|
|
def get_all_positions(self):
|
|
pass
|
|
|
|
def get_all_open_trades(self):
|
|
pass
|
|
|
|
def close_position(self, side, symbol):
|
|
pass
|
|
|
|
def close_all_positions(self):
|
|
pass
|