Skip to content

Commit e5d62a5

Browse files
authored
Update 2025-07-07-openapi-doc.md
mod python config
1 parent c4a2de4 commit e5d62a5

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

_posts/2025-07-07-openapi-doc.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,7 @@ from tigeropen.common.util.signature_utils import read_private_key
368368
from tigeropen.quote.quote_client import QuoteClient
369369

370370
def get_client_config():
371-
"""
372-
https://quant.itigerup.com/#developer Retrieve developer information
373-
"""
374-
client_config = TigerOpenClientConfig()
375-
# If not specified, it defaults to the current path
376-
# client_config = TigerOpenClientConfig(props_path='.')
377-
client_config.private_key = read_private_key('Path to the private key PEM file')
378-
client_config.tiger_id = 'Replace with your tigerId'
379-
client_config.account = 'Replace with your account, simulation account recommended'
380-
# For institutional accounts, add the secret key
381-
client_config.secret_key = 'Replace with your secret key'
382-
client_config.language = Language.zh_CN # Optional, defaults to English if not specified
383-
# client_config.timezone = 'US/Eastern' # Optional timezone setting
371+
client_config = TigerOpenClientConfig(props_path='/Users/demo/props/')
384372
return client_config
385373

386374
# Create the client_config object using the above-defined function
@@ -401,13 +389,6 @@ After initiating `client_config = TigerOpenClientConfig()`, you can set configur
401389
using `client_config.<property>`, such as `client_config.timeout = 60`.
402390

403391
```python
404-
# Developer information (props_path is the recommended method for configuring developer info)
405-
client_config.tiger_id = 1
406-
client_config.account = '123456'
407-
client_config.license = 'TBUS'
408-
client_config.private_key = read_private_key('Path to private key') # Requires `from tigeropen.common.util.signature_utils import read_private_key`
409-
# The private key can also be specified as a string
410-
client_config.private_key = 'MIICWwIBAAKBgQCSW+.....PrivateKeyContents'
411392

412393
# Logging level and path
413394
client_config.log_level = logging.DEBUG # Requires `import logging`

0 commit comments

Comments
 (0)