Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

メンテナンス時間中は注文&約定が出来ない #2

Open
haruocode opened this issue May 17, 2020 · 0 comments
Open

メンテナンス時間中は注文&約定が出来ない #2

haruocode opened this issue May 17, 2020 · 0 comments
Assignees

Comments

@haruocode
Copy link
Owner

haruocode commented May 17, 2020

問題

たまにメンテナンス時間でトレードが出来ない時間帯が数分~数時間ある。
BitFlyer:メンテナンスについて教えてください。

毎日午前 4 時 00 分~午前 4 時 10 分、定期メンテナンスを実施しています。

※ 上記以外に不定期メンテナンスが発生することもありますのでご了承ください。

買いか売りのポジションを持った状態でメンテナンス状態に突入すると、大きく損失を被る可能性があるため(逆に大きく得する可能性も高いが)、リスキー。

原因

未対応。

対応方法

メンテナンス時間をAPIで取得することができるか確認し、できるようであれば、そのn分前に持っているポジションを手仕舞い、メンテナンス時間が終わるまではポジションを持ちにいかないという対応が必要。

メンテナンス時間をAPIで取得することが出来ないっぽい。

  • maintenance.tsを作成してJSON形式でメンテナンス時間をその都度手動入力。
  • それを本家ファイルが読み込む。
  • 現在時刻と比較し、n分前に突入すると手仕舞い処理、メンテナンス期間中は何もしないという処理を追加する。
@haruocode haruocode self-assigned this May 17, 2020
@haruocode haruocode changed the title メンテナンス時間の対応ができていない メンテナンス時間中は注文&約定が出来ない May 17, 2020
@haruocode haruocode added this to To do in フェーズ2 May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant