DCAv2Earn/libraries/wrappers/earn_gateio.py

52 lines
1.6 KiB
Python

'''
https://www.gate.io/docs/developers/apiv4/#earnuni
'''
# Implement from scratch, gateio python connector is AWFUL.
from credentials import get_api_key
class gateio_earn:
def __init__(self):
api_key, api_secret = get_api_key("gateio")
def get_trading_balance(self, coin):
'''
Returns the free available balance of a coin in the trading account (or the equivalent account in the exchange)
'''
return {"Error": "To be implemented"}
def get_available_products(self,coin):
return {"Error": "To be implemented"}
def get_product_detail(self,coin):
return {"Error": "To be implemented"}
def subscribe_product(self, coin, amount, rate):
return {"Error": "To be implemented"}
def redeem_product(self, product_id, redeem_all=True, amount=0, destination_account="SPOT"):
return {"Error": "To be implemented"}
def get_position(self, **kwargs):
return {"Error": "To be implemented"}
def get_account(self, coin, recv_window=5000):
return {"Error": "To be implemented"}
def get_personal_left_quota(self, product_id, **kwargs):
return {"Error": "To be implemented"}
def get_subscription_record(self, **kwargs):
return {"Error": "To be implemented"}
def get_redemption_record(self, **kwargs):
return {"Error": "To be implemented"}
def get_rewards_history(self, type="ALL", **kwargs):
return {"Error": "To be implemented"}
def get_subscription_preview(self, product_id, amount, **kwargs):
return {"Error": "To be implemented"}