kwcli 0.1.0__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.
- kiwoom/__init__.py +47 -0
- kiwoom/_data/kiwoom_api_spec.json +66372 -0
- kiwoom/core/__init__.py +6 -0
- kiwoom/core/auth.py +349 -0
- kiwoom/core/client.py +244 -0
- kiwoom/core/errors.py +177 -0
- kiwoom/core/platform_paths.py +68 -0
- kiwoom/core/profiles.py +143 -0
- kiwoom/core/runtime.py +153 -0
- kiwoom/core/secrets.py +217 -0
- kiwoom/core/settings.py +64 -0
- kiwoom/core/token_store.py +186 -0
- kiwoom/core/types.py +28 -0
- kiwoom/core/ws_client.py +262 -0
- kiwoom/realtime/__init__.py +30 -0
- kiwoom/realtime/decoders.py +171 -0
- kiwoom/realtime/events.py +98 -0
- kiwoom/realtime/packets.py +65 -0
- kiwoom/realtime/schemas.py +76 -0
- kiwoom/realtime/stream.py +213 -0
- kiwoom/specs.py +272 -0
- kiwoom_cli/README.md +671 -0
- kiwoom_cli/__init__.py +9 -0
- kiwoom_cli/__main__.py +5 -0
- kiwoom_cli/argument_maps.py +561 -0
- kiwoom_cli/arguments.py +147 -0
- kiwoom_cli/auth_context.py +64 -0
- kiwoom_cli/banner.py +125 -0
- kiwoom_cli/commands/__init__.py +1 -0
- kiwoom_cli/commands/auth.py +406 -0
- kiwoom_cli/commands/groups.py +281 -0
- kiwoom_cli/commands/mapped.py +74 -0
- kiwoom_cli/commands/orders.py +158 -0
- kiwoom_cli/commands/spec.py +98 -0
- kiwoom_cli/commands/stocks.py +100 -0
- kiwoom_cli/commands/streams.py +470 -0
- kiwoom_cli/doctor.py +324 -0
- kiwoom_cli/errors.py +24 -0
- kiwoom_cli/executor/__init__.py +33 -0
- kiwoom_cli/executor/condition.py +374 -0
- kiwoom_cli/executor/rest.py +132 -0
- kiwoom_cli/executor/waits.py +34 -0
- kiwoom_cli/executor/websocket.py +131 -0
- kiwoom_cli/main.py +203 -0
- kiwoom_cli/maps/README.md +99 -0
- kiwoom_cli/maps/api_commands.csv +209 -0
- kiwoom_cli/maps/arguments.csv +731 -0
- kiwoom_cli/maps/order_confirmation_commands.csv +13 -0
- kiwoom_cli/maps/order_confirmation_fields.csv +71 -0
- kiwoom_cli/maps/order_price_policies.csv +47 -0
- kiwoom_cli/maps/order_value_labels.csv +28 -0
- kiwoom_cli/maps/positional_arguments.csv +21 -0
- kiwoom_cli/order_confirmation.py +167 -0
- kiwoom_cli/output.py +136 -0
- kiwoom_cli/registry.py +95 -0
- kiwoom_cli/safety.py +30 -0
- kiwoom_cli/setup.py +533 -0
- kwcli-0.1.0.dist-info/METADATA +215 -0
- kwcli-0.1.0.dist-info/RECORD +62 -0
- kwcli-0.1.0.dist-info/WHEEL +4 -0
- kwcli-0.1.0.dist-info/entry_points.txt +2 -0
- kwcli-0.1.0.dist-info/licenses/LICENSE.md +36 -0
kiwoom/__init__.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from kiwoom.core.auth import KiwoomAuth
|
|
2
|
+
from kiwoom.core.client import KiwoomClient
|
|
3
|
+
from kiwoom.core.errors import KiwoomError
|
|
4
|
+
from kiwoom.core.profiles import (
|
|
5
|
+
AuthProfile,
|
|
6
|
+
get_current_profile,
|
|
7
|
+
get_profile,
|
|
8
|
+
load_profiles,
|
|
9
|
+
set_current_profile,
|
|
10
|
+
)
|
|
11
|
+
from kiwoom.core.runtime import (
|
|
12
|
+
SelectionContext,
|
|
13
|
+
describe_selection,
|
|
14
|
+
get_auth,
|
|
15
|
+
get_base_url,
|
|
16
|
+
get_client,
|
|
17
|
+
get_ws_base_url,
|
|
18
|
+
get_ws_client,
|
|
19
|
+
resolve_mode,
|
|
20
|
+
)
|
|
21
|
+
from kiwoom.specs import search_api_specs
|
|
22
|
+
from kiwoom.core.types import Continuation, KiwoomResponse, Mode
|
|
23
|
+
from kiwoom.core.ws_client import KiwoomWebSocketClient
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"AuthProfile",
|
|
27
|
+
"Continuation",
|
|
28
|
+
"KiwoomAuth",
|
|
29
|
+
"KiwoomClient",
|
|
30
|
+
"KiwoomError",
|
|
31
|
+
"KiwoomWebSocketClient",
|
|
32
|
+
"KiwoomResponse",
|
|
33
|
+
"Mode",
|
|
34
|
+
"SelectionContext",
|
|
35
|
+
"describe_selection",
|
|
36
|
+
"get_auth",
|
|
37
|
+
"get_base_url",
|
|
38
|
+
"get_client",
|
|
39
|
+
"get_current_profile",
|
|
40
|
+
"get_profile",
|
|
41
|
+
"get_ws_base_url",
|
|
42
|
+
"get_ws_client",
|
|
43
|
+
"load_profiles",
|
|
44
|
+
"resolve_mode",
|
|
45
|
+
"search_api_specs",
|
|
46
|
+
"set_current_profile",
|
|
47
|
+
]
|