tigerfintech / openapi-python-sdk

Python SDK for Tiger Open API
https://quant.itiger.com/#openapi
68 stars 15 forks source link

octet short error from RSA private key #67

Open edmunlee87 opened 1 year ago

edmunlee87 commented 1 year ago

Encountered the error below when calling QuoteClient.

client_config = get_client_config(private_key_path=PRIVATE_KEY_PATH, tiger_id=TIGER_ID, account=ACCOUNT) quote_client = QuoteClient(client_config, logger=client_logger)

tigeropen.common.exceptions.RequestException: [45f9a9a3-093a-11ee-a06f-18cf5eae3c75]request sign failed. 498047363409204084869657478084992514118413841471970825002770723036403523027418639519832513096583770134150993445882481708787740438776103-octet short

hotea commented 1 year ago

check if private key in pkcs1 format, try another key;