Skip to content

Commit c1ace05

Browse files
authored
Update 2025-07-07-openapi-doc.md
1 parent a8a3e14 commit c1ace05

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

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

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ appropriate system path, such as `/Users/demo/props/`. Then, specify this path i
321321
of `TigerOpenClientConfig` (or place the configuration file in the current program directory; the SDK will default to
322322
the current path).
323323

324-
Using this method eliminates the need to configure `tiger_id`, `account`, `private_key`, etc., in the code.
325324

326325
```python
327326
from tigeropen.common.consts import (Language, # Language
@@ -337,37 +336,18 @@ def get_client_config():
337336
client_config = TigerOpenClientConfig(props_path='/Users/demo/props/')
338337
return client_config
339338

340-
# Create the client_config object using the above-defined function
341-
client_config = get_client_config()
342-
```
343-
344-
***
345-
346-
347-
```Python
348-
from tigeropen.common.consts import (Language, # Language
349-
Market, # Market
350-
BarPeriod, # K-line period
351-
QuoteRight) # Adjustment type
352-
from tigeropen.tiger_open_config import TigerOpenClientConfig
353-
from tigeropen.common.util.signature_utils import read_private_key
354-
from tigeropen.quote.quote_client import QuoteClient
355-
356-
def get_client_config():
357-
client_config = TigerOpenClientConfig(props_path='/Users/demo/props/')
358-
return client_config
359-
360339
# Create the client_config object using the above-defined function
361340
client_config = get_client_config()
362341

363342
# Initialize QuoteClient with the configuration object
364343
quote_client = QuoteClient(client_config)
365344

366-
# Retrieve market data for ticker 00700
367-
stock_price = quote_client.get_stock_briefs(['00700'])
345+
# Retrieve market data for ticker AAPL
346+
stock_price = quote_client.get_stock_briefs(['AAPL'])
368347
```
369348

370-
***
349+
350+
371351

372352
### **Introduction to Common ClientConfig Configuration Options**
373353

0 commit comments

Comments
 (0)