Skip to main content
GET
Calculate position

Authorizations

X-Api-Key
string
header
required

API key created from the magic-markets website

Query Parameters

status
string[]
sport
string[]
event_id
string[]
order_type
string[]
date_from
string<date-time>
date_to
string<date-time>
include_cashout_info
boolean
default:false

Accepted for compatibility. cashout_info is currently returned on every position regardless of this flag.

Response

Position calculation

status
enum<string>
Available options:
ok
data
object

Aggregate profit/loss position over the filtered orders. sport, event_id and event_info are present once the filters match at least one order.