- Apis\Api
- Apis\CachedApi
- Core\Apis\Ticker
- Apis\CachedApi
class Core\Apis \ Ticker
Get all supported ticker markets and details for the given exchange.
- Parameters:
-
exchange- the unique exchange code
Method Summary
| Name | Description |
|---|---|
| getEndpoint() | |
| getHash($arguments) | Return a 32-character hash from the given argmuents so that it can be cached. |
| getJSON($arguments) | Compile the JSON with the given arguments, as parsed from the #getEndpoint() string. |
Inherited Method Summary
| Name | Description |
|---|---|
| render($arguments) |
Try and get the JSON result for this API, and return either {success: true: result: $json} or {success: false, error: $message} if an exception occured. (from CachedApi)
|
| getAge() | How long are API calls cached? (from CachedApi) |
| getCached($arguments) | (from CachedApi) |
| renderJSON($arguments) | (from CachedApi) |
public function getEndpoint()
- Overrides:
- getEndpoint()
- Returns:
e.g. "/api/v1/currency/:currency"
public function getHash($arguments)
Return a 32-character hash from the given argmuents so that it can be cached. (from getHash)
- Overrides:
- getHash($arguments)
public function getJSON($arguments)
Compile the JSON with the given arguments, as parsed from the #getEndpoint() string. (from getJSON)
- Overrides:
- getJSON($arguments)