Endpoints
Get trades
Public trades of a market, newest first, described from the taker’s side. Pass cursor back for the next (older) page. Accounts are never published.
GET
/
markets
/
{ticker}
/
trades
Get trades
curl --request GET \
--url https://api.updown.fast/trade-api/v1/markets/{ticker}/tradesimport requests
url = "https://api.updown.fast/trade-api/v1/markets/{ticker}/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.updown.fast/trade-api/v1/markets/{ticker}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"trades": [
{
"trade_id": "<string>",
"market_ticker": "<string>",
"taker_outcome": "up",
"taker_action": "buy",
"price": "<string>",
"up_price": "<string>",
"down_price": "<string>",
"count": "<string>",
"ts_ms": 4503599627370495
}
],
"cursor": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}⌘I
Get trades
curl --request GET \
--url https://api.updown.fast/trade-api/v1/markets/{ticker}/tradesimport requests
url = "https://api.updown.fast/trade-api/v1/markets/{ticker}/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.updown.fast/trade-api/v1/markets/{ticker}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"trades": [
{
"trade_id": "<string>",
"market_ticker": "<string>",
"taker_outcome": "up",
"taker_action": "buy",
"price": "<string>",
"up_price": "<string>",
"down_price": "<string>",
"count": "<string>",
"ts_ms": 4503599627370495
}
],
"cursor": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}