Comments (1)
function generateDeviceToken() {
var rands = []
for (var i = 0; i < 16; i++) {
var r = Math.random();
var rand = 4294967296.0 * r;
var a = (parseInt(rand) >> ((3 & i) << 3)) & 255;
rands.push(a);
}
var hex = [];
for (var i = 0; i < 256; ++i) {
var a = convert(i + 256).substring(1);
hex.push(a);
}
var s = "";
for (var i = 0; i < 16; i++) {
s += hex[rands[i]]
if (i == 3 || i == 5 || i == 7 || i == 9) {
s += "-";
}
}
return s;
}
Is the token function I use that works. Then just put that into your secrets file, or if you are hardcoding it into your code for a POC. You want to run it, save that and then reuse the token every time you logon. If you regenerate every time its possible RH will disassociate your authentication and force you to do it again.
from algotrader.
Related Issues (20)
- Open to a TypeScript conversion? HOT 1
- "request" package deprecation as of February 2020
- This version of Robinhood is no longer supported? HOT 1
- Is it possible to collect Metatrader data? HOT 1
- support for alphavantage too many requests error message HOT 1
- Issue with getHistoricals HOT 2
- Missing Auth in the Instrument.getFundamentals
- Support for fractional shares
- 3.0 release milestone HOT 1
- Robinhood Auth Issues HOT 1
- IEX token HOT 1
- Portfoilo#getStockValue does not supply a user.
- binance exchange support
- XTB Broker
- Support for indian brokers
- Unable to complete downloading from Robinhood HOT 2
- Can't seem to sign in properly.
- Robinhood responded with code 401: unauthorized. { "detail": "Incorrect authentication credentials." }
- An alternative to this library
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 algotrader.