Pinbar is a small command line utility to simulate operations on InvertirOnline stock broker.
Having access to this repo, pull or download the code and then run: composer install
In order to run tests, install first dev dependencies: composer install --dev
and then run: ./bin/phpunit
./bin/pinbar 3000 22.75
Prints the simulation for buying $3000 of a certain stock with price $22.75
./bin/pinbar -q 100 15.5
Prints the simulation for buying 100 units of a certain stock at $15.5 each.
./bin/pinbar -s 100 18.2
Prints the simulation for selling 100 units of a certain stock at $18.2 each.