whitebird-api 0.1.1__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.
- whitebird/__init__.py +78 -0
- whitebird/_auth.py +670 -0
- whitebird/_client.py +496 -0
- whitebird/_config.py +66 -0
- whitebird/_engine.py +716 -0
- whitebird/_exceptions.py +267 -0
- whitebird/_generated/__init__.py +2 -0
- whitebird/_generated/models.py +5855 -0
- whitebird/_generated/resources/__init__.py +249 -0
- whitebird/_generated/resources/accounting.py +398 -0
- whitebird/_generated/resources/auth.py +617 -0
- whitebird/_generated/resources/balance.py +1068 -0
- whitebird/_generated/resources/brokerage.py +2226 -0
- whitebird/_generated/resources/client.py +194 -0
- whitebird/_generated/resources/current_account.py +494 -0
- whitebird/_generated/resources/exchange.py +1010 -0
- whitebird/_generated/resources/ico.py +3262 -0
- whitebird/_generated/resources/kyc.py +1480 -0
- whitebird/_generated/resources/market.py +238 -0
- whitebird/_generated/resources/merchant.py +789 -0
- whitebird/_generated/resources/notifications.py +246 -0
- whitebird/_generated/resources/payments.py +501 -0
- whitebird/_generated/resources/providers.py +1716 -0
- whitebird/_generated/resources/referral.py +310 -0
- whitebird/_generated/resources/registration.py +638 -0
- whitebird/_generated/resources/reports.py +437 -0
- whitebird/_generated/resources/support.py +98 -0
- whitebird/_generated/resources/trading.py +1054 -0
- whitebird/_generated/resources/user.py +1297 -0
- whitebird/_generated/services.py +74 -0
- whitebird/_http.py +329 -0
- whitebird/_json.py +80 -0
- whitebird/_models.py +102 -0
- whitebird/_resource.py +19 -0
- whitebird/_version.py +3 -0
- whitebird/models.py +13 -0
- whitebird/otp.py +54 -0
- whitebird/pagination.py +145 -0
- whitebird/py.typed +0 -0
- whitebird/streaming.py +312 -0
- whitebird/tokens.py +147 -0
- whitebird/types.py +80 -0
- whitebird_api-0.1.1.dist-info/METADATA +98 -0
- whitebird_api-0.1.1.dist-info/RECORD +46 -0
- whitebird_api-0.1.1.dist-info/WHEEL +4 -0
- whitebird_api-0.1.1.dist-info/licenses/LICENSE +21 -0
whitebird/__init__.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Unofficial client of the Whitebird crypto exchange API.
|
|
2
|
+
|
|
3
|
+
Examples:
|
|
4
|
+
```python
|
|
5
|
+
from whitebird import Whitebird
|
|
6
|
+
|
|
7
|
+
with Whitebird("me@example.com", "password") as client:
|
|
8
|
+
print(client.brokerage.subaccounts.me())
|
|
9
|
+
```
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from ._client import AsyncWhitebird, Whitebird
|
|
13
|
+
from ._exceptions import (
|
|
14
|
+
APIError,
|
|
15
|
+
AuthenticationError,
|
|
16
|
+
BadRequestError,
|
|
17
|
+
CaptchaRequiredError,
|
|
18
|
+
ConflictError,
|
|
19
|
+
MFARequiredError,
|
|
20
|
+
NotFoundError,
|
|
21
|
+
PermissionDeniedError,
|
|
22
|
+
RateLimitError,
|
|
23
|
+
ServerError,
|
|
24
|
+
TransportError,
|
|
25
|
+
VerificationRequiredError,
|
|
26
|
+
WhitebirdError,
|
|
27
|
+
)
|
|
28
|
+
from ._generated.services import Environment
|
|
29
|
+
from ._version import __version__
|
|
30
|
+
from .pagination import AsyncPager, Page, SyncPager
|
|
31
|
+
from .streaming import AsyncEventStream, EventStream, ServerSentEvent
|
|
32
|
+
from .tokens import FileTokenStore, MemoryTokenStore, Tokens, TokenStore
|
|
33
|
+
from .types import (
|
|
34
|
+
AsyncCaptchaSolver,
|
|
35
|
+
AsyncCodeProvider,
|
|
36
|
+
Captcha,
|
|
37
|
+
CaptchaSolver,
|
|
38
|
+
CodeProvider,
|
|
39
|
+
FileContent,
|
|
40
|
+
RequestOptions,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"APIError",
|
|
45
|
+
"AsyncCaptchaSolver",
|
|
46
|
+
"AsyncCodeProvider",
|
|
47
|
+
"AsyncEventStream",
|
|
48
|
+
"AsyncPager",
|
|
49
|
+
"AsyncWhitebird",
|
|
50
|
+
"AuthenticationError",
|
|
51
|
+
"BadRequestError",
|
|
52
|
+
"Captcha",
|
|
53
|
+
"CaptchaRequiredError",
|
|
54
|
+
"CaptchaSolver",
|
|
55
|
+
"CodeProvider",
|
|
56
|
+
"ConflictError",
|
|
57
|
+
"Environment",
|
|
58
|
+
"EventStream",
|
|
59
|
+
"FileContent",
|
|
60
|
+
"FileTokenStore",
|
|
61
|
+
"MFARequiredError",
|
|
62
|
+
"MemoryTokenStore",
|
|
63
|
+
"NotFoundError",
|
|
64
|
+
"Page",
|
|
65
|
+
"PermissionDeniedError",
|
|
66
|
+
"RateLimitError",
|
|
67
|
+
"RequestOptions",
|
|
68
|
+
"ServerError",
|
|
69
|
+
"ServerSentEvent",
|
|
70
|
+
"SyncPager",
|
|
71
|
+
"TokenStore",
|
|
72
|
+
"Tokens",
|
|
73
|
+
"TransportError",
|
|
74
|
+
"VerificationRequiredError",
|
|
75
|
+
"Whitebird",
|
|
76
|
+
"WhitebirdError",
|
|
77
|
+
"__version__",
|
|
78
|
+
]
|