1: <?php
2: namespace Sotr\Crypto;
3:
4: use Sotr\Crypto\CurrencyPair;
5:
6: interface ExchangeApiInterface
7: {
8: /**
9: * Returns the base URI of this exchange's
10: * public API.
11: *
12: * @return string
13: */
14: public function getPublicBaseUri();
15:
16: /**
17: * Returns the base URI of this exchange's
18: * private and/or trading API.
19: *
20: * @return string
21: */
22: public function getTradingBaseUri();
23:
24: /**
25: * Gets the latest ticker for the given
26: * currency pair.
27: *
28: * @param Sotr\Crypto\CurrencyPair $pair
29: * @return Sotr\Crypto\Ticker
30: */
31: public function getTicker(CurrencyPair $pair = null);
32:
33: /**
34: * Gets the user account's balance.
35: *
36: * @return Sotr\Crypto\AccountBalance
37: */
38: public function getBalance();
39: }
40: