this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 42 lines 886 B view raw
1package types 2 3// upstream bitcoin api format 4type Price struct { 5 Price string `json:"price"` 6 Timestamp string `json:"timestamp"` 7} 8 9type DatasourceResponse struct { 10 Data []Price `json:"data"` 11} 12 13// downstream api (proxycon) api format 14type Entry struct { 15 Amount string `json:"amount"` 16 Timestamp string `json:"timestamp"` 17} 18 19type ListResponse struct { 20 Start string `json:"start"` 21 End string `json:"end"` 22 Min string `json:"min"` 23 Max string `json:"max"` 24 NextCursor *int `json:"next_cursor,omitempty"` 25 Data []Entry `json:"data"` 26} 27 28type PriceResponse struct { 29 Data []Entry `json:"data"` 30} 31 32type AverageResponse struct { 33 Start string `json:"start"` 34 End string `json:"end"` 35 Avg string `json:"avg"` 36 Data []Entry `json:"data"` 37} 38 39type ErrorResponse struct { 40 Code int `json:"code"` 41 Message string `json:"message"` 42}