-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrade.py
More file actions
27 lines (21 loc) · 704 Bytes
/
Copy pathtrade.py
File metadata and controls
27 lines (21 loc) · 704 Bytes
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
from requests_html import HTMLSession
import json
class Trade:
address_book = {'osmo': 'osmo...50',
'cosmos': 'cosmos...za',
'juno': 'juno...9p',
'cheqd': 'cheqd...fv'}
def __init__(self) -> None:
pass
def _render(self, url:str) -> None:
session = HTMLSession()
self.r = session.get(url)
self.r.html.render(sleep=1)
def _connect(self, asset:str):
url = 'https://lcd-cosmoshub.keplr.app/auth/accounts/' + asset
self._render(url)
auth_info = json.loads(r.content)
def _auth():
pass
def deposit(self, asset:str):
pass