init
This commit is contained in:
parent
be5fb603f3
commit
859fb7a19d
11 changed files with 436 additions and 0 deletions
8
app/services/bybit_service.py
Normal file
8
app/services/bybit_service.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
from pybit.unified_trading import HTTP
|
||||
|
||||
def get_bybit_client(api_key: str, api_secret: str):
|
||||
return HTTP(
|
||||
testnet=False, # Đổi thành False nếu dùng môi trường thật
|
||||
api_key=api_key,
|
||||
api_secret=api_secret
|
||||
)
|
||||
5
app/services/supabase_service.py
Normal file
5
app/services/supabase_service.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from supabase import create_client, Client
|
||||
from app.config import SUPABASE_URL, SUPABASE_KEY
|
||||
|
||||
def get_supabase_client() -> Client:
|
||||
return create_client(SUPABASE_URL, SUPABASE_KEY)
|
||||
Loading…
Add table
Add a link
Reference in a new issue