GithubHelp home page GithubHelp logo

equibles / stocks-javascript Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 99 KB

Javascript wrapper for the Equibles stocks API.

Home Page: https://www.equibles.com

Shell 0.25% JavaScript 99.75%
stock-market stocks stock-data finance-api stocks-api stocks-prices

stocks-javascript's Introduction

Equibles Stocks API for Javascript

Installation

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install equibles_stocks --save

git

If the library is hosted at a git repository, e.g. https://github.com/equibles/stocks-javascript then install it via:

    npm install equibles/stocks-javascript --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var EquiblesStocks = require('equibles_stocks');
var defaultClient = EquiblesStocks.ApiClient.instance;

// Configure API key authorization: Query String
var Query String = defaultClient.authentications['Query String'];
Query String.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Query String.apiKeyPrefix['ApiKey'] = "Token"

var api = new EquiblesStocks.ExchangesApi()
api.currencies().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://api.equibles.com

Class Method HTTP request Description
EquiblesStocks.ExchangesApi currencies GET /stocks/exchanges/currencies Get the list of all the currencies supported by this API.
EquiblesStocks.ExchangesApi list GET /stocks/exchanges/list Get the list of all the exchanges supported by this API.
EquiblesStocks.ExchangesApi stocks GET /stocks/exchanges/stocks Get all the stocks for a given exchange.
EquiblesStocks.FundamentalsApi dividends GET /stocks/fundamentals/dividends Get the dividends for a given stock.
EquiblesStocks.FundamentalsApi financialReports GET /stocks/fundamentals/financialreports Get the financial statements for a given stock.
EquiblesStocks.MetricsApi priceToEarnings GET /stocks/metrics/pricetoearnings Get the price to earnings ratio over time for this stock.
EquiblesStocks.NewsApi list GET /stocks/news/list Get the latest news for this stock.
EquiblesStocks.NewsApi publishers GET /stocks/news/publishers Get all the available news publishers.
EquiblesStocks.PerformanceApi list GET /stocks/performance/list Lists the performance for a given stock.
EquiblesStocks.PricesApi endOfDay GET /stocks/prices/endofday Lists the end of day prices for a given stock.
EquiblesStocks.PricesApi intraday GET /stocks/prices/intraday Lists the intraday prices for a given stock with one minute precision.
EquiblesStocks.SectorsApi list GET /stocks/sectors/list Lists all the sectors.
EquiblesStocks.SectorsApi searchStocks GET /stocks/sectors/searchstocks Lists and the stock in a given sector/industry.
EquiblesStocks.StocksApi list GET /stocks/list Get a list of all the available stocks.
EquiblesStocks.StocksApi officers GET /stocks/officers Get the officers of the company.
EquiblesStocks.StocksApi profile GET /stocks/profile The profile of this stock.
EquiblesStocks.StocksApi screener POST /stocks/screener Get a list of stocks constraint to several criteria.
EquiblesStocks.StocksApi search GET /stocks/search Search among all the available stocks.
EquiblesStocks.StocksApi splits GET /stocks/splits Get all the splits for a given stock.
EquiblesStocks.TransactionsApi insiders GET /stocks/transactions/insiders Lists the insider transactions for a given stock.
EquiblesStocks.TransactionsApi institutional GET /stocks/transactions/institutional Lists the institutional transactions for a given stock.

Documentation for Models

Documentation for Authorization

Query String

  • Type: API key
  • API key parameter name: ApiKey
  • Location: URL query string

Author

Equibles
[email protected]

stocks-javascript's People

Contributors

daniel3303 avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.