sunglim / systemtrading

my first system trading application
MIT License
0 stars 0 forks source link

crash #51

Closed sunglim closed 1 year ago

sunglim commented 1 year ago

https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=72656410&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&OFL_YN=&INQR_DVSN=02&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=
2023/10/06 06:28:31
set token 2023-10-06 06:28:31.203482608 +0000 UTC m=+144001.864039667: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0b2tlbiIsImF1ZCI6ImE0YmE0MDMzLTM2M2YtNDU0Ni1iMWY5LWZhMDdhNjMzMzg2NCIsImlzcyI6InVub2d3IiwiZXhwIjoxNjk2NjYwMTExLCJpYXQiOjE2OTY1NzM3MTEsImp0aSI6IlBTRW9nckNERFE5Z3NQSDVVbEk3TXJ2cGRDQmhBWVFReWNDaCJ9.QaAuNPXj9pYXyXhsornmXc1L690vBbwEPnNbTmPIvGtPGiAssNmGJnMmcR-Ou-UYbqkGRY_oRtGpnUh_e_W7Gg
Call success
2023/10/06 16:28:31
set token 2023-10-06 16:28:31.313373621 +0000 UTC m=+180001.973930701: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0b2tlbiIsImF1ZCI6IjBmN2YyNmNjLTQzZTUtNDI4NC1iMTBhLWQ4OWRhMjgwOTU3NiIsImlzcyI6InVub2d3IiwiZXhwIjoxNjk2Njk2MTExLCJpYXQiOjE2OTY2MDk3MTEsImp0aSI6IlBTRW9nckNERFE5Z3NQSDVVbEk3TXJ2cGRDQmhBWVFReWNDaCJ9.rpH2sXMkLusnVEldrqTx53LA2HuikVdn-mvKzGJMTotOkyENZ0qylfM-9M7o7l5sWn8AaImx0UwDr1x_-PUSMQ
Call success
2023/10/07 02:28:31
set token 2023-10-07 02:28:31.025788407 +0000 UTC m=+216001.686345480:
[Buy if average is lower than] log.go:22: Triggered
https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=72656410&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&OFL_YN=&INQR_DVSN=02&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=
panic: Get "https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=72656410&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&OFL_YN=&INQR_DVSN=02&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=": EOF
sunglim commented 1 year ago

The server had a problem

image
sunglim commented 1 year ago

The server may not response properly, In that case, the app should just print error message, but do not panic.

sunglim commented 1 year ago

fixed by https://github.com/sunglim/systemtrading/pull/52