okxv5 1.8.12__py3-none-any.whl → 1.8.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
okxv5/client.py
CHANGED
@@ -34,9 +34,9 @@ class Client(object):
|
|
34
34
|
# send request
|
35
35
|
response = None
|
36
36
|
|
37
|
-
print("url:", url)
|
37
|
+
# print("url:", url)
|
38
38
|
# print("headers:", header)
|
39
|
-
print("body:", body)
|
39
|
+
# print("body:", body)
|
40
40
|
|
41
41
|
if method == c.GET:
|
42
42
|
response = requests.get(url, headers=header)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: okxv5
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.13
|
4
4
|
Summary: okx RestAPI
|
5
5
|
Home-page:
|
6
6
|
Author:
|
@@ -29,30 +29,30 @@ passphrase = ""
|
|
29
29
|
* RestAPI
|
30
30
|
* 解开相应方法的注释传参调用各接口即可
|
31
31
|
|
32
|
-
import json
|
33
|
-
import okxv5.Account_api as Account
|
34
|
-
import okxv5.Funding_api as Funding
|
35
|
-
import okxv5.Market_api as Market
|
36
|
-
import okxv5.Public_api as Public
|
37
|
-
import okxv5.Trade_api as Trade
|
38
|
-
import okxv5.status_api as Status
|
39
|
-
import okxv5.subAccount_api as SubAccount
|
40
|
-
import okxv5.TradingData_api as TradingData
|
41
|
-
import okxv5.Broker_api as Broker
|
42
|
-
import okxv5.Convert_api as Convert
|
43
|
-
import okxv5.FDBroker_api as FDBroker
|
44
|
-
import okxv5.Rfq_api as Rfq
|
45
|
-
import okxv5.TradingBot_api as TradingBot
|
46
|
-
import okxv5.Finance_api as Finance
|
47
|
-
import okxv5.Copytrading_api as Copytrading
|
48
|
-
import okxv5.Recurring_api as Recurring
|
49
|
-
import okxv5.SprdApi_api as Sprd
|
50
|
-
import okxv5.Singal_api as Signal
|
51
|
-
|
52
|
-
if __name__ == '__main__':
|
53
|
-
api_key = ""
|
54
|
-
secret_key = ""
|
55
|
-
passphrase = ""
|
32
|
+
# import json
|
33
|
+
# import okxv5.Account_api as Account
|
34
|
+
# import okxv5.Funding_api as Funding
|
35
|
+
# import okxv5.Market_api as Market
|
36
|
+
# import okxv5.Public_api as Public
|
37
|
+
# import okxv5.Trade_api as Trade
|
38
|
+
# import okxv5.status_api as Status
|
39
|
+
# import okxv5.subAccount_api as SubAccount
|
40
|
+
# import okxv5.TradingData_api as TradingData
|
41
|
+
# import okxv5.Broker_api as Broker
|
42
|
+
# import okxv5.Convert_api as Convert
|
43
|
+
# import okxv5.FDBroker_api as FDBroker
|
44
|
+
# import okxv5.Rfq_api as Rfq
|
45
|
+
# import okxv5.TradingBot_api as TradingBot
|
46
|
+
# import okxv5.Finance_api as Finance
|
47
|
+
# import okxv5.Copytrading_api as Copytrading
|
48
|
+
# import okxv5.Recurring_api as Recurring
|
49
|
+
# import okxv5.SprdApi_api as Sprd
|
50
|
+
# import okxv5.Singal_api as Signal
|
51
|
+
|
52
|
+
# if __name__ == '__main__':
|
53
|
+
# api_key = ""
|
54
|
+
# secret_key = ""
|
55
|
+
# passphrase = ""
|
56
56
|
|
57
57
|
# flag是实盘与模拟盘的切换参数 flag is the key parameter which can help you to change between demo and real trading.
|
58
58
|
# flag = '1' # 模拟盘 demo trading
|
@@ -16,13 +16,13 @@ okxv5/Trade_api.py,sha256=HF6HrU9NimoEJ-uXUfsvh4-obkiLSFhSSuIECDEQdwE,12179
|
|
16
16
|
okxv5/TradingBot_api.py,sha256=w5mlJ1i-u1MUf3b7w_q5XLaNT8IcX3BveDPWpS9Gnsk,4760
|
17
17
|
okxv5/TradingData_api.py,sha256=1bxeA0uN8J4EAGsOcMZrZuzCM4_ksySyumEfg-oiw24,4100
|
18
18
|
okxv5/__init__.py,sha256=Ad6hbbNp-lBeymA4ipDFyRE-D-3OQ6ZovTPofGsVvNU,97
|
19
|
-
okxv5/client.py,sha256=
|
19
|
+
okxv5/client.py,sha256=KCGY1uHh_O4YzTMx8v3ub7fmOp_TR82Y_VJmXLEEvnY,2029
|
20
20
|
okxv5/consts.py,sha256=-uuSd_YS47A2XGhBQhbVPKrvYi7Sulk-nF5oaBG2Rdw,22230
|
21
21
|
okxv5/exceptions.py,sha256=DIJLDn-YH3WIHSGmirfRJSnthcaZwk86mweeyTPXST8,1246
|
22
22
|
okxv5/status_api.py,sha256=UfBo9n3g7MBb1zDiYmvOQeK1RczbGXmGDtNZ2dzysHM,796
|
23
23
|
okxv5/subAccount_api.py,sha256=PTPrAFwfncUd1DbA9GTT_bsZBmQs1qFb81SjJpsoFVI,3366
|
24
24
|
okxv5/utils.py,sha256=HzL-A731MVNhXT11i-JTMhpYJXtCdd1692C_XxPZy0c,1415
|
25
|
-
okxv5-1.8.
|
26
|
-
okxv5-1.8.
|
27
|
-
okxv5-1.8.
|
28
|
-
okxv5-1.8.
|
25
|
+
okxv5-1.8.13.dist-info/METADATA,sha256=j-3CO_GyovKNjZstyMR2rsCqZWm-xULPod3zR0cmY4Y,58208
|
26
|
+
okxv5-1.8.13.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
27
|
+
okxv5-1.8.13.dist-info/top_level.txt,sha256=GSWVvYdXvgdaQo3Z5uX0peX1pTKSzF_LypkLTm9lt-I,6
|
28
|
+
okxv5-1.8.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|