Skip to content

dmitrypro77/finquota-callback

Repository files navigation

FinQuotaCallback

The Cloudflare Worker, which you can use as a callback URL within Finquota, to send notifications about your stock strategy updates via your preferred service provider.

Whenever you create a new strategy on Finquota.com, you can specify a new worker as a callback and receive notifications about your buy/sell events using your preferred service. You can technically extend this worker to bind Cloudflare D1 serverless SQL databases and store these events or bind KV or R2 storage storage.

New Strategy Finquota

This tool might help with forward testing ("real-time") your stock trading strategy and analyzing profits and losses before actually buying or selling anything.

List of Supported Providers

Provider Notification Type Description Env Variables
Mailgun Email Mailgun Service Provider to send emails notifications. MAILGUN_API_KEY = "your_mailgun_api_key"
MAILGUN_DOMAIN = "test.com"
MAILGUN_FROM = "[email protected]"
MAILGUN_TO = "[email protected]"
MAILGUN_SUBJECT = "Trading Update"
Slack App Notification Slack Webhook message notifications. WEBHOOK_URL = "your_webhook_url"
Google Chat App Notification Google Chat Webhook message notifications. WEBHOOK_URL = "your_webhook_url"

Deployment

  • Update wrangler.toml with env variables depending on your preferred provider (or use "secret" variables).
  • Run yarn deploy
  • Done!
  • How to Find a Callback URL?

You can find callback url in your Cloudflare dashboard account: Worker & Pages > Your Worker > Settings > Triggers > Routes.

Run Locally

  • Update wrangler.toml file with config settings.
  • Run yarn install
  • Run yarn dev

Test

  • Run yarn test to run tests locally

Disclaimer

Developed for educational purposes only, and please do not buy or sell anything unless you have tested it well and understand the risks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published