You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
885 B
25 lines
885 B
import 'package:flutter/foundation.dart';
|
|
import 'package:cake_wallet/entities/crypto_currency.dart';
|
|
import 'package:cake_wallet/exchange/trade_request.dart';
|
|
import 'package:cake_wallet/exchange/exchange_pair.dart';
|
|
import 'package:cake_wallet/exchange/limits.dart';
|
|
import 'package:cake_wallet/exchange/trade.dart';
|
|
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
|
|
|
abstract class ExchangeProvider {
|
|
ExchangeProvider({this.pairList});
|
|
|
|
String get title;
|
|
List<ExchangePair> pairList;
|
|
ExchangeProviderDescription description;
|
|
|
|
@override
|
|
String toString() => title;
|
|
|
|
Future<Limits> fetchLimits({CryptoCurrency from, CryptoCurrency to});
|
|
Future<Trade> createTrade({TradeRequest request});
|
|
Future<Trade> findTradeById({@required String id});
|
|
Future<double> calculateAmount(
|
|
{CryptoCurrency from, CryptoCurrency to, double amount});
|
|
}
|