Skip to content

Commit

Permalink
fix get_receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandking committed Nov 21, 2023
1 parent b618839 commit b51c64e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion akshare/futures/receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,5 +457,5 @@ def get_receipt(start_day: str = None, end_day: str = None, vars_list: List = co


if __name__ == '__main__':
get_receipt_df = get_receipt(start_day='20231113', end_day='20231113')
get_receipt_df = get_receipt(start_day='20231120', end_day='20231121')
print(get_receipt_df)
4 changes: 4 additions & 0 deletions akshare/futures/symbol_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def chinese_to_english(chinese_var: str):
'氧化铝仓库',
'氧化铝厂库',
'烧碱',
'丁二烯橡胶仓库',
'丁二烯橡胶厂库',
]
english_list = [
"RU",
Expand Down Expand Up @@ -273,6 +275,8 @@ def chinese_to_english(chinese_var: str):
"AO",
"AO",
"SH",
"BR",
"BR",
]
pos = chinese_list.index(chinese_var)
return english_list[pos]
Expand Down

0 comments on commit b51c64e

Please sign in to comment.