upbit-sdk 0.9.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.
- upbit/__init__.py +105 -0
- upbit/_base_client.py +2167 -0
- upbit/_client.py +1080 -0
- upbit/_compat.py +226 -0
- upbit/_constants.py +13 -0
- upbit/_exceptions.py +118 -0
- upbit/_files.py +123 -0
- upbit/_models.py +887 -0
- upbit/_qs.py +153 -0
- upbit/_resource.py +42 -0
- upbit/_response.py +833 -0
- upbit/_streaming.py +338 -0
- upbit/_types.py +271 -0
- upbit/_utils/__init__.py +65 -0
- upbit/_utils/_compat.py +45 -0
- upbit/_utils/_datetime_parse.py +143 -0
- upbit/_utils/_json.py +35 -0
- upbit/_utils/_logs.py +25 -0
- upbit/_utils/_path.py +127 -0
- upbit/_utils/_proxy.py +65 -0
- upbit/_utils/_reflection.py +42 -0
- upbit/_utils/_resources_proxy.py +24 -0
- upbit/_utils/_streams.py +12 -0
- upbit/_utils/_sync.py +58 -0
- upbit/_utils/_transform.py +457 -0
- upbit/_utils/_typing.py +156 -0
- upbit/_utils/_utils.py +423 -0
- upbit/_version.py +3 -0
- upbit/lib/__init__.py +1 -0
- upbit/lib/jwt_auth.py +47 -0
- upbit/lib/ws/__init__.py +6 -0
- upbit/lib/ws/_async.py +200 -0
- upbit/lib/ws/_common.py +57 -0
- upbit/lib/ws/_sync.py +194 -0
- upbit/pagination.py +138 -0
- upbit/py.typed +0 -0
- upbit/resources/__init__.py +178 -0
- upbit/resources/accounts.py +148 -0
- upbit/resources/api_keys.py +148 -0
- upbit/resources/candles.py +924 -0
- upbit/resources/deposits.py +973 -0
- upbit/resources/orderbooks.py +335 -0
- upbit/resources/orders.py +1752 -0
- upbit/resources/tickers.py +307 -0
- upbit/resources/trades.py +248 -0
- upbit/resources/trading_pairs.py +188 -0
- upbit/resources/travel_rule.py +393 -0
- upbit/resources/wallet_status.py +148 -0
- upbit/resources/withdraws.py +990 -0
- upbit/resources/ws_private.py +396 -0
- upbit/resources/ws_public.py +392 -0
- upbit/types/__init__.py +101 -0
- upbit/types/account_list_response.py +33 -0
- upbit/types/api_key_list_response.py +21 -0
- upbit/types/batch_cancel_result.py +62 -0
- upbit/types/candle.py +57 -0
- upbit/types/candle_list_days_params.py +34 -0
- upbit/types/candle_list_days_response.py +27 -0
- upbit/types/candle_list_minutes_params.py +27 -0
- upbit/types/candle_list_minutes_response.py +9 -0
- upbit/types/candle_list_months_params.py +22 -0
- upbit/types/candle_list_months_response.py +9 -0
- upbit/types/candle_list_seconds_params.py +31 -0
- upbit/types/candle_list_seconds_response.py +9 -0
- upbit/types/candle_list_weeks_params.py +20 -0
- upbit/types/candle_list_weeks_response.py +9 -0
- upbit/types/candle_list_years_params.py +17 -0
- upbit/types/candle_list_years_response.py +9 -0
- upbit/types/candle_period.py +9 -0
- upbit/types/closed_order_state.py +6 -0
- upbit/types/connect_private_client_event.py +76 -0
- upbit/types/connect_private_client_event_param.py +80 -0
- upbit/types/connect_private_server_event.py +137 -0
- upbit/types/connect_public_client_event.py +182 -0
- upbit/types/connect_public_client_event_param.py +184 -0
- upbit/types/connect_public_server_event.py +280 -0
- upbit/types/deposit.py +65 -0
- upbit/types/deposit_address.py +25 -0
- upbit/types/deposit_create_coin_address_params.py +14 -0
- upbit/types/deposit_create_coin_address_response.py +19 -0
- upbit/types/deposit_deposit_krw_params.py +19 -0
- upbit/types/deposit_list_coin_addresses_response.py +9 -0
- upbit/types/deposit_list_params.py +59 -0
- upbit/types/deposit_retrieve_chance_params.py +17 -0
- upbit/types/deposit_retrieve_chance_response.py +40 -0
- upbit/types/deposit_retrieve_coin_address_params.py +17 -0
- upbit/types/deposit_retrieve_params.py +23 -0
- upbit/types/open_order_state.py +6 -0
- upbit/types/ord_type_enum.py +6 -0
- upbit/types/order.py +118 -0
- upbit/types/order_cancel_and_new_params.py +36 -0
- upbit/types/order_cancel_by_uuids_params.py +22 -0
- upbit/types/order_cancel_open_params.py +46 -0
- upbit/types/order_cancel_params.py +17 -0
- upbit/types/order_create_params.py +37 -0
- upbit/types/order_list_by_uuids_params.py +28 -0
- upbit/types/order_list_by_uuids_response.py +9 -0
- upbit/types/order_list_closed_params.py +48 -0
- upbit/types/order_list_closed_response.py +9 -0
- upbit/types/order_list_open_params.py +32 -0
- upbit/types/order_retrieve_chance_params.py +11 -0
- upbit/types/order_retrieve_chance_response.py +131 -0
- upbit/types/order_retrieve_params.py +17 -0
- upbit/types/order_test_create_params.py +37 -0
- upbit/types/orderbook_list_instruments_params.py +14 -0
- upbit/types/orderbook_list_instruments_response.py +28 -0
- upbit/types/orderbook_list_params.py +29 -0
- upbit/types/orderbook_list_response.py +46 -0
- upbit/types/side_enum.py +6 -0
- upbit/types/smp_type_enum.py +6 -0
- upbit/types/ticker.py +129 -0
- upbit/types/ticker_list_by_quote_currencies_params.py +16 -0
- upbit/types/ticker_list_by_quote_currencies_response.py +9 -0
- upbit/types/ticker_list_by_trading_pairs_params.py +16 -0
- upbit/types/ticker_list_by_trading_pairs_response.py +9 -0
- upbit/types/time_in_force_enum.py +6 -0
- upbit/types/trade_list_params.py +41 -0
- upbit/types/trade_list_response.py +58 -0
- upbit/types/trading_pair_list_params.py +14 -0
- upbit/types/trading_pair_list_response.py +72 -0
- upbit/types/travel_rule_list_vasps_response.py +27 -0
- upbit/types/travel_rule_verify_deposit_by_txid_params.py +26 -0
- upbit/types/travel_rule_verify_deposit_by_uuid_params.py +17 -0
- upbit/types/verification_result.py +29 -0
- upbit/types/wallet_status_list_response.py +61 -0
- upbit/types/websocket_connection_options.py +35 -0
- upbit/types/withdraw.py +62 -0
- upbit/types/withdraw_cancel_withdrawal_params.py +11 -0
- upbit/types/withdraw_create_krw_withdrawal_params.py +22 -0
- upbit/types/withdraw_create_krw_withdrawal_response.py +62 -0
- upbit/types/withdraw_create_withdrawal_params.py +43 -0
- upbit/types/withdraw_list_coin_addresses_response.py +71 -0
- upbit/types/withdraw_list_params.py +60 -0
- upbit/types/withdraw_retrieve_chance_params.py +17 -0
- upbit/types/withdraw_retrieve_chance_response.py +127 -0
- upbit/types/withdraw_retrieve_params.py +23 -0
- upbit_sdk-0.9.0.dist-info/METADATA +466 -0
- upbit_sdk-0.9.0.dist-info/RECORD +140 -0
- upbit_sdk-0.9.0.dist-info/WHEEL +4 -0
- upbit_sdk-0.9.0.dist-info/licenses/LICENSE +201 -0
upbit/__init__.py
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
|
|
2
|
+
import typing as _t
|
|
3
|
+
|
|
4
|
+
from . import types
|
|
5
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
|
|
6
|
+
from ._utils import file_from_path
|
|
7
|
+
from ._client import (
|
|
8
|
+
ENVIRONMENTS,
|
|
9
|
+
Upbit,
|
|
10
|
+
Client,
|
|
11
|
+
Stream,
|
|
12
|
+
Timeout,
|
|
13
|
+
Transport,
|
|
14
|
+
AsyncUpbit,
|
|
15
|
+
AsyncClient,
|
|
16
|
+
AsyncStream,
|
|
17
|
+
RequestOptions,
|
|
18
|
+
)
|
|
19
|
+
from ._models import BaseModel
|
|
20
|
+
from ._version import __title__, __version__
|
|
21
|
+
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
|
|
22
|
+
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
|
|
23
|
+
from ._exceptions import (
|
|
24
|
+
APIError,
|
|
25
|
+
UpbitError,
|
|
26
|
+
ConflictError,
|
|
27
|
+
NotFoundError,
|
|
28
|
+
APIStatusError,
|
|
29
|
+
RateLimitError,
|
|
30
|
+
APITimeoutError,
|
|
31
|
+
BadRequestError,
|
|
32
|
+
APIConnectionError,
|
|
33
|
+
AuthenticationError,
|
|
34
|
+
InternalServerError,
|
|
35
|
+
PermissionDeniedError,
|
|
36
|
+
RateLimitPenaltyError,
|
|
37
|
+
UnprocessableEntityError,
|
|
38
|
+
APIResponseValidationError,
|
|
39
|
+
)
|
|
40
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
41
|
+
from ._utils._logs import setup_logging as _setup_logging
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"types",
|
|
45
|
+
"__version__",
|
|
46
|
+
"__title__",
|
|
47
|
+
"NoneType",
|
|
48
|
+
"Transport",
|
|
49
|
+
"ProxiesTypes",
|
|
50
|
+
"NotGiven",
|
|
51
|
+
"NOT_GIVEN",
|
|
52
|
+
"not_given",
|
|
53
|
+
"Omit",
|
|
54
|
+
"omit",
|
|
55
|
+
"UpbitError",
|
|
56
|
+
"APIError",
|
|
57
|
+
"APIStatusError",
|
|
58
|
+
"APITimeoutError",
|
|
59
|
+
"APIConnectionError",
|
|
60
|
+
"APIResponseValidationError",
|
|
61
|
+
"BadRequestError",
|
|
62
|
+
"AuthenticationError",
|
|
63
|
+
"PermissionDeniedError",
|
|
64
|
+
"NotFoundError",
|
|
65
|
+
"ConflictError",
|
|
66
|
+
"UnprocessableEntityError",
|
|
67
|
+
"RateLimitError",
|
|
68
|
+
"RateLimitPenaltyError",
|
|
69
|
+
"InternalServerError",
|
|
70
|
+
"Timeout",
|
|
71
|
+
"RequestOptions",
|
|
72
|
+
"Client",
|
|
73
|
+
"AsyncClient",
|
|
74
|
+
"Stream",
|
|
75
|
+
"AsyncStream",
|
|
76
|
+
"Upbit",
|
|
77
|
+
"AsyncUpbit",
|
|
78
|
+
"ENVIRONMENTS",
|
|
79
|
+
"file_from_path",
|
|
80
|
+
"BaseModel",
|
|
81
|
+
"DEFAULT_TIMEOUT",
|
|
82
|
+
"DEFAULT_MAX_RETRIES",
|
|
83
|
+
"DEFAULT_CONNECTION_LIMITS",
|
|
84
|
+
"DefaultHttpxClient",
|
|
85
|
+
"DefaultAsyncHttpxClient",
|
|
86
|
+
"DefaultAioHttpClient",
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
if not _t.TYPE_CHECKING:
|
|
90
|
+
from ._utils._resources_proxy import resources as resources
|
|
91
|
+
|
|
92
|
+
_setup_logging()
|
|
93
|
+
|
|
94
|
+
# Update the __module__ attribute for exported symbols so that
|
|
95
|
+
# error messages point to this module instead of the module
|
|
96
|
+
# it was originally defined in, e.g.
|
|
97
|
+
# upbit._exceptions.NotFoundError -> upbit.NotFoundError
|
|
98
|
+
__locals = locals()
|
|
99
|
+
for __name in __all__:
|
|
100
|
+
if not __name.startswith("__"):
|
|
101
|
+
try:
|
|
102
|
+
__locals[__name].__module__ = "upbit"
|
|
103
|
+
except (TypeError, AttributeError):
|
|
104
|
+
# Some of our exported symbols are builtins which we can't set attributes for.
|
|
105
|
+
pass
|