Analyze stock
Project description
kabutobashi
concept
class-relationship.
graph TD;
subgraph Aggregates
aggregate[StockCodeSingleAggregate]
aggregate --- recordset_single
aggregate --- |Method| processed
aggregate --- |Filter| filtered
subgraph ValueObject
recordset_single[StockRecordset/single]
processed[StockDataProcessed]
filtered[StockDataFiltered]
end
end
subgraph Entities
recordset[StockRecordset/multiple]
brand[StockBrand]
record[StockRecord]
recordset --> brand
recordset --> record
recordset ---> aggregate
end
subgraph Repositories
web[[Web]] --- | crawl | recordset
repositories[(Storage/Database)] --- | read/write | recordset
repositories --- | read/write | aggregate
end
usage
import kabutobashi as kb
records = kb.example()
methods = kb.methods + [kb.basic, kb.pct_change, kb.volatility]
filters = kb.estimate_filters
for df in records.to_code_iterable():
agg = kb.StockCodeSingleAggregate.of(entity=df).with_processed(methods).with_estimated(filters)
print(agg)
# n日前までの営業日の日付リストを取得する関数
target_date = "2020-01-01"
date_list = kb.get_past_n_days(target_date, n=40)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kabutobashi-0.5.0.tar.gz
(31.8 kB
view hashes)
Built Distribution
Close
Hashes for kabutobashi-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31a85e252ac3320c6e41e6e4b81abfb396d8392e41647475b780d81ddea13e4b |
|
MD5 | 5114b90d82f22e53b91668cb41cc0768 |
|
BLAKE2b-256 | 6ecc881472ad4b35fe22b4210db5fc0540391b569b255c5914dccf930cbcfa11 |