-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (26 loc) · 761 Bytes
/
main.py
File metadata and controls
33 lines (26 loc) · 761 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
28
29
30
31
32
33
import os
import asyncio
from dotenv import load_dotenv
load_dotenv()
key = os.getenv("LIGHTER_KEY")
secret = os.getenv("LIGHTER_SECRET")
from pylighter.client import Lighter
async def main():
lighter = Lighter(
key=key,
secret=secret,
)
await lighter.init_client()
print(await lighter.status())
print(await lighter.info())
print(await lighter.account())
#print(await lighter.accounts())
print(await lighter.accounts_by_l1_address())
print(await lighter.apikeys())
#print(await lighter.fee_bucket())
#print(await lighter.pnl())
print(await lighter.public_pools())
print(await lighter.exchange_stats())
await lighter.cleanup()
if __name__ == "__main__":
asyncio.run(main())