Analyze stock
Project description
kabutobashi
concept
class-relationship.
graph TD;
subgraph Aggregates
aggregate[StockCodeSingleAggregate]
aggregate --- single
aggregate --- |Method| processed
aggregate --- |Filter| filtered
subgraph ValueObject
single[StockDataSingleCode]
processed[StockDataProcessed]
filtered[StockDataFiltered]
end
end
subgraph Entities
recordset[StockRecordset]
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.4.0.tar.gz
(32.0 kB
view hashes)
Built Distribution
Close
Hashes for kabutobashi-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e638bd5f2784bded5e44d93a28a7b00891c695349978ea2daf0301f9f5313a |
|
MD5 | 9964baf965b1e3b4d5153b85bfc3c60f |
|
BLAKE2b-256 | 02b5417e10c26670a3884318b2c7f81a8935ffa117eee6555bbb94cae9d3efaa |