Comments (2)
This may not be possible. This is because the csrf token is single use across all trades. As soon as the trade stock/option page refreshes, it invalidates the csrf token.
A synchronous task queue that implements threading would probably work best.
from investopedia_simulator_api.
Will implement a synchronous trade queue with concurrency using this:
https://gist.github.com/dchrostowski/aea07510fe5e76104eda25d740788a0f
from investopedia_simulator_api.
Related Issues (19)
- write unit tests
- Publish to pip
- Add documentation
- Implement concurrent synchronous task queue for trades HOT 1
- Add additional error handling for trades
- Get Investopedia Login Cookie HOT 2
- KeyError: 'account_cookie' HOT 1
- Investopedia appears to not use UI4 cookie anymore HOT 6
- Cancelling an order HOT 3
- Stock quote limit? HOT 3
- Get more info HOT 4
- Add better error handling for unquotable stocks. HOT 2
- line 213 in parsers.py not correctly indented (suppress one tabulation to fix it)
- How to fix 'open_orders' method
- Investopedia site change
- Refactor Portfolio class
- Refactor Position class
- Method decorator to coerce HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from investopedia_simulator_api.