Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
GMO コインのデータストアは #74 のコントリビュートによって実装されました。
しかし、ストア内のデータが他と違って型付きの Python クラスベースで定義されています。 単純に JSON をパースしたデータと比べて型が有効などのメリットもありますが、GMO コインの銘柄が追加された際にそれに追随するのに pybotters のアップデートが必要だったり、ユーザーの使い勝手が異なるなどの問題が生じていました。
この PR では従来版
GMOCoinDataStore
クラスをインポートパスから削除して、従来の設計方針で実装したクラスをpybotters.GMOCoinDataStore
に置き換えます。Changes
pybotters.GMOCoinDataStore
はストア内のデータ型がクラスベースから JSON ベースになり、キー名がスネークケースに変換されていたものから GMO コインドキュメントに記載されている文字列をそのままの値で格納されますGMOCoinDataStore
の API (メソッド名などのこと) の変更はありせんGMOCoinDataStore
はトップレベルのインポートパスから削除されpybotters.models.legacy.gmocoin
にモジュールが移動されます