arequena93/world-trading-data-api
Composer 安装命令:
composer require arequena93/world-trading-data-api
包简介
World Trading Data API client
README 文档
README
PHP-Client (wrapper) for the World Trading Data service.
Requirements
- PHP 7.0+
- Composer (https://getcomposer.org/download/)
- WorldTradingData API key: WorldTradingData-Api-Key
Installation
php composer.phar require arequena93/world-trading-data-api
Usage
Initialization
$option = new WorldTradingData\Options();
$option->setApiKey('YOUR_API_KEY');
$client = new WorldTradingData\Client($option);
Functionalities
| WTD functions | Example usage | Parameters (required in bold) | |
|---|---|---|---|
| Real Time Market Data | Stock and index real time | $client->realtime()->stockAndIndexRealTime('AAPL'); |
|
| Mutual fund real time | $client->realtime()->mutualFundRealTime('AAAAX'); |
|
|
| Intraday Market Data | Stock and index intraday | ||
| Historical Market Data | Full history | $client->historical()->fullHistory('ITX.MC'); |
|
| Multi single day history | $client->historical()->multiSingleDayHistory('AAPL,ITX.MC', '2018-01-02'); |
|
|
| Forex | Real time | $client->forex()->realTime('EUR'); |
|
| Historical | $client->forex()->historical('USD', 'GBP'); |
|
|
| Single day history | $client->forex()->singleDayHistory('USD', '2018-08-31'); |
|
|
统计信息
- 总下载量: 69
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-30