forked from ChipaDevTeam/PocketOptionAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.html
More file actions
52 lines (50 loc) · 1.61 KB
/
quickstart.html
File metadata and controls
52 lines (50 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quickstart - PocketOptionAPI Async Docs</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
</head>
<body>
<header>
<h1>PocketOptionAPI Async</h1>
<nav>
<a href="index.html">Home</a>
<a href="quickstart.html">Quickstart</a>
<a href="api.html">API Reference</a>
<a href="examples.html">Examples</a>
<a href="faq.html">FAQ</a>
</nav>
</header>
<main>
<h2>Quickstart</h2>
<div class="card">
<ol>
<li><b>Install the library:</b>
<pre><code>pip install pocketoptionapi-async</code></pre>
</li>
<li><b>Get your Pocket Option SSID:</b> <br>Log in to Pocket Option, open DevTools, and copy your SSID cookie value.</li>
<li><b>Basic usage example:</b>
<pre><code>from pocketoptionapi_async import AsyncPocketOptionClient
import asyncio
async def main():
SSID = "your-ssid-here"
client = AsyncPocketOptionClient(SSID, is_demo=True)
await client.connect()
balance = await client.get_balance()
print(balance)
await client.disconnect()
asyncio.run(main())
</code></pre>
</li>
</ol>
</div>
<div class="advert">
Want a custom trading bot? <a href="https://shop.chipatrade.com/products/create-your-bot?variant=42924637487206" target="_blank">Let us build it for you!</a>
</div>
</main>
</body>
<script src="codeblock.js"></script>
</html>