{"info":{"description":"bitcoin-powerlaw.com: everything for long-term bitcoin holders. This public, read-only server gives the bitcoin treasury and instrument data the site publishes. A treasury is a holder of bitcoin (a company, ETF, exchange, state; for example Strategy, id MSTR); an instrument is a stock, preferred share, fund or ETF (for example STRC). Each record says where its values come from (source) and the date they are valid for (as_of); quote both. This is information, not investment advice.","title":"bitcoin-powerlaw.com bitcoin treasury and instrument data","version":"0.1.0"},"openapi":"3.1.0","paths":{"/api/data":{"get":{"description":"Every treasury (holder of bitcoin) and instrument (stock, preferred share, fund, ETF) bitcoin-powerlaw.com publishes, by kind and id.","operationId":"list_data","parameters":[{"in":"query","name":"kind","required":false,"schema":{"description":"treasury or instrument","enum":["treasury","instrument"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":{"properties":{"as_of":{"description":"The date the values are valid for (YYYY-MM-DD)","type":"string"},"fields":{"additionalProperties":true,"type":"object"},"name":{"type":"string"},"source":{"description":"Where the values come from","type":"string"}},"type":"object"},"type":"object"},"type":"object"}}},"description":"Records by kind, then id"}},"summary":"List bitcoin treasuries and instruments"}},"/api/data/{kind}/{id}":{"get":{"description":"One record: its name, fields (for example btc_holdings, dividend_rate, next_ex_date), source and as_of date.","operationId":"get_data","parameters":[{"in":"path","name":"kind","required":true,"schema":{"description":"treasury or instrument","enum":["treasury","instrument"],"type":"string"}},{"in":"path","name":"id","required":true,"schema":{"description":"The ticker or a short name, for example MSTR (case does not matter)","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"id":{"type":"string"},"kind":{"type":"string"},"record":{"properties":{"as_of":{"description":"The date the values are valid for (YYYY-MM-DD)","type":"string"},"fields":{"additionalProperties":true,"type":"object"},"name":{"type":"string"},"source":{"description":"Where the values come from","type":"string"}},"type":"object"}},"type":"object"}}},"description":"The record"},"404":{"description":"The site publishes no such record"}},"summary":"Read one treasury or instrument"}}},"servers":[{"url":"https://bitcoin-powerlaw.com"}]}