add query markets to the exchagne interface

This commit is contained in:
c9s 2020-10-14 11:02:50 +08:00
parent 5112b83041
commit c167b2f303

View File

@ -34,6 +34,8 @@ type Exchange interface {
NewStream() Stream NewStream() Stream
QueryMarkets(ctx context.Context) (MarketMap, error)
QueryAccount(ctx context.Context) (*Account, error) QueryAccount(ctx context.Context) (*Account, error)
QueryAccountBalances(ctx context.Context) (BalanceMap, error) QueryAccountBalances(ctx context.Context) (BalanceMap, error)