Stockfighter
API wrapper for Stockfighter
Free software: ISC license
Limited documentation exists at: https://stockfighter.readthedocs.org. Happily accepting patches to improve it!
Get things started
Not hard!
pip install stockfighter
Using the standard API
from stockfighter import Stockfighter
s = Stockfighter(venue='TESTEX', account='EXB123456', api_key='123456')
print(s.venue_stocks())
…and the GM API for managing levels and such
from stockfighter import GM
gm = GM(api_key=123456)
print gm.start('first_steps') # Start the first level programmatically
For simplicity (and so you can share your code!) the GM and Stockfighter clients will also default to reading api keys from the environment variable API_KEY, if none was passed.
Features
Calling the core Stockfighter API is pretty important :)
Includes some rudimentary support for the GM API, such as it is known
…..get back to me later on what else
History
0.2.7 (2015-12-21)
Fix status_for_all_orders_in_a_stock URL
Fix GM restart/resume/etc failing due to broken format strings
0.2.6 (2015-12-14)
Fix place_new_order to actually pass price. Novel!
0.2.5 (2015-12-14)
Python3 re-compatibility
Fix status_for_all_orders endpoint
0.2.4 (2015-12-12)
Fix some outlying GM implementation bugs
Add test for basic GM client object instantiation
0.2.3 (2015-12-12)
Tests now also assert the API is responding w/ good “ok” values, not just HTTP 200s.
Py 3.5 testing included
0.2.2 (2015-12-12)
Fix testing and implementation for place_order
0.2.2 (2015-12-11)
Make py2 and py3 compatibility a thing, guaranteed by Tox and Travis.
0.2.1 (2015-12-11)
Working README and quick install
0.2.0 (2015-12-11)
All API functions implemented and tested
0.1.0 (2015-12-11)
First release on PyPI.
Metadata
Release files for stockfighter 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| stockfighter-0.2.7.tar.gz | 13.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stockfighter-0.2.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 20.1 kB
Release files / stockfighter-0.2.7.tar.gz
| Download URL | stockfighter-0.2.7.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08d2ea10ae5c2ed1a3c82c49068095d9ae0d3f959b16eda322798affed4679b9
|
|
BLAKE2b-256 checksum How to use checksums |
27b7018ce9414f2226b6100b0efc78498e400d6e48ee68ff8bf1dac3194a5166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / stockfighter-0.2.7-py2.py3-none-any.whl
| Download URL | stockfighter-0.2.7-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c94e759c568a424115b0eac92264d9443055dd8efb3819c75a65113a8ead1866
|
|
BLAKE2b-256 checksum How to use checksums |
8bca1cc9cdd7b16b40df0a11fb71480d4f8c5558ac10659e6900e5e85c64946c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for stockfighter 0.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.