crypticorn 1.0.2rc1__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.
Files changed (50) hide show
  1. crypticorn/client.py +3 -3
  2. crypticorn/hive/__init__.py +1 -0
  3. crypticorn/klines/__init__.py +2 -0
  4. crypticorn/klines/main.py +1 -1
  5. crypticorn/trade/__init__.py +2 -0
  6. crypticorn/trade/client/models/action_model.py +4 -4
  7. crypticorn/trade/client/models/api_key_model.py +4 -4
  8. crypticorn/trade/client/models/bot_model.py +4 -4
  9. crypticorn/trade/client/models/notification_model.py +4 -4
  10. crypticorn/trade/client/models/order_model.py +4 -4
  11. crypticorn/trade/client/models/strategy_model.py +4 -4
  12. crypticorn/trade/main.py +3 -2
  13. {crypticorn-1.0.2rc1.dist-info → crypticorn-1.0.2rc2.dist-info}/METADATA +16 -16
  14. {crypticorn-1.0.2rc1.dist-info → crypticorn-1.0.2rc2.dist-info}/RECORD +17 -47
  15. crypticorn/trade/test/__init__.py +0 -0
  16. crypticorn/trade/test/test_action_model.py +0 -87
  17. crypticorn/trade/test/test_api_error_identifier.py +0 -33
  18. crypticorn/trade/test/test_api_key_model.py +0 -61
  19. crypticorn/trade/test/test_api_keys_api.py +0 -66
  20. crypticorn/trade/test/test_bot_model.py +0 -64
  21. crypticorn/trade/test/test_bots_api.py +0 -59
  22. crypticorn/trade/test/test_exchange.py +0 -33
  23. crypticorn/trade/test/test_exchanges_api.py +0 -38
  24. crypticorn/trade/test/test_execution_ids.py +0 -68
  25. crypticorn/trade/test/test_futures_balance.py +0 -62
  26. crypticorn/trade/test/test_futures_trading_action.py +0 -86
  27. crypticorn/trade/test/test_futures_trading_panel_api.py +0 -66
  28. crypticorn/trade/test/test_http_validation_error.py +0 -58
  29. crypticorn/trade/test/test_margin_mode.py +0 -33
  30. crypticorn/trade/test/test_market_type.py +0 -33
  31. crypticorn/trade/test/test_notification_model.py +0 -59
  32. crypticorn/trade/test/test_notification_type.py +0 -33
  33. crypticorn/trade/test/test_notifications_api.py +0 -73
  34. crypticorn/trade/test/test_order_model.py +0 -75
  35. crypticorn/trade/test/test_order_status.py +0 -33
  36. crypticorn/trade/test/test_orders_api.py +0 -38
  37. crypticorn/trade/test/test_post_futures_action.py +0 -72
  38. crypticorn/trade/test/test_status_api.py +0 -38
  39. crypticorn/trade/test/test_strategies_api.py +0 -38
  40. crypticorn/trade/test/test_strategy_exchange_info.py +0 -54
  41. crypticorn/trade/test/test_strategy_model.py +0 -73
  42. crypticorn/trade/test/test_tpsl.py +0 -56
  43. crypticorn/trade/test/test_trading_action_type.py +0 -33
  44. crypticorn/trade/test/test_trading_actions_api.py +0 -52
  45. crypticorn/trade/test/test_update_notification.py +0 -54
  46. crypticorn/trade/test/test_validation_error.py +0 -60
  47. crypticorn/trade/test/test_validation_error_loc_inner.py +0 -50
  48. {crypticorn-1.0.2rc1.dist-info → crypticorn-1.0.2rc2.dist-info}/LICENSE.md +0 -0
  49. {crypticorn-1.0.2rc1.dist-info → crypticorn-1.0.2rc2.dist-info}/WHEEL +0 -0
  50. {crypticorn-1.0.2rc1.dist-info → crypticorn-1.0.2rc2.dist-info}/top_level.txt +0 -0
@@ -1,64 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.bot_model import BotModel
18
-
19
- class TestBotModel(unittest.TestCase):
20
- """BotModel 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) -> BotModel:
29
- """Test BotModel
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 `BotModel`
34
- """
35
- model = BotModel()
36
- if include_optional:
37
- return BotModel(
38
- id = '',
39
- name = '',
40
- strategy_id = '',
41
- api_key_id = '',
42
- initial_allocation = 1.337,
43
- current_allocation = 1.337,
44
- enabled = True,
45
- deleted = True,
46
- user_id = ''
47
- )
48
- else:
49
- return BotModel(
50
- name = '',
51
- strategy_id = '',
52
- api_key_id = '',
53
- initial_allocation = 1.337,
54
- enabled = True,
55
- )
56
- """
57
-
58
- def testBotModel(self):
59
- """Test BotModel"""
60
- # inst_req_only = self.make_instance(include_optional=False)
61
- # inst_req_and_optional = self.make_instance(include_optional=True)
62
-
63
- if __name__ == '__main__':
64
- unittest.main()
@@ -1,59 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.api.bots_api import BotsApi
18
-
19
-
20
- class TestBotsApi(unittest.TestCase):
21
- """BotsApi unit test stubs"""
22
-
23
- def setUp(self) -> None:
24
- self.api = BotsApi()
25
-
26
- def tearDown(self) -> None:
27
- pass
28
-
29
- def test_create_bot(self) -> None:
30
- """Test case for create_bot
31
-
32
- Create Bot
33
- """
34
- pass
35
-
36
- def test_delete_bot(self) -> None:
37
- """Test case for delete_bot
38
-
39
- Delete Bot
40
- """
41
- pass
42
-
43
- def test_get_bots(self) -> None:
44
- """Test case for get_bots
45
-
46
- Get Bots
47
- """
48
- pass
49
-
50
- def test_update_bot(self) -> None:
51
- """Test case for update_bot
52
-
53
- Update Bot
54
- """
55
- pass
56
-
57
-
58
- if __name__ == '__main__':
59
- unittest.main()
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.exchange import Exchange
18
-
19
- class TestExchange(unittest.TestCase):
20
- """Exchange unit test stubs"""
21
-
22
- def setUp(self):
23
- pass
24
-
25
- def tearDown(self):
26
- pass
27
-
28
- def testExchange(self):
29
- """Test Exchange"""
30
- # inst = Exchange()
31
-
32
- if __name__ == '__main__':
33
- unittest.main()
@@ -1,38 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.api.exchanges_api import ExchangesApi
18
-
19
-
20
- class TestExchangesApi(unittest.TestCase):
21
- """ExchangesApi unit test stubs"""
22
-
23
- def setUp(self) -> None:
24
- self.api = ExchangesApi()
25
-
26
- def tearDown(self) -> None:
27
- pass
28
-
29
- def test_get_exchanges(self) -> None:
30
- """Test case for get_exchanges
31
-
32
- Get Exchanges
33
- """
34
- pass
35
-
36
-
37
- if __name__ == '__main__':
38
- unittest.main()
@@ -1,68 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.execution_ids import ExecutionIds
18
-
19
- class TestExecutionIds(unittest.TestCase):
20
- """ExecutionIds 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) -> ExecutionIds:
29
- """Test ExecutionIds
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 `ExecutionIds`
34
- """
35
- model = ExecutionIds()
36
- if include_optional:
37
- return ExecutionIds(
38
- main = [
39
- ''
40
- ],
41
- sl = [
42
- ''
43
- ],
44
- tp = [
45
- ''
46
- ]
47
- )
48
- else:
49
- return ExecutionIds(
50
- main = [
51
- ''
52
- ],
53
- sl = [
54
- ''
55
- ],
56
- tp = [
57
- ''
58
- ],
59
- )
60
- """
61
-
62
- def testExecutionIds(self):
63
- """Test ExecutionIds"""
64
- # inst_req_only = self.make_instance(include_optional=False)
65
- # inst_req_and_optional = self.make_instance(include_optional=True)
66
-
67
- if __name__ == '__main__':
68
- unittest.main()
@@ -1,62 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.futures_balance import FuturesBalance
18
-
19
- class TestFuturesBalance(unittest.TestCase):
20
- """FuturesBalance 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) -> FuturesBalance:
29
- """Test FuturesBalance
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 `FuturesBalance`
34
- """
35
- model = FuturesBalance()
36
- if include_optional:
37
- return FuturesBalance(
38
- api_key_id = '',
39
- asset = '',
40
- balance = 1.337,
41
- available = 1.337,
42
- unrealized_pnl = 1.337,
43
- used_margin = 1.337,
44
- frozen_amount = 1.337
45
- )
46
- else:
47
- return FuturesBalance(
48
- api_key_id = '',
49
- asset = '',
50
- balance = 1.337,
51
- available = 1.337,
52
- unrealized_pnl = 1.337,
53
- )
54
- """
55
-
56
- def testFuturesBalance(self):
57
- """Test FuturesBalance"""
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()
@@ -1,86 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.futures_trading_action import FuturesTradingAction
18
-
19
- class TestFuturesTradingAction(unittest.TestCase):
20
- """FuturesTradingAction 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) -> FuturesTradingAction:
29
- """Test FuturesTradingAction
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 `FuturesTradingAction`
34
- """
35
- model = FuturesTradingAction()
36
- if include_optional:
37
- return FuturesTradingAction(
38
- id = '',
39
- execution_id = '',
40
- open_order_execution_id = '',
41
- position_id = '',
42
- client_order_id = '',
43
- action_type = 'open_long',
44
- market_type = 'spot',
45
- strategy_id = '',
46
- symbol = '',
47
- is_limit = True,
48
- limit_price = 1.337,
49
- allocation = 1.337,
50
- take_profit = [
51
- client.models.tpsl.TPSL(
52
- price_delta = 0.0,
53
- price = 1.337,
54
- allocation = 0.0,
55
- execution_id = '',
56
- client_order_id = '', )
57
- ],
58
- stop_loss = [
59
- client.models.tpsl.TPSL(
60
- price_delta = 0.0,
61
- price = 1.337,
62
- allocation = 0.0,
63
- execution_id = '',
64
- client_order_id = '', )
65
- ],
66
- expiry_timestamp = 56,
67
- leverage = 1.0,
68
- margin_mode = 'isolated'
69
- )
70
- else:
71
- return FuturesTradingAction(
72
- action_type = 'open_long',
73
- market_type = 'spot',
74
- strategy_id = '',
75
- symbol = '',
76
- leverage = 1.0,
77
- )
78
- """
79
-
80
- def testFuturesTradingAction(self):
81
- """Test FuturesTradingAction"""
82
- # inst_req_only = self.make_instance(include_optional=False)
83
- # inst_req_and_optional = self.make_instance(include_optional=True)
84
-
85
- if __name__ == '__main__':
86
- unittest.main()
@@ -1,66 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.api.futures_trading_panel_api import FuturesTradingPanelApi
18
-
19
-
20
- class TestFuturesTradingPanelApi(unittest.TestCase):
21
- """FuturesTradingPanelApi unit test stubs"""
22
-
23
- def setUp(self) -> None:
24
- self.api = FuturesTradingPanelApi()
25
-
26
- def tearDown(self) -> None:
27
- pass
28
-
29
- def test_cancel_futures_order(self) -> None:
30
- """Test case for cancel_futures_order
31
-
32
- Cancel Order
33
- """
34
- pass
35
-
36
- def test_get_futures_balance(self) -> None:
37
- """Test case for get_futures_balance
38
-
39
- Get Futures Balance
40
- """
41
- pass
42
-
43
- def test_get_futures_ledger(self) -> None:
44
- """Test case for get_futures_ledger
45
-
46
- Get Futures Ledger
47
- """
48
- pass
49
-
50
- def test_get_historical_futures_orders(self) -> None:
51
- """Test case for get_historical_futures_orders
52
-
53
- Get Historical Futures Orders
54
- """
55
- pass
56
-
57
- def test_place_futures_order(self) -> None:
58
- """Test case for place_futures_order
59
-
60
- Place Order
61
- """
62
- pass
63
-
64
-
65
- if __name__ == '__main__':
66
- unittest.main()
@@ -1,58 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.http_validation_error import HTTPValidationError
18
-
19
- class TestHTTPValidationError(unittest.TestCase):
20
- """HTTPValidationError 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) -> HTTPValidationError:
29
- """Test HTTPValidationError
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 `HTTPValidationError`
34
- """
35
- model = HTTPValidationError()
36
- if include_optional:
37
- return HTTPValidationError(
38
- detail = [
39
- client.models.validation_error.ValidationError(
40
- loc = [
41
- null
42
- ],
43
- msg = '',
44
- type = '', )
45
- ]
46
- )
47
- else:
48
- return HTTPValidationError(
49
- )
50
- """
51
-
52
- def testHTTPValidationError(self):
53
- """Test HTTPValidationError"""
54
- # inst_req_only = self.make_instance(include_optional=False)
55
- # inst_req_and_optional = self.make_instance(include_optional=True)
56
-
57
- if __name__ == '__main__':
58
- unittest.main()
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.margin_mode import MarginMode
18
-
19
- class TestMarginMode(unittest.TestCase):
20
- """MarginMode unit test stubs"""
21
-
22
- def setUp(self):
23
- pass
24
-
25
- def tearDown(self):
26
- pass
27
-
28
- def testMarginMode(self):
29
- """Test MarginMode"""
30
- # inst = MarginMode()
31
-
32
- if __name__ == '__main__':
33
- unittest.main()
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.market_type import MarketType
18
-
19
- class TestMarketType(unittest.TestCase):
20
- """MarketType unit test stubs"""
21
-
22
- def setUp(self):
23
- pass
24
-
25
- def tearDown(self):
26
- pass
27
-
28
- def testMarketType(self):
29
- """Test MarketType"""
30
- # inst = MarketType()
31
-
32
- if __name__ == '__main__':
33
- unittest.main()
@@ -1,59 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.notification_model import NotificationModel
18
-
19
- class TestNotificationModel(unittest.TestCase):
20
- """NotificationModel 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) -> NotificationModel:
29
- """Test NotificationModel
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 `NotificationModel`
34
- """
35
- model = NotificationModel()
36
- if include_optional:
37
- return NotificationModel(
38
- id = '',
39
- identifier = 'success',
40
- user_id = '',
41
- viewed = True,
42
- sent = True,
43
- type = 'error',
44
- timestamp = 56
45
- )
46
- else:
47
- return NotificationModel(
48
- identifier = 'success',
49
- type = 'error',
50
- )
51
- """
52
-
53
- def testNotificationModel(self):
54
- """Test NotificationModel"""
55
- # inst_req_only = self.make_instance(include_optional=False)
56
- # inst_req_and_optional = self.make_instance(include_optional=True)
57
-
58
- if __name__ == '__main__':
59
- unittest.main()
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- FastAPI
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 0.1.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.trade.client.models.notification_type import NotificationType
18
-
19
- class TestNotificationType(unittest.TestCase):
20
- """NotificationType unit test stubs"""
21
-
22
- def setUp(self):
23
- pass
24
-
25
- def tearDown(self):
26
- pass
27
-
28
- def testNotificationType(self):
29
- """Test NotificationType"""
30
- # inst = NotificationType()
31
-
32
- if __name__ == '__main__':
33
- unittest.main()