https://github.com/tirkarthi/sahaj-stock-csv
A simple command line tool to execute stock orders from CSV file
https://github.com/tirkarthi/sahaj-stock-csv
Last synced: 4 months ago
JSON representation
A simple command line tool to execute stock orders from CSV file
- Host: GitHub
- URL: https://github.com/tirkarthi/sahaj-stock-csv
- Owner: tirkarthi
- License: epl-1.0
- Created: 2018-04-17T05:48:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T05:53:22.000Z (about 7 years ago)
- Last Synced: 2025-01-05T12:42:38.615Z (5 months ago)
- Language: Clojure
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sahaj
A Clojure library designed to execute stock orders
## Installation
This assumes leiningen is installed and if not please refer to https://leiningen.org/ .
* Clone the repo
* Go to source directory
* Run `lein uberjar`## Minimum requirements
* JDK 7 or later
* Clojure 1.9## Usage
`java -jar target/sahaj-0.1.0-SNAPSHOT-standalone.jar path/to/input path/to/output`
Example
`java -jar target/sahaj-0.1.0-SNAPSHOT-standalone.jar sample.csv sample-out.csv`
## Docs
Extensive docs available at [doc](doc/)
* `cd doc/`
* `python3 -m http.server 9001`
* Point the browser to `http://127.0.0.1:9001`## Specs packed
This package includes specs for the functions. Refer [specs](doc/specs.md)
Example
```
sahaj.core/cumulative-sum
[orders]
Cumulative sum of the quantity of ordersSpec:
arguments : (s/cat
:orders (s/coll-of :sahaj.core/order))
returns : (s/coll-of number?)
```## License
Copyright © 2018 Karthikeyan S
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.