package types // upstream bitcoin api format type Price struct { Price string `json:"price"` Timestamp string `json:"timestamp"` } type DatasourceResponse struct { Data []Price `json:"data"` } // downstream api (proxycon) api format type Entry struct { Amount string `json:"amount"` Timestamp string `json:"timestamp"` } type ListResponse struct { Start string `json:"start"` End string `json:"end"` Min string `json:"min"` Max string `json:"max"` NextCursor *int `json:"next_cursor,omitempty"` Data []Entry `json:"data"` } type PriceResponse struct { Data []Entry `json:"data"` } type AverageResponse struct { Start string `json:"start"` End string `json:"end"` Avg string `json:"avg"` Data []Entry `json:"data"` } type ErrorResponse struct { Code int `json:"code"` Message string `json:"message"` }