crypticorn 1.0.1__py3-none-any.whl → 1.0.2rc2__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.
- crypticorn/__init__.py +3 -3
- crypticorn/client.py +722 -0
- crypticorn/hive/__init__.py +1 -0
- crypticorn/{api.py → hive/main.py} +6 -6
- crypticorn/hive/requirements.txt +4 -0
- crypticorn/{utils.py → hive/utils.py} +2 -2
- crypticorn/klines/__init__.py +2 -0
- crypticorn/klines/client/__init__.py +62 -0
- crypticorn/klines/client/api/__init__.py +9 -0
- crypticorn/klines/client/api/funding_rates_api.py +362 -0
- crypticorn/klines/client/api/health_check_api.py +281 -0
- crypticorn/klines/client/api/ohlcv_data_api.py +409 -0
- crypticorn/klines/client/api/symbols_api.py +308 -0
- crypticorn/klines/client/api/udf_api.py +1929 -0
- crypticorn/klines/client/api_client.py +797 -0
- crypticorn/klines/client/api_response.py +21 -0
- crypticorn/klines/client/configuration.py +565 -0
- crypticorn/klines/client/exceptions.py +216 -0
- crypticorn/klines/client/models/__init__.py +41 -0
- crypticorn/klines/client/models/base_response_health_check_response.py +108 -0
- crypticorn/klines/client/models/base_response_list_funding_rate_response.py +112 -0
- crypticorn/klines/client/models/base_response_list_str.py +104 -0
- crypticorn/klines/client/models/base_response_ohlcv_response.py +108 -0
- crypticorn/klines/client/models/error_response.py +101 -0
- crypticorn/{models/deleted.py → klines/client/models/exchange.py} +15 -11
- crypticorn/klines/client/models/funding_rate_response.py +92 -0
- crypticorn/klines/client/models/health_check_response.py +89 -0
- crypticorn/{models/create_api_key_response.py → klines/client/models/history_error_response.py} +12 -22
- crypticorn/klines/client/models/history_no_data_response.py +99 -0
- crypticorn/klines/client/models/history_success_response.py +99 -0
- crypticorn/klines/client/models/http_validation_error.py +95 -0
- crypticorn/klines/client/models/market.py +37 -0
- crypticorn/klines/client/models/ohlcv_response.py +98 -0
- crypticorn/klines/client/models/resolution.py +40 -0
- crypticorn/klines/client/models/response_get_history_udf_history_get.py +149 -0
- crypticorn/klines/client/models/search_symbol_response.py +97 -0
- crypticorn/klines/client/models/sort_direction.py +37 -0
- crypticorn/{models/futures_balance_error.py → klines/client/models/symbol_group_response.py} +12 -14
- crypticorn/klines/client/models/symbol_info_response.py +115 -0
- crypticorn/{models/id.py → klines/client/models/symbol_type.py} +13 -11
- crypticorn/klines/client/models/timeframe.py +40 -0
- crypticorn/klines/client/models/udf_config_response.py +121 -0
- crypticorn/klines/client/models/validation_error.py +99 -0
- crypticorn/{models/get_futures_balance200_response_inner.py → klines/client/models/validation_error_loc_inner.py} +39 -35
- crypticorn/klines/client/py.typed +0 -0
- crypticorn/klines/client/rest.py +257 -0
- crypticorn/klines/main.py +42 -0
- crypticorn/klines/requirements.txt +4 -0
- crypticorn/klines/test/__init__.py +0 -0
- crypticorn/klines/test/test_base_response_health_check_response.py +56 -0
- crypticorn/klines/test/test_base_response_list_funding_rate_response.py +59 -0
- crypticorn/klines/test/test_base_response_list_str.py +56 -0
- crypticorn/klines/test/test_base_response_ohlcv_response.py +72 -0
- crypticorn/klines/test/test_error_response.py +57 -0
- crypticorn/klines/test/test_exchange.py +56 -0
- crypticorn/klines/test/test_funding_rate_response.py +56 -0
- crypticorn/klines/test/test_funding_rates_api.py +38 -0
- crypticorn/klines/test/test_health_check_api.py +38 -0
- crypticorn/klines/test/test_health_check_response.py +52 -0
- crypticorn/klines/test/test_history_error_response.py +53 -0
- crypticorn/klines/test/test_history_no_data_response.py +69 -0
- crypticorn/klines/test/test_history_success_response.py +87 -0
- crypticorn/klines/test/test_http_validation_error.py +58 -0
- crypticorn/klines/test/test_market.py +33 -0
- crypticorn/klines/test/test_ohlcv_data_api.py +38 -0
- crypticorn/klines/test/test_ohlcv_response.py +86 -0
- crypticorn/klines/test/test_resolution.py +33 -0
- crypticorn/klines/test/test_response_get_history_udf_history_get.py +89 -0
- crypticorn/klines/test/test_search_symbol_response.py +62 -0
- crypticorn/klines/test/test_sort_direction.py +33 -0
- crypticorn/klines/test/test_symbol_group_response.py +53 -0
- crypticorn/klines/test/test_symbol_info_response.py +84 -0
- crypticorn/klines/test/test_symbol_type.py +54 -0
- crypticorn/klines/test/test_symbols_api.py +38 -0
- crypticorn/klines/test/test_timeframe.py +33 -0
- crypticorn/klines/test/test_udf_api.py +80 -0
- crypticorn/klines/test/test_udf_config_response.py +95 -0
- crypticorn/klines/test/test_validation_error.py +60 -0
- crypticorn/klines/test/test_validation_error_loc_inner.py +50 -0
- crypticorn/trade/__init__.py +2 -0
- crypticorn/trade/client/__init__.py +63 -0
- crypticorn/trade/client/api/__init__.py +13 -0
- crypticorn/trade/client/api/api_keys_api.py +1468 -0
- crypticorn/trade/client/api/bots_api.py +1211 -0
- crypticorn/trade/client/api/exchanges_api.py +297 -0
- crypticorn/trade/client/api/futures_trading_panel_api.py +1463 -0
- crypticorn/trade/client/api/notifications_api.py +1767 -0
- crypticorn/trade/client/api/orders_api.py +331 -0
- crypticorn/trade/client/api/status_api.py +278 -0
- crypticorn/trade/client/api/strategies_api.py +331 -0
- crypticorn/trade/client/api/trading_actions_api.py +898 -0
- crypticorn/trade/client/api_client.py +797 -0
- crypticorn/trade/client/api_response.py +21 -0
- crypticorn/trade/client/configuration.py +574 -0
- crypticorn/trade/client/exceptions.py +216 -0
- crypticorn/trade/client/models/__init__.py +38 -0
- crypticorn/{models → trade/client/models}/action_model.py +17 -20
- crypticorn/{models → trade/client/models}/api_error_identifier.py +3 -1
- crypticorn/{models → trade/client/models}/api_key_model.py +5 -8
- crypticorn/{models → trade/client/models}/bot_model.py +15 -11
- crypticorn/{models → trade/client/models}/futures_trading_action.py +12 -12
- crypticorn/{models → trade/client/models}/http_validation_error.py +1 -1
- crypticorn/{models → trade/client/models}/notification_model.py +8 -6
- crypticorn/{models → trade/client/models}/order_model.py +12 -15
- crypticorn/{models → trade/client/models}/post_futures_action.py +1 -1
- crypticorn/{models → trade/client/models}/strategy_exchange_info.py +1 -1
- crypticorn/{models → trade/client/models}/strategy_model.py +6 -2
- crypticorn/{models → trade/client/models}/validation_error.py +1 -1
- crypticorn/trade/client/py.typed +0 -0
- crypticorn/trade/client/rest.py +257 -0
- crypticorn/trade/main.py +39 -0
- crypticorn/trade/requirements.txt +4 -0
- crypticorn-1.0.2rc2.dist-info/METADATA +47 -0
- crypticorn-1.0.2rc2.dist-info/RECORD +128 -0
- {crypticorn-1.0.1.dist-info → crypticorn-1.0.2rc2.dist-info}/WHEEL +1 -1
- crypticorn/models/__init__.py +0 -31
- crypticorn/models/modified.py +0 -87
- crypticorn-1.0.1.dist-info/METADATA +0 -40
- crypticorn-1.0.1.dist-info/RECORD +0 -38
- /crypticorn/{models → trade/client/models}/exchange.py +0 -0
- /crypticorn/{models → trade/client/models}/execution_ids.py +0 -0
- /crypticorn/{models → trade/client/models}/futures_balance.py +0 -0
- /crypticorn/{models → trade/client/models}/margin_mode.py +0 -0
- /crypticorn/{models → trade/client/models}/market_type.py +0 -0
- /crypticorn/{models → trade/client/models}/notification_type.py +0 -0
- /crypticorn/{models → trade/client/models}/order_status.py +0 -0
- /crypticorn/{models → trade/client/models}/tpsl.py +0 -0
- /crypticorn/{models → trade/client/models}/trading_action_type.py +0 -0
- /crypticorn/{models → trade/client/models}/update_notification.py +0 -0
- /crypticorn/{models → trade/client/models}/validation_error_loc_inner.py +0 -0
- {crypticorn-1.0.1.dist-info → crypticorn-1.0.2rc2.dist-info}/LICENSE.md +0 -0
- {crypticorn-1.0.1.dist-info → crypticorn-1.0.2rc2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.response_get_history_udf_history_get import ResponseGetHistoryUdfHistoryGet
|
18
|
+
|
19
|
+
class TestResponseGetHistoryUdfHistoryGet(unittest.TestCase):
|
20
|
+
"""ResponseGetHistoryUdfHistoryGet unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> ResponseGetHistoryUdfHistoryGet:
|
29
|
+
"""Test ResponseGetHistoryUdfHistoryGet
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `ResponseGetHistoryUdfHistoryGet`
|
34
|
+
"""
|
35
|
+
model = ResponseGetHistoryUdfHistoryGet()
|
36
|
+
if include_optional:
|
37
|
+
return ResponseGetHistoryUdfHistoryGet(
|
38
|
+
s = 'error',
|
39
|
+
t = [
|
40
|
+
56
|
41
|
+
],
|
42
|
+
o = [
|
43
|
+
1.337
|
44
|
+
],
|
45
|
+
h = [
|
46
|
+
1.337
|
47
|
+
],
|
48
|
+
l = [
|
49
|
+
1.337
|
50
|
+
],
|
51
|
+
c = [
|
52
|
+
1.337
|
53
|
+
],
|
54
|
+
v = [
|
55
|
+
1.337
|
56
|
+
],
|
57
|
+
errmsg = ''
|
58
|
+
)
|
59
|
+
else:
|
60
|
+
return ResponseGetHistoryUdfHistoryGet(
|
61
|
+
t = [
|
62
|
+
56
|
63
|
+
],
|
64
|
+
o = [
|
65
|
+
1.337
|
66
|
+
],
|
67
|
+
h = [
|
68
|
+
1.337
|
69
|
+
],
|
70
|
+
l = [
|
71
|
+
1.337
|
72
|
+
],
|
73
|
+
c = [
|
74
|
+
1.337
|
75
|
+
],
|
76
|
+
v = [
|
77
|
+
1.337
|
78
|
+
],
|
79
|
+
errmsg = '',
|
80
|
+
)
|
81
|
+
"""
|
82
|
+
|
83
|
+
def testResponseGetHistoryUdfHistoryGet(self):
|
84
|
+
"""Test ResponseGetHistoryUdfHistoryGet"""
|
85
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
86
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
87
|
+
|
88
|
+
if __name__ == '__main__':
|
89
|
+
unittest.main()
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.search_symbol_response import SearchSymbolResponse
|
18
|
+
|
19
|
+
class TestSearchSymbolResponse(unittest.TestCase):
|
20
|
+
"""SearchSymbolResponse unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> SearchSymbolResponse:
|
29
|
+
"""Test SearchSymbolResponse
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `SearchSymbolResponse`
|
34
|
+
"""
|
35
|
+
model = SearchSymbolResponse()
|
36
|
+
if include_optional:
|
37
|
+
return SearchSymbolResponse(
|
38
|
+
symbol = '',
|
39
|
+
full_name = '',
|
40
|
+
description = '',
|
41
|
+
exchange = '',
|
42
|
+
ticker = '',
|
43
|
+
type = ''
|
44
|
+
)
|
45
|
+
else:
|
46
|
+
return SearchSymbolResponse(
|
47
|
+
symbol = '',
|
48
|
+
full_name = '',
|
49
|
+
description = '',
|
50
|
+
exchange = '',
|
51
|
+
ticker = '',
|
52
|
+
type = '',
|
53
|
+
)
|
54
|
+
"""
|
55
|
+
|
56
|
+
def testSearchSymbolResponse(self):
|
57
|
+
"""Test SearchSymbolResponse"""
|
58
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
59
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
60
|
+
|
61
|
+
if __name__ == '__main__':
|
62
|
+
unittest.main()
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.sort_direction import SortDirection
|
18
|
+
|
19
|
+
class TestSortDirection(unittest.TestCase):
|
20
|
+
"""SortDirection unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def testSortDirection(self):
|
29
|
+
"""Test SortDirection"""
|
30
|
+
# inst = SortDirection()
|
31
|
+
|
32
|
+
if __name__ == '__main__':
|
33
|
+
unittest.main()
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.symbol_group_response import SymbolGroupResponse
|
18
|
+
|
19
|
+
class TestSymbolGroupResponse(unittest.TestCase):
|
20
|
+
"""SymbolGroupResponse unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> SymbolGroupResponse:
|
29
|
+
"""Test SymbolGroupResponse
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `SymbolGroupResponse`
|
34
|
+
"""
|
35
|
+
model = SymbolGroupResponse()
|
36
|
+
if include_optional:
|
37
|
+
return SymbolGroupResponse(
|
38
|
+
symbol = [
|
39
|
+
''
|
40
|
+
]
|
41
|
+
)
|
42
|
+
else:
|
43
|
+
return SymbolGroupResponse(
|
44
|
+
)
|
45
|
+
"""
|
46
|
+
|
47
|
+
def testSymbolGroupResponse(self):
|
48
|
+
"""Test SymbolGroupResponse"""
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
51
|
+
|
52
|
+
if __name__ == '__main__':
|
53
|
+
unittest.main()
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.symbol_info_response import SymbolInfoResponse
|
18
|
+
|
19
|
+
class TestSymbolInfoResponse(unittest.TestCase):
|
20
|
+
"""SymbolInfoResponse unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> SymbolInfoResponse:
|
29
|
+
"""Test SymbolInfoResponse
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `SymbolInfoResponse`
|
34
|
+
"""
|
35
|
+
model = SymbolInfoResponse()
|
36
|
+
if include_optional:
|
37
|
+
return SymbolInfoResponse(
|
38
|
+
name = '',
|
39
|
+
exchange_traded = '',
|
40
|
+
exchange_listed = '',
|
41
|
+
timezone = '',
|
42
|
+
minmov = 56,
|
43
|
+
minmov2 = 56,
|
44
|
+
pointvalue = 56,
|
45
|
+
session = '',
|
46
|
+
has_intraday = True,
|
47
|
+
has_no_volume = True,
|
48
|
+
description = '',
|
49
|
+
type = '',
|
50
|
+
supported_resolutions = [
|
51
|
+
''
|
52
|
+
],
|
53
|
+
pricescale = 56,
|
54
|
+
ticker = ''
|
55
|
+
)
|
56
|
+
else:
|
57
|
+
return SymbolInfoResponse(
|
58
|
+
name = '',
|
59
|
+
exchange_traded = '',
|
60
|
+
exchange_listed = '',
|
61
|
+
timezone = '',
|
62
|
+
minmov = 56,
|
63
|
+
minmov2 = 56,
|
64
|
+
pointvalue = 56,
|
65
|
+
session = '',
|
66
|
+
has_intraday = True,
|
67
|
+
has_no_volume = True,
|
68
|
+
description = '',
|
69
|
+
type = '',
|
70
|
+
supported_resolutions = [
|
71
|
+
''
|
72
|
+
],
|
73
|
+
pricescale = 56,
|
74
|
+
ticker = '',
|
75
|
+
)
|
76
|
+
"""
|
77
|
+
|
78
|
+
def testSymbolInfoResponse(self):
|
79
|
+
"""Test SymbolInfoResponse"""
|
80
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
81
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
82
|
+
|
83
|
+
if __name__ == '__main__':
|
84
|
+
unittest.main()
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.symbol_type import SymbolType
|
18
|
+
|
19
|
+
class TestSymbolType(unittest.TestCase):
|
20
|
+
"""SymbolType unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> SymbolType:
|
29
|
+
"""Test SymbolType
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `SymbolType`
|
34
|
+
"""
|
35
|
+
model = SymbolType()
|
36
|
+
if include_optional:
|
37
|
+
return SymbolType(
|
38
|
+
name = '',
|
39
|
+
value = ''
|
40
|
+
)
|
41
|
+
else:
|
42
|
+
return SymbolType(
|
43
|
+
name = '',
|
44
|
+
value = '',
|
45
|
+
)
|
46
|
+
"""
|
47
|
+
|
48
|
+
def testSymbolType(self):
|
49
|
+
"""Test SymbolType"""
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
52
|
+
|
53
|
+
if __name__ == '__main__':
|
54
|
+
unittest.main()
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.api.symbols_api import SymbolsApi
|
18
|
+
|
19
|
+
|
20
|
+
class TestSymbolsApi(unittest.TestCase):
|
21
|
+
"""SymbolsApi unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self) -> None:
|
24
|
+
self.api = SymbolsApi()
|
25
|
+
|
26
|
+
def tearDown(self) -> None:
|
27
|
+
pass
|
28
|
+
|
29
|
+
def test_symbols_symbols_market_get(self) -> None:
|
30
|
+
"""Test case for symbols_symbols_market_get
|
31
|
+
|
32
|
+
Symbols
|
33
|
+
"""
|
34
|
+
pass
|
35
|
+
|
36
|
+
|
37
|
+
if __name__ == '__main__':
|
38
|
+
unittest.main()
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.timeframe import Timeframe
|
18
|
+
|
19
|
+
class TestTimeframe(unittest.TestCase):
|
20
|
+
"""Timeframe unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def testTimeframe(self):
|
29
|
+
"""Test Timeframe"""
|
30
|
+
# inst = Timeframe()
|
31
|
+
|
32
|
+
if __name__ == '__main__':
|
33
|
+
unittest.main()
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.api.udf_api import UDFApi
|
18
|
+
|
19
|
+
|
20
|
+
class TestUDFApi(unittest.TestCase):
|
21
|
+
"""UDFApi unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self) -> None:
|
24
|
+
self.api = UDFApi()
|
25
|
+
|
26
|
+
def tearDown(self) -> None:
|
27
|
+
pass
|
28
|
+
|
29
|
+
def test_get_config_udf_config_get(self) -> None:
|
30
|
+
"""Test case for get_config_udf_config_get
|
31
|
+
|
32
|
+
Get Config
|
33
|
+
"""
|
34
|
+
pass
|
35
|
+
|
36
|
+
def test_get_history_udf_history_get(self) -> None:
|
37
|
+
"""Test case for get_history_udf_history_get
|
38
|
+
|
39
|
+
Get History
|
40
|
+
"""
|
41
|
+
pass
|
42
|
+
|
43
|
+
def test_get_server_time_udf_time_get(self) -> None:
|
44
|
+
"""Test case for get_server_time_udf_time_get
|
45
|
+
|
46
|
+
Get Server Time
|
47
|
+
"""
|
48
|
+
pass
|
49
|
+
|
50
|
+
def test_get_symbol_info_udf_symbol_info_get(self) -> None:
|
51
|
+
"""Test case for get_symbol_info_udf_symbol_info_get
|
52
|
+
|
53
|
+
Get Symbol Info
|
54
|
+
"""
|
55
|
+
pass
|
56
|
+
|
57
|
+
def test_get_symbol_udf_symbols_get(self) -> None:
|
58
|
+
"""Test case for get_symbol_udf_symbols_get
|
59
|
+
|
60
|
+
Get Symbol
|
61
|
+
"""
|
62
|
+
pass
|
63
|
+
|
64
|
+
def test_options_handler_udf_path_options(self) -> None:
|
65
|
+
"""Test case for options_handler_udf_path_options
|
66
|
+
|
67
|
+
Options Handler
|
68
|
+
"""
|
69
|
+
pass
|
70
|
+
|
71
|
+
def test_search_symbols_udf_search_get(self) -> None:
|
72
|
+
"""Test case for search_symbols_udf_search_get
|
73
|
+
|
74
|
+
Search Symbols
|
75
|
+
"""
|
76
|
+
pass
|
77
|
+
|
78
|
+
|
79
|
+
if __name__ == '__main__':
|
80
|
+
unittest.main()
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.udf_config_response import UDFConfigResponse
|
18
|
+
|
19
|
+
class TestUDFConfigResponse(unittest.TestCase):
|
20
|
+
"""UDFConfigResponse unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> UDFConfigResponse:
|
29
|
+
"""Test UDFConfigResponse
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `UDFConfigResponse`
|
34
|
+
"""
|
35
|
+
model = UDFConfigResponse()
|
36
|
+
if include_optional:
|
37
|
+
return UDFConfigResponse(
|
38
|
+
supported_resolutions = [
|
39
|
+
''
|
40
|
+
],
|
41
|
+
supports_group_request = True,
|
42
|
+
supports_marks = True,
|
43
|
+
supports_search = True,
|
44
|
+
supports_timescale_marks = True,
|
45
|
+
supports_time = True,
|
46
|
+
exchanges = [
|
47
|
+
client.models.exchange.Exchange(
|
48
|
+
value = '',
|
49
|
+
name = '',
|
50
|
+
desc = '', )
|
51
|
+
],
|
52
|
+
symbols_types = [
|
53
|
+
client.models.symbol_type.SymbolType(
|
54
|
+
name = '',
|
55
|
+
value = '', )
|
56
|
+
],
|
57
|
+
currency_codes = [
|
58
|
+
''
|
59
|
+
],
|
60
|
+
supported_markets = [
|
61
|
+
''
|
62
|
+
]
|
63
|
+
)
|
64
|
+
else:
|
65
|
+
return UDFConfigResponse(
|
66
|
+
supported_resolutions = [
|
67
|
+
''
|
68
|
+
],
|
69
|
+
exchanges = [
|
70
|
+
client.models.exchange.Exchange(
|
71
|
+
value = '',
|
72
|
+
name = '',
|
73
|
+
desc = '', )
|
74
|
+
],
|
75
|
+
symbols_types = [
|
76
|
+
client.models.symbol_type.SymbolType(
|
77
|
+
name = '',
|
78
|
+
value = '', )
|
79
|
+
],
|
80
|
+
currency_codes = [
|
81
|
+
''
|
82
|
+
],
|
83
|
+
supported_markets = [
|
84
|
+
''
|
85
|
+
],
|
86
|
+
)
|
87
|
+
"""
|
88
|
+
|
89
|
+
def testUDFConfigResponse(self):
|
90
|
+
"""Test UDFConfigResponse"""
|
91
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
92
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
93
|
+
|
94
|
+
if __name__ == '__main__':
|
95
|
+
unittest.main()
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Klines Service API
|
5
|
+
|
6
|
+
API for retrieving OHLCV data, funding rates, and symbol information from Binance. ## WebSocket Support Connect to `/ws` to receive real-time OHLCV updates. Example subscription message: ```json { \"action\": \"subscribe\", \"market\": \"spot\", \"symbol\": \"BTCUSDT\", \"timeframe\": \"15m\" } ```
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from crypticorn.klines.client.models.validation_error import ValidationError
|
18
|
+
|
19
|
+
class TestValidationError(unittest.TestCase):
|
20
|
+
"""ValidationError unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> ValidationError:
|
29
|
+
"""Test ValidationError
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `ValidationError`
|
34
|
+
"""
|
35
|
+
model = ValidationError()
|
36
|
+
if include_optional:
|
37
|
+
return ValidationError(
|
38
|
+
loc = [
|
39
|
+
null
|
40
|
+
],
|
41
|
+
msg = '',
|
42
|
+
type = ''
|
43
|
+
)
|
44
|
+
else:
|
45
|
+
return ValidationError(
|
46
|
+
loc = [
|
47
|
+
null
|
48
|
+
],
|
49
|
+
msg = '',
|
50
|
+
type = '',
|
51
|
+
)
|
52
|
+
"""
|
53
|
+
|
54
|
+
def testValidationError(self):
|
55
|
+
"""Test ValidationError"""
|
56
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
57
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
58
|
+
|
59
|
+
if __name__ == '__main__':
|
60
|
+
unittest.main()
|