public_test.go: add another test case for /api/v2/tickers
parent
4b63b483e4
commit
9455417e8b
|
@ -563,6 +563,15 @@ func httpTestsBitcoinType(t *testing.T, ts *httptest.Server) {
|
|||
`{"ts":7980386400,"rates":{"usd":-1}}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "apiFiatRates future timestamp, all currencies",
|
||||
r: newGetRequest(ts.URL + "/api/v2/tickers?timestamp=7980386400"),
|
||||
status: http.StatusOK,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
body: []string{
|
||||
`{"ts":7980386400,"rates":{}}`,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "apiFiatRates get EUR rate (exact timestamp)",
|
||||
r: newGetRequest(ts.URL + "/api/v2/tickers?timestamp=1574344800¤cy=eur"),
|
||||
|
|
Loading…
Reference in New Issue