DB Generator for OFX Financial Statement Data
Project description
ofxdb
DB Generator for OFX Financial Statement Data
Current support:
Investment statements
ToDo:
Bank statements
Tax statements
Generates data for 5 tables
TRANSACTIONS
POSITIONS
ACCOUNT_INFO
BALANCES
SECURITIES
TRANSACTIONS:
- statement (list) -> transactions
- transactions[n] (obj) -> (getattr) -> transaction_obj (e.g. INVBUY, INVTRAN, INVSELL, etc.)
- transaction_obj (obj) -> (getattr) -> transaction_attr (e.g. SECID, units, etc.)
- tranaction_attr (obj) -> (getattr) -> obj_attr (e.g. SECID.uniqueid. SECID.uniqueidtype, etc.)
- obj_attr (str) -> obj.value
- transaction_attr (float) -> value
- transaction_attr (str) -> value
- tranaction_attr (obj) -> (getattr) -> obj_attr (e.g. SECID.uniqueid. SECID.uniqueidtype, etc.)
- transaction_obj (obj) -> (getattr) -> transaction_attr (e.g. SECID, units, etc.)
- transactions[n] (obj) -> (getattr) -> transaction_attr (e.g. buytype, selltype, etc.)
- transaction_attr (str) -> value
- transactions[n] (obj) -> (getattr) -> transaction_obj (e.g. INVBUY, INVTRAN, INVSELL, etc.)
e.g.
datetime | username | brokerid | acctid | trans | buytype | selltype | ... | secid.uniqueid | ...
POSITIONS:
- statement (list) -> positions
- positions[n] (obj) -> (getattr) -> position_obj (e.g. POSSTOCK)
- position_obj (obj) -> (getattr) -> position_attr (e.g. SECID, units, etc.)
- position_attr (obj) -> (getattr) -> obj_attr (e.g. SECID.uniqueid or SECID.uniqueidtype)
- obj_attr (str) -> value
- position_attr (float) -> value (for any other position_attr that is Decimal)
- position_attr (obj) -> (getattr) -> obj_attr (e.g. SECID.uniqueid or SECID.uniqueidtype)
- position_obj (obj) -> (getattr) -> position_attr (e.g. SECID, units, etc.)
- positions[n] (obj) -> (getattr) -> position_obj (e.g. POSSTOCK)
e.g.
datetime | username | brokerid | acctid | type | ... | postype | secid.uniqueid | ... | units
ACCOUNT INFO:
- statement (obj) -> acct_obj
- acct_obj (obj) -> (getattr) -> acct_attr (e.g. acctid, brokerid, etc.)
- acct_attr (str) -> value (for any other acct_attr that is str)
- acct_attr (float) -> value (for any other transaction_attr that is Decimal)
- acct_obj (obj) -> (getattr) -> acct_attr (e.g. acctid, brokerid, etc.)
e.g.
username | brokerid | acctid
BALANCES:
- statement (obj) -> balances_obj
- balances_obj (list) -> (getattr) -> ballist
- ballist[n] (obj) -> (getattr) -> bal_obj (e.g. BAL)
- bal_obj -> (getattr) -> bal_attr (e.g. baltype, value, etc.)
- bal_attr -> (str) -> value (for ant other bal_attr that is str)
- bal_attr -> (float) -> value (for any other bal_attr that is Decimal)
- bal_obj -> (getattr) -> bal_attr (e.g. baltype, value, etc.)
- ballist[n] (obj) -> (getattr) -> bal_obj (e.g. BAL)
- balances_obj (obj) -> (getattr) -> balances_attr (e.g. availcash, buypower)
- balances_attr (float) -> value
- balances_obj (list) -> (getattr) -> ballist
e.g.
username | brokerid | acctid | baltype | value
SECURITIES:
- ofx_file (list) -> securities
- securities[n] (obj) -> (getattr) -> securities_obj (e.g. STOCKINFO)
- securities_obj (obj) -> (getattr) -> securities_attr (e.g. assetclass, SECINFO, etc.)
- securities_attr (obj) -> (getattr) -> obj2_attr (e.g. SECID, secname, ticker, etc.)
- obj2_attr (obj) -> (getattr) -> obj2_attr (e.g. uniqueid, uniqueidtype, etc.)
- obj2_attr (str) -> obj2.value
- obj_attr (str) -> value
- obj2_attr (obj) -> (getattr) -> obj2_attr (e.g. uniqueid, uniqueidtype, etc.)
- securities_attr (str) -> value (for any other securities_attr that is str)
- securities_attr (obj) -> (getattr) -> obj2_attr (e.g. SECID, secname, ticker, etc.)
- securities_obj (obj) -> (getattr) -> securities_attr (e.g. assetclass, SECINFO, etc.)
- securities[n] (obj) -> (getattr) -> securities_obj (e.g. STOCKINFO)
e.g.
username | brokerid | acctid | ... | secid.uniqueid | secid.uniqueidtype | ...
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ofxdb-0.0.1.tar.gz.
File metadata
- Download URL: ofxdb-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdbef4f597cbb6b17b8a11f405c8c9d9c04ca76e87d00e1b4833c3c2de24f9ae
|
|
| MD5 |
9dad74a298e19205e006fa9ebebfaa9a
|
|
| BLAKE2b-256 |
4192a1204e5a31bb34204d9c1a0f3a7a0aaa646a44e232cd866959d28c9bea43
|
File details
Details for the file ofxdb-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ofxdb-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bfab905500ba04e9bfe8a0df1c3d9c3087e956188450cef38c6a8307cafd737
|
|
| MD5 |
5c9bdc2292e739a6410fb64bf567d40c
|
|
| BLAKE2b-256 |
90e3827ab5d821d6f769e0f9209d86ad2e5a71ff3b5986dd9c1638efdf0d1084
|