orthogonal-cli - CLI of the Orthogonal CrunchDAO Platform
Project description
Orthogonal CLI
Installation
Use pip to install the orthogonal-cli
.
pip install orthogonal-cli --upgrade
Usage
This library require a CrunchDAO's API Key.
import orthogonal
client = orthogonal.Client(
api_key="..." # can also be read from CRUNCHDAO_API_KEY environment variable.
)
y = pandas.read_csv("y.csv", index_col=0)
print(y.head())
# date symbol abcd
# 1030371 2023-01-06 AAAAAAA -2.122527
# 1030372 2023-01-06 BBBBBBB -0.386952
# 1030373 2023-01-06 CCCCCCC 0.028175
# 1030374 2023-01-06 DDDDDDD -1.276682
# 1030375 2023-01-06 EEEEEEE 0.939289
dataframe = client.orthogonalize(y)
print(dataframe.head())
# date symbol abcd
# 0 2023-01-06 AAAAAAA -2.149988
# 1 2023-01-06 BBBBBBB -0.395232
# 2 2023-01-06 CCCCCCC 0.030502
# 3 2023-01-06 DDDDDDD -1.311531
# 4 2023-01-06 EEEEEEE 0.917134
Contributing
Pull requests are always welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the GitHub repository.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
orthogonal-cli-0.2.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for orthogonal_cli-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99cab77d2db6d3b95224e88647757bcd90d64a1e99356f58ce76cf97c31f4407 |
|
MD5 | ab134c3124a28921005ad7addcb03101 |
|
BLAKE2b-256 | e0947da023659b96775c2c65e133eedf5bf24e0d36d52c0213d0d739b331f1e2 |