Skip to content

Commit

Permalink
chore: rename watch_list to watchlist
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Aug 17, 2023
1 parent 180a164 commit 363eddb
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
group_id = ctx.create_watch_list_group(name = "WatchList1", securities = ["700.HK", "AAPL.US"])
group_id = ctx.create_watchlist_group(name = "Watchlist1", securities = ["700.HK", "AAPL.US"])
print(group_id)
response_body: { "code": 0, "data": { "id": 10086 } }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
ctx.delete_watch_list_group(10086)
ctx.delete_watchlist_group(10086)
response_body: { "code": 0 }
2 changes: 1 addition & 1 deletion swagger-docs/en/quote/individual/watchlist_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
resp = ctx.watch_list()
resp = ctx.watchlist()
print(resp)
response_body:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
ctx.update_watch_list_group(10086, name = "WatchList2", securities = ["700.HK", "AAPL.US"], SecuritiesUpdateMode.Replace)
ctx.update_watchlist_group(10086, name = "Watchlist2", securities = ["700.HK", "AAPL.US"], SecuritiesUpdateMode.Replace)
response_body: { "code": 0 }
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
group_id = ctx.create_watch_list_group(name = "WatchList1", securities = ["700.HK", "AAPL.US"])
group_id = ctx.create_watchlist_group(name = "Watchlist1", securities = ["700.HK", "AAPL.US"])
print(group_id)
response_body: { "code": 0, "data": { "id": 10086 } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
ctx.delete_watch_list_group(10086)
ctx.delete_watchlist_group(10086)
response_body: { "code": 0 }
2 changes: 1 addition & 1 deletion swagger-docs/zh-CN/quote/individual/watchlist_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
resp = ctx.watch_list()
resp = ctx.watchlist()
print(resp)
response_body:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
ctx.update_watch_list_group(10086, name = "WatchList2", securities = ["700.HK", "AAPL.US"], SecuritiesUpdateMode.Replace)
ctx.update_watchlist_group(10086, name = "WatchList2", securities = ["700.HK", "AAPL.US"], SecuritiesUpdateMode.Replace)
response_body: { "code": 0 }
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
group_id = ctx.create_watch_list_group(name = "WatchList1", securities = ["700.HK", "AAPL.US"])
group_id = ctx.create_watchlist_group(name = "Watchlist1", securities = ["700.HK", "AAPL.US"])
print(group_id)
response_body: { "code": 0, "data": { "id": 10086 } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
ctx.delete_watch_list_group(10086)
ctx.delete_watchlist_group(10086)
response_body: { "code": 0 }
2 changes: 1 addition & 1 deletion swagger-docs/zh-HK/quote/individual/watchlist_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
resp = ctx.watch_list()
resp = ctx.watchlist()
print(resp)
response_body:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ paths:
config = Config.from_env()
ctx = QuoteContext(config)
ctx.update_watch_list_group(10086, name = "WatchList2", securities = ["700.HK", "AAPL.US"], SecuritiesUpdateMode.Replace)
ctx.update_watchlist_group(10086, name = "WatchList2", securities = ["700.HK", "AAPL.US"], SecuritiesUpdateMode.Replace)
response_body: { "code": 0 }

0 comments on commit 363eddb

Please sign in to comment.