nanoric
|
788677370f
|
[Mod] WebsocketClient改名为WebSocketClient
|
2018-10-15 04:45:57 -04:00 |
|
nanoric
|
90d25fa536
|
Merge branch 'refactor.network.devel' into okex.devel
|
2018-10-15 04:39:39 -04:00 |
|
nanoric
|
562fae9a25
|
[Mod] WebSocketClient:非纯虚函数不使用abstractmethod
|
2018-10-15 04:39:09 -04:00 |
|
nanoric
|
c50c31a6bd
|
[Mod] sendRequest改名为sendPacket
和onPacket对应。
|
2018-10-15 04:37:55 -04:00 |
|
nanoric
|
b8c6c92c43
|
[Mod] 使用一些VtObject相关的静态函数
|
2018-10-15 04:36:37 -04:00 |
|
nanoric
|
4d7c3bf417
|
[Add] WebSocketClient:增加onDisconnected
|
2018-10-15 04:35:55 -04:00 |
|
nanoric
|
a55246eb77
|
[Mod] WebSocketClient.onMessage改名为onPacket,以免和正常WebSocket的onMessage搞混。
|
2018-10-15 04:30:06 -04:00 |
|
nanoric
|
66cb55ef26
|
[Add] 增加一些用于创建VtObject的静态方法
|
2018-10-15 03:56:20 -04:00 |
|
nanoric
|
f2f4669123
|
[Fix] 修正错误的对websocket的引用
|
2018-10-15 03:20:54 -04:00 |
|
nanoric
|
a3129a8007
|
[Mod] sendReq改名为sendRequest(同步),addReq改名为addRequest(异步)
|
2018-10-15 03:12:05 -04:00 |
|
nanoric
|
c8a071f38e
|
[Mod] 整理格式
|
2018-10-12 03:11:10 -04:00 |
|
nanoric
|
7cf5825bbe
|
[Add] OkexFutureGateway:增加持仓查询接口
|
2018-10-12 03:08:12 -04:00 |
|
nanoric
|
e51e03f910
|
[Fix] 修正对齐
|
2018-10-12 02:21:44 -04:00 |
|
nanoric
|
86586a71c7
|
[Add] OkexFutureGateway增加了queryOrders的接口
|
2018-10-12 02:19:57 -04:00 |
|
nanoric
|
c88f5b497a
|
[Mod] errorCode2String改名为errorCodeToString
|
2018-10-12 02:04:39 -04:00 |
|
nanoric
|
abc82ecd96
|
[Fix] 修改一下typeHint
|
2018-10-12 01:30:58 -04:00 |
|
nanoric
|
aad3b6c51e
|
[Fix] 将OkexzFutureRestClient.queryOrders变为可用
[Mod] 修改一些注释
|
2018-10-12 00:02:44 -04:00 |
|
nanoric
|
63c8401931
|
[Fix] 修复OkexFutureClient缺少签名的错误
|
2018-10-12 00:02:36 -04:00 |
|
nanoric
|
4878b3291b
|
[Mod] 将Enum改为普通的object
[Mod] onFailed增加一个errorCode参数
|
2018-10-11 23:39:01 -04:00 |
|
nanoric
|
8c971c7d81
|
[Add] 增加OkexFutureSymbol类以表示可支持的合约(无法直接从API查询)
|
2018-10-11 23:10:00 -04:00 |
|
nanoric
|
6e0e1c116b
|
[Mod] 将RestClient和WebClient移动到api文件夹中,并修改import方式
|
2018-10-11 22:53:48 -04:00 |
|
nanoric
|
a396b55f8e
|
[Add] 完成OkexFutureApi.queryOrders
|
2018-10-11 22:50:04 -04:00 |
|
nanoric
|
0ee13bf862
|
[Add] RestClient:增加了Join函数
[Mod] 将processReq改为保护方法:改名为_processReq
|
2018-10-11 22:06:30 -04:00 |
|
nanoric
|
d9b5de31f3
|
[Add] 准备增加queryOrders
|
2018-10-11 06:13:40 -04:00 |
|
nanoric
|
0749007dc7
|
[Add] 修改部分注释
|
2018-10-11 06:12:41 -04:00 |
|
nanoric
|
694317b663
|
[Mod] 修改order的字段获取顺序:按字母顺序排列
|
2018-10-11 05:50:28 -04:00 |
|
nanoric
|
cf546672fd
|
[Add] 完成okexFutureGateway.sendOrder
|
2018-10-11 04:05:26 -04:00 |
|
nanoric
|
a4859a94eb
|
[Fix] OkexFutureApi:将onFailed参数变为真的可选
|
2018-10-11 04:04:33 -04:00 |
|
nanoric
|
26cfc17255
|
[Mod] OkexFutureApi:修改部分onFailed的智能提示
|
2018-10-11 03:52:03 -04:00 |
|
nanoric
|
fe99a3ddd8
|
[Fix] Fix:如果没有杠杆倍数,就不传这个参数
|
2018-10-11 03:46:32 -04:00 |
|
nanoric
|
f5755b222a
|
[Add] 将OkexFutureRestClient做成独立的API分离出来
|
2018-10-11 03:37:25 -04:00 |
|
nanoric
|
b34dcf6a73
|
[Mod] Test使用with promise.catch():语法
|
2018-10-10 22:27:02 -04:00 |
|
nanoric
|
3f8e5f1099
|
[Add] Promise增加with self.catch():语法支持
|
2018-10-10 22:26:39 -04:00 |
|
nanoric
|
ab116d8f97
|
[Fix] 修复Promise抛出单个异常时get无法获取到正确的异常的错误
|
2018-10-10 22:10:15 -04:00 |
|
nanoric
|
6e71c59c06
|
[Mod] onFailed只接收两个参数,原来的data参数可以从req.response.raw读出
|
2018-10-10 22:09:20 -04:00 |
|
nanoric
|
e6f7781a47
|
[Mod] HttpClient改名为RestClient
|
2018-10-10 05:36:14 -04:00 |
|
nanoric
|
f0aa9c7172
|
[Add] okexFutureGateway:增加cancelOrder
|
2018-10-10 04:53:09 -04:00 |
|
nanoric
|
ab72e0303b
|
[Mod] 改了一下注释
|
2018-10-10 04:52:30 -04:00 |
|
nanoric
|
486e6055e6
|
[Mod] HttClient:修改对应的测试
[Del] 删除了HeadersAuthenticateHttpClient,因为不再需要了
该版本的测试可以通过
|
2018-10-10 03:59:13 -04:00 |
|
nanoric
|
5d0de90e60
|
[Mod] HttpClient:HTTP请求成功的标准从status_code==200修改为status_code==2xx
|
2018-10-10 03:53:09 -04:00 |
|
nanoric
|
6b19abc875
|
[Mod] HttpClient:将和HTTP请求相关的东西都进了Request
[Add] HttpClient.addReq:增加onFailed参数
|
2018-10-10 03:44:57 -04:00 |
|
nanoric
|
c04850c9a0
|
[Add] okexFuture相关修改。
我决定了,每一点小修改都commit,无论是否能运行。所以我把修改都提交上来了。
|
2018-10-09 06:08:39 -04:00 |
|
nanoric
|
54b93a89b5
|
[Add] 我觉得还是有onFail好,不过不再是用自定义callback的形式,而是重载的形式。对应的,RequestStatus中的状态也增加了。
|
2018-10-09 06:07:50 -04:00 |
|
nanoric
|
7e56c3fd49
|
[Mod] Promise:增加对traceback的支持
|
2018-10-09 06:06:41 -04:00 |
|
nanoric
|
f3f2598c44
|
[Mod] 改名:将restful改名为network
|
2018-10-09 06:05:50 -04:00 |
|
nanoric
|
7d65170e53
|
[Mod] restful包改名为network
[Mod] RestfulClient改名为HttpClient
|
2018-10-07 22:31:34 -04:00 |
|
nanoric
|
8dcc785fd3
|
[Mod] 修改tests的引用结构,便于从其他项目引用
|
2018-10-07 04:43:58 -04:00 |
|
nanoric
|
c38a9fcabd
|
[Mod] 修正RestfulClient和WebSocketClient的单元测试
|
2018-10-07 04:20:14 -04:00 |
|
nanoric
|
0236fcb864
|
[Fix] WebSocketClient:修正一个潜在Bug:因网络问题导致重连的exception不会被onError捕获
|
2018-10-07 04:10:38 -04:00 |
|
nanoric
|
85c64b00e4
|
[Mod] WebSocketClient隐藏一些内部变量
|
2018-10-07 04:07:03 -04:00 |
|