Skip to content

Commit

Permalink
미국주식 모의투자 tr typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brayden-jo committed Mar 23, 2023
1 parent 8a0f90c commit 889bbb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mojito/koreainvestment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,9 @@ def create_oversea_order(self, side: str, symbol: str, price: int,

tr_id = None
if self.mock:
# 모의투자
if self.exchange in ["나스닥", "뉴욕", "아멕스"]:
tr_id = "VTTT1002U" if side == "buy" else "VTTT1002U"
tr_id = "VTTT1002U" if side == "buy" else "VTTT1001U"
elif self.exchange == '도쿄':
tr_id = "VTTS0308U" if side == "buy" else "VTTS0307U"
elif self.exchange == '상해':
Expand All @@ -1367,6 +1368,7 @@ def create_oversea_order(self, side: str, symbol: str, price: int,
else:
tr_id = "VTTS0311U" if side == "buy" else "VTTS0310U"
else:
# 실전투자
if self.exchange in ["나스닥", "뉴욕", "아멕스"]:
tr_id = "JTTT1002U" if side == "buy" else "JTTT1006U"
elif self.exchange == '도쿄':
Expand Down

0 comments on commit 889bbb2

Please sign in to comment.