Skip to content

Commit ab15542

Browse files
committed
Update deps and readme
1 parent 6cc7ad8 commit ab15542

5 files changed

Lines changed: 1070 additions & 982 deletions

File tree

.vscode/settings.json

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
2-
"python-envs.defaultEnvManager": "ms-python.python:poetry",
3-
"python-envs.pythonProjects": [],
4-
"python-envs.defaultPackageManager": "ms-python.python:poetry",
5-
"emeraldwalk.runonsave": {
6-
"commands": [
7-
{
8-
"match": "events.json$",
9-
"cmd": "poetry run python generator/generate.py",
10-
"messageAfter": "Client generated"
11-
}
12-
]
13-
},
14-
"files.exclude": {
15-
"**/.git": true,
16-
"**/.svn": true,
17-
"**/.hg": true,
18-
"**/.DS_Store": true,
19-
"**/Thumbs.db": true,
20-
"**/__pycache__": true
21-
}
2+
"python-envs.defaultEnvManager": "ms-python.python:poetry",
3+
"python-envs.defaultPackageManager": "ms-python.python:poetry",
4+
"emeraldwalk.runonsave": {
5+
"commands": [
6+
{
7+
"match": "events.json$",
8+
"cmd": "poetry run python generator/generate.py",
9+
"messageAfter": "Client generated"
10+
}
11+
]
12+
},
13+
"files.exclude": {
14+
"**/.git": true,
15+
"**/.svn": true,
16+
"**/.hg": true,
17+
"**/.DS_Store": true,
18+
"**/Thumbs.db": true,
19+
"**/__pycache__": true
20+
}
2221
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,24 @@ Supports Python 3.13+ and is fully asynchronous (`asyncio` + `aiohttp`).
4444

4545
- ✅ Strict type hints
4646

47+
## 🔑 Getting Session ID and UID
48+
49+
To interact with the API, you need a valid session payload from the browser.
50+
51+
1. Open Pocket Option in your browser
52+
2. Open Developer Tools
53+
3. Go to the **Network** tab
54+
4. Filter by **WebSocket (WS)**
55+
5. Find a request to {region}...
56+
6. Fimd message containing `42["auth"`
57+
7. Copy the `session` and `uid`
58+
59+
**Example**:
60+
61+
```json
62+
42["auth",{"session":"abcd1234efgh5678","isDemo":1,"uid":1234589,"platform":1}]
63+
```
64+
4765
## ⚙️ Usage Example
4866

4967
```python

README.ru.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,24 @@
4343

4444
- ✅ Строгая типизация
4545

46+
## 🔑 Получение Session ID и UID
47+
48+
Для работы с API необходимо получить корректные данные сессии из браузера.
49+
50+
1. Откройте Pocket Option в браузере
51+
2. Откройте инструменты разработчика (F12)
52+
3. Перейдите во вкладку **Network**
53+
4. Отфильтруйте по **WebSocket (WS)**
54+
5. Найдите запрос к `{region}`
55+
6. Найдите сообщение, содержащее `42["auth"`
56+
7. Скопируйте значения `session` и `uid`
57+
58+
**Пример**:
59+
60+
```json
61+
42["auth",{"session":"abcd1234efgh5678","isDemo":1,"uid":1234589,"platform":1}]
62+
```
63+
4664
## ⚙️ Пример использования
4765

4866
```python

0 commit comments

Comments
 (0)