Skip to content

Instantly share code, notes, and snippets.

@luckman212
Created March 8, 2022 19:57
Show Gist options
  • Save luckman212/540d1cb7d0648f73bdc59c722a07eb79 to your computer and use it in GitHub Desktop.
Save luckman212/540d1cb7d0648f73bdc59c722a07eb79 to your computer and use it in GitHub Desktop.
example md file for heading jump bug in Obsidian 0.13.30

API Providers

CBOE DataShop (aka LiveVol)

clientId: api_client_xxx
secret:   xxx

Alpaca

Key Value
Endpoint URL https://paper-api.alpaca.markets
API Key ID XXX
Secret Key xxxxxxxxxxxxx

Example requests

Account

curl --request GET \
  --url https://paper-api.alpaca.markets/v2/account \
  --header 'APCA-API-KEY-ID: XXX' \
  --header 'APCA-API-SECRET-KEY: XXX'

Quotes

#unfinished

Testing websocket with wscat

npm install -g wscat
wscat -c ws://echo.websocket.org
wscat -c wss://stream.data.alpaca.markets/v2/sip
connected (press CTRL+C to quit)
< [{"T":"success","msg":"connected"}]
> {"action": "auth", "key": "XXX", "secret": "XXX"}
< [{"T":"success","msg":"authenticated"}]
> {"action": "subscribe", "trades": ["AAPL"], "quotes": ["UI", "CMBM"], "bars": ["*"]}
< [{"T":"t","i":96921,"S":"AAPL","x":"D","p":126.55,"s":1,"t":"2021-02-22T15:51:44.208Z","c":["@","I"],"z":"C"}]
< [{"T":"q","S":"AMD","bx":"U","bp":87.66,"bs":1,"ax":"X","ap":87.67,"as":1,"t":"2021-02-22T15:51:45.3355677Z","c":["R"],"z":"C"},{"T":"q","S":"AMD","bx":"U","bp":87.66,"bs":1,"ax":"Q","ap":87.68,"as":4,"t":"2021-02-22T15:51:45.335689322Z","c":["R"],"z":"C"},{"T":"q","S":"AMD","bx":"U","bp":87.66,"bs":1,"ax":"X","ap":87.67,"as":1,"t":"2021-02-22T15:51:45.335806018Z","c":["R"],"z":"C"}]

Finnhub

#unfinished

Key Value
Email XXX
API key xxx
Sandbox APIkey sandbox_xxx

Earnings Calendar / Estimates

curl -s 'https://finnhub.io/api/v1/calendar/earnings?from=2022-02-01&to=2022-03-019&symbol=NET&token=xxx' | jq

Python library

mkvirtualenv finnhub
pip install finnhub-python

Alfred workflow: earn NET

Polygon.io

Free plan is limited to 5 API calls / minute and only has EOD data

Key Value
API Key xxx

Alpha Vantage

API Documentation | Alpha Vantage

Key Value
API Key xxx
Email xxx
@luckman212
Copy link
Author

video

headings2.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment