https://github.com/cloud66-oss/fakestock
Web Service to generate fake stock prices for test and demo purposes
https://github.com/cloud66-oss/fakestock
Last synced: 3 months ago
JSON representation
Web Service to generate fake stock prices for test and demo purposes
- Host: GitHub
- URL: https://github.com/cloud66-oss/fakestock
- Owner: cloud66-oss
- License: apache-2.0
- Created: 2022-02-21T15:27:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T16:52:09.000Z (about 3 years ago)
- Last Synced: 2024-12-26T18:16:53.485Z (5 months ago)
- Language: Go
- Size: 380 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FakeStock
This is a simple API for test stock prices.
*NOTE: All data produced by this service is randomly generated and is purely for test and demo purposes.*
The API has a few endpoints:
- `/_ping` returns OK 200 with the build commit and the duration since the service has been up.
- `/exchanges` returns the exchanges supported by the service.
- `/tickers` returns all tickers stored in the system.
- `/tickers/:symbol` returns info on the given symbol.All symbols are loaded from CSV files when the service starts. The service then randomly changes the price every 5 seconds randomly by a percentage of the current price.
## Hosting
A hosted version of this service runs on https://test.marketinfo.dev/ and is provided by Cloud 66 as a sample. You can host the service inside or outside a Docker container if you wish.## Credits
Start price files are from NASDAQ website.This repository is maintained by Cloud 66 (https://www.cloud66.com)