- Core\PersistentExchange
class Core \ PersistentExchange
Allows an Exchange to have data stored persistently, for example storing the supported currencies and the most recent currency rates, in the database - so that they do not have to be refetched every time.
Method Summary
Name | Description |
---|---|
__construct(Exchange $exchange, Connection $db) | |
getMarkets($force = false) | Quickly get all markets for this exchange. May be cached. |
storeMarkets($markets, Logger $logger) |
public function __construct(Exchange $exchange, Connection $db)
public function getMarkets($force = false)
Quickly get all markets for this exchange. May be cached.
- Parameters:
force
- iftrue
, force a refresh- Defaults:
force
=false