Skip to content

A free, near real-time, RestAPI for providing price data for stocks (FTSE100, NASDAQ), crypto-currencies, funds and Precious metals (GOLD, SILVER).

Notifications You must be signed in to change notification settings

squeakycheese75/stockkly_api

Repository files navigation

Stockkly API

StockklyAPI is a free, near real-time, RestAPI for providing prices for stocks (FTSE100, NASDAQ), crypto-currencies (BTC), funds and precious metals (e.g. GOLD, SILVER).

Quality Gate Status Bugs Security Rating Technical Debt Vulnerabilities

Hosting

Currently hosted at: https://stockklyapi.azurewebsites.net/api/

Usage

Verb Endpoint Description Authorised
GET /api/prices/:ticker Find a single Price using the ticker No
GET /api/pricesHistorical/:ticker Returns last 90 days worth of prices for ticker No
GET /api/holdings Returns all user holdings. Yes
GET /api/holdings/:ticker Returns user holdings for a ticker Yes

Dependancies

The below are dependancies for the StockklyAPI.

These can be constructed via the docker-compose in the dependancies folder:

  1. Ensure you have docker installed.
  2. cd dependancies
  3. docker-compose up -d

Docker

You can build the API and host via a docker container, either locate the image on DockerHub or run

  1. docker build -t stockkly_api .
  2. docker run -d --name stockkly_api -p 5000:5000 stockkly_api

Getting Started

  1. Set up your local environment using make create-local-env
  2. Update your local environment details
  3. run flask

Disclaimer

StockkyAPI is an open source project for collating and providing data from various sources. Despite best attempts, data provided is not be suitable for decison making and should be considered as test. Stockkly also does not gurantee that the data is live. Price delays are in some cases 15 mins.