stocktwits
$ npm install stocktwits$ npm test
GET
Accepts API string, query string params (optional) and a callback.
var st = ; // without additional parametersst; // pass optional parametersst; // for requests that require authenticationst;
Note that some parameters are appended to the API string! Refer to the StockTwits documentation.
POST
Accepts API string, query string params, POST data and a callback.
// the access token is required for all POST requestsst;
RESPONSE
err
err
is one of:
- network error
- generic error from StockTwits (usually html page)
- API error (JSON error response)
res
res
is a generic nodejs response object extended with:
- body - parsed JSON response from the server
- raw - the response as string
- limit - the API limit for this type of request
- remainig - remaining request for this time window
- reset - rate limit reset date