rzr / markitondemand
Markit on Demand API 的 Zend Framework 2 模块
dev-master
2016-08-17 00:26 UTC
Requires
- php: ^5.5
- zendframework/zend-http: ^2.5
This package is not auto-updated.
Last update: 2024-09-14 19:58:40 UTC
README
- 此模块提供了在 Zend Framework 2 中访问 Markit On Demand 市场数据 API 的 OOP 访问方式
特性
- 符号查找
- 符号报价数据
安装
- Composer: composer require rzr/markitondemand
- Git: git clone https://github.com/rmayne/Markitondemand.git
使用方法
- 在各种市场上找到一家公司的符号
- 返回对象数组
- $client = new MarkitondemandClient();
- $results = $client->lookupCompany('twit');
- 获取符号报价
- 返回报价对象
- $company = new Company();
- $quote = $company->getQuote('TWTR');
- 更新报价对象
- $quote = new Quote();
- $quote->updateQuote();
资源
待办事项列表
- 为 zend 客户端使用提供单例行为
- 更好的性能