2018-01-20 18:19:15 +00:00
|
|
|
piker
|
2018-02-15 18:33:53 +00:00
|
|
|
-----
|
2018-11-23 16:04:21 +00:00
|
|
|
Trading gear for hackers.
|
2018-01-27 06:52:24 +00:00
|
|
|
|
2019-03-22 02:46:20 +00:00
|
|
|
|travis|
|
2018-04-11 04:10:45 +00:00
|
|
|
|
2019-02-26 06:14:58 +00:00
|
|
|
``piker`` is an attempt at a pro-grade, broker agnostic, next-gen FOSS toolset for real-time
|
2020-05-12 02:43:30 +00:00
|
|
|
trading and financial analysis targetted at hardcore Linux users.
|
2019-02-26 06:14:58 +00:00
|
|
|
|
2020-05-12 02:43:30 +00:00
|
|
|
It tries to use as much bleeding edge tech as possible including (but not limited to):
|
2019-02-26 06:14:58 +00:00
|
|
|
|
2020-05-12 02:43:30 +00:00
|
|
|
- Python 3.7+ for glue and business logic
|
|
|
|
- trio_ for async
|
|
|
|
- tractor_ as the underlying actor model
|
|
|
|
- marketstore_ for data persistence and sharing
|
|
|
|
- Qt_ for pristine high performance UIs
|
2019-02-26 06:14:58 +00:00
|
|
|
|
2018-04-11 04:10:45 +00:00
|
|
|
.. |travis| image:: https://img.shields.io/travis/pikers/piker/master.svg
|
|
|
|
:target: https://travis-ci.org/pikers/piker
|
2019-03-22 02:46:20 +00:00
|
|
|
.. _trio: https://github.com/python-trio/trio
|
|
|
|
.. _tractor: https://github.com/goodboy/tractor
|
2020-05-12 02:43:30 +00:00
|
|
|
.. _marketstore: https://github.com/alpacahq/marketstore
|
|
|
|
.. _Qt: https://www.qt.io/
|
2019-03-22 02:46:20 +00:00
|
|
|
|
2020-05-12 02:43:30 +00:00
|
|
|
|
|
|
|
Focus and Features:
|
|
|
|
*******************
|
|
|
|
- 100% decentralized: running your code on your hardware with your
|
|
|
|
broker's data feeds **is the point** (this is not a web-based *I
|
|
|
|
don't know how to run my own system* project).
|
|
|
|
- Built on a highly reliable next-gen [actor
|
|
|
|
model](https://github.com/goodboy/tractor) with built in async
|
|
|
|
streaming and scalability protocols allowing us avoid clunky
|
|
|
|
object-oriented-heavy APIs
|
|
|
|
- Production grade, highly attractive native UIs that feel and fit like
|
|
|
|
a proper pair of skinny jeans; only meant to be used with a proper
|
|
|
|
tiling window manager (no, we are not ignorant enough to roll our own).
|
|
|
|
- Sophisticated charting capable of processing large data sets in real-time
|
|
|
|
while sanely displaying complex models and strategy systems.
|
|
|
|
- Built-in support for *hipstery* indicators and studies that you
|
|
|
|
probably haven't heard of but that the authors **know** generate alpha
|
|
|
|
when paired with the right strategies.
|
|
|
|
- Emphasis on collaboration through sharing data, ideas, and processing
|
|
|
|
power.
|
|
|
|
- Adoption is very low priority, especially if you're not an experienced
|
|
|
|
trader; the system is not built for sale it is built for *people* who
|
|
|
|
work as independent computational traders.
|
|
|
|
- No, we will never have a "corporation friendly license".
|
|
|
|
|
|
|
|
Fitting with these tenets, we're always open to new framework suggestions and ideas.
|
2019-03-22 02:46:20 +00:00
|
|
|
|
|
|
|
Building the best looking, most reliable, keyboard friendly trading platform is the dream.
|
|
|
|
Feel free to pipe in with your ideas and quiffs.
|
2018-01-27 06:52:24 +00:00
|
|
|
|
2019-02-26 06:14:58 +00:00
|
|
|
|
2018-01-27 06:52:24 +00:00
|
|
|
Install
|
|
|
|
*******
|
2019-03-22 02:46:20 +00:00
|
|
|
``piker`` is currently under heavy pre-alpha development and as such should
|
2018-01-27 06:52:24 +00:00
|
|
|
be cloned from this repo and hacked on directly.
|
|
|
|
|
2018-02-15 18:33:53 +00:00
|
|
|
A couple bleeding edge components are being used atm pertaining to
|
|
|
|
async ports of libraries for use with `trio`_.
|
2018-02-12 15:55:04 +00:00
|
|
|
|
2019-04-30 17:19:04 +00:00
|
|
|
Before installing make sure you have `pipenv`_ and have installed
|
|
|
|
``python3.7`` as well as `kivy source build`_ dependencies
|
|
|
|
since currently there's reliance on an async development branch.
|
|
|
|
|
|
|
|
`kivy` dependencies
|
|
|
|
===================
|
|
|
|
On Archlinux you need the following dependencies::
|
|
|
|
|
2019-05-01 23:34:01 +00:00
|
|
|
pacman -S python-docutils gstreamer sdl2_ttf sdl2_mixer sdl2_image xclip
|
2019-04-30 17:19:04 +00:00
|
|
|
|
|
|
|
To manually install the async branch of ``kivy`` from github do (though
|
|
|
|
this should be done as part of the ``pipenv install`` below)::
|
|
|
|
|
|
|
|
pipenv install -e 'git+git://github.com/matham/kivy.git@async-loop#egg=kivy'
|
|
|
|
|
|
|
|
|
|
|
|
.. _kivy source build:
|
|
|
|
https://kivy.org/docs/installation/installation-linux.html#installation-in-a-virtual-environment
|
|
|
|
|
|
|
|
|
2018-02-15 18:33:53 +00:00
|
|
|
For a development install::
|
2018-02-12 15:55:04 +00:00
|
|
|
|
2018-02-12 17:46:56 +00:00
|
|
|
git clone git@github.com:pikers/piker.git
|
|
|
|
cd piker
|
2019-04-30 17:19:04 +00:00
|
|
|
pipenv install --pre -e .
|
2018-03-28 19:22:39 +00:00
|
|
|
pipenv shell
|
2018-02-12 15:55:04 +00:00
|
|
|
|
2019-03-22 02:46:20 +00:00
|
|
|
|
|
|
|
Broker Support
|
|
|
|
**************
|
|
|
|
For live data feeds the only fully functional broker at the moment is Questrade_.
|
|
|
|
Eventual support is in the works for `IB`, `TD Ameritrade` and `IEX`.
|
|
|
|
If you want your broker supported and they have an API let us know.
|
|
|
|
|
|
|
|
.. _Questrade: https://www.questrade.com/api/documentation
|
|
|
|
|
|
|
|
|
|
|
|
Play with some UIs
|
|
|
|
******************
|
|
|
|
|
|
|
|
To start the real-time index monitor with the `questrade` backend::
|
2018-02-12 15:55:04 +00:00
|
|
|
|
2019-02-26 06:14:58 +00:00
|
|
|
piker -l info monitor indexes
|
2018-03-21 21:32:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
If you want to see super granular price changes, increase the
|
|
|
|
broker quote query ``rate`` with ``-r``::
|
|
|
|
|
2019-02-26 06:14:58 +00:00
|
|
|
piker monitor indexes -r 10
|
2018-02-12 15:55:04 +00:00
|
|
|
|
2018-01-27 06:52:24 +00:00
|
|
|
|
2019-02-26 06:14:58 +00:00
|
|
|
It is also possible to run the broker data feed micro service as a daemon::
|
2018-04-18 18:03:59 +00:00
|
|
|
|
|
|
|
pikerd -l info
|
|
|
|
|
|
|
|
Then start the client app as normal::
|
|
|
|
|
2019-02-26 06:14:58 +00:00
|
|
|
piker monitor indexes
|
2018-04-18 18:03:59 +00:00
|
|
|
|
|
|
|
|
2018-02-15 18:33:53 +00:00
|
|
|
.. _trio: https://github.com/python-trio/trio
|
2018-03-28 19:22:39 +00:00
|
|
|
.. _pipenv: https://docs.pipenv.org/
|