Open hmhjapan opened 2 weeks ago
すみません、 下記のパラメータで先物(169120019 )の発注で、なぜエラーが出ましたか。 エラー原因と解決方法を教えていただけますでしょうか。 よろしくお願いいたします。
sample/Python/kabusapi_sendorder_future_new.py json_data = json.dumps(obj).encode('utf-8') url = PGM.Common.Code.Code.KabuURL + 'sendorder/future' req = urllib.request.Request(url, json_data, method='POST') req.add_header('Content-Type', 'application/json') req.add_header('X-API-KEY', Params.token)
エラーログは下記の通りです。 2024-11-08 16:44:57,719 ,Params.token,Params.Symbol,Params.Exchange,Params.TradeType,Params.TimeInForce,Params.Side,Params.Qty,Params.FrontOrderType,Params.Price,Params.ExpireDay: ,dfeeccefd391e1ca145bb8c24b9206ab6cee0ew ,169120019 ,24 ,1 ,3 ,1 ,1 ,120 ,0 ,0 2024-11-08 16:44:57,719 ,######################################################## 2024-11-08 16:44:57,719 ,open DFlag: ,Open 2024-11-08 16:44:57,719 ,parameter begin: 2024-11-08 16:44:57,719 ,Symbol: ,169120019 2024-11-08 16:44:57,720 ,Exchange: ,24 2024-11-08 16:44:57,720 ,TradeType: ,1 2024-11-08 16:44:57,720 ,TimeInForce: ,3 2024-11-08 16:44:57,720 ,Side: ,1 2024-11-08 16:44:57,720 ,Qty: ,1 2024-11-08 16:44:57,720 ,FrontOrderType: ,120 2024-11-08 16:44:57,720 ,Price: ,0 2024-11-08 16:44:57,720 ,ExpireDay: ,0 2024-11-08 16:44:57,720 ,parameter end: 2024-11-08 16:44:57,720 ,Call SendOrderFuture Begin. 2024-11-08 16:44:57,743 ,SendOrderFuture处理失败,HTTPError: ,<HTTPError 500: 'Internal Server Error'> 2024-11-08 16:44:57,743 ,order result : ,{'Code': 10020, 'Message': 'この注文はザラバ時間帯にしか発注できません'} 2024-11-08 16:44:57,743 ,error file: ,C:\Users\hmh\AppData\Local\Temp_MEI123682\PGM\FLayer\Kabu\FKabusapi.pyc 2024-11-08 16:44:57,744 ,error line: ,71 2024-11-08 16:44:57,744 ,Call SendOrderFuture exception1 end. 2024-11-08 16:44:57,744 ,########################################################
すみません、 下記のパラメータで先物(169120019 )の発注で、なぜエラーが出ましたか。 エラー原因と解決方法を教えていただけますでしょうか。 よろしくお願いいたします。
sample/Python/kabusapi_sendorder_future_new.py json_data = json.dumps(obj).encode('utf-8') url = PGM.Common.Code.Code.KabuURL + 'sendorder/future' req = urllib.request.Request(url, json_data, method='POST') req.add_header('Content-Type', 'application/json') req.add_header('X-API-KEY', Params.token)
エラーログは下記の通りです。 2024-11-08 16:44:57,719 ,Params.token,Params.Symbol,Params.Exchange,Params.TradeType,Params.TimeInForce,Params.Side,Params.Qty,Params.FrontOrderType,Params.Price,Params.ExpireDay: ,dfeeccefd391e1ca145bb8c24b9206ab6cee0ew ,169120019 ,24 ,1 ,3 ,1 ,1 ,120 ,0 ,0 2024-11-08 16:44:57,719 ,######################################################## 2024-11-08 16:44:57,719 ,open DFlag: ,Open 2024-11-08 16:44:57,719 ,parameter begin: 2024-11-08 16:44:57,719 ,Symbol: ,169120019 2024-11-08 16:44:57,720 ,Exchange: ,24 2024-11-08 16:44:57,720 ,TradeType: ,1 2024-11-08 16:44:57,720 ,TimeInForce: ,3 2024-11-08 16:44:57,720 ,Side: ,1 2024-11-08 16:44:57,720 ,Qty: ,1 2024-11-08 16:44:57,720 ,FrontOrderType: ,120 2024-11-08 16:44:57,720 ,Price: ,0 2024-11-08 16:44:57,720 ,ExpireDay: ,0 2024-11-08 16:44:57,720 ,parameter end: 2024-11-08 16:44:57,720 ,Call SendOrderFuture Begin. 2024-11-08 16:44:57,743 ,SendOrderFuture处理失败,HTTPError: ,<HTTPError 500: 'Internal Server Error'> 2024-11-08 16:44:57,743 ,order result : ,{'Code': 10020, 'Message': 'この注文はザラバ時間帯にしか発注できません'} 2024-11-08 16:44:57,743 ,error file: ,C:\Users\hmh\AppData\Local\Temp_MEI123682\PGM\FLayer\Kabu\FKabusapi.pyc 2024-11-08 16:44:57,744 ,error line: ,71 2024-11-08 16:44:57,744 ,Call SendOrderFuture exception1 end. 2024-11-08 16:44:57,744 ,########################################################