Get Dashboard Performance
Quick Report and Commission over time: credited earnings and rebate, active traders, USD trading volume and USD net deposits, each as a window total and as a series of `granularity` buckets in `timeZone`, plus the pending earnings and rebate of the window as totals. Earnings and rebate are per credit currency (normally the partner's payout currency); pending amounts are per currency each reward was calculated in, until it is credited. Nothing is converted at request time, and amounts in different currencies are never summed. Rebate, volume and active traders cover trades made while a client was in the partner's structure; net deposits are client-centric (all operations of the clients currently in the structure).
App access token issued by POST /tokens (client credentials). Full-access Apps hold the read and write scopes, read-only Apps hold read only. Send it as Authorization: Bearer <token>.
In: header
Scope: read
Query Parameters
Identifier of the partner user (the IB record) whose dashboard is requested
uuidStart of the window (inclusive), RFC 3339 with an offset. Encode + as %2B: a raw + in a query string reads as a space. Any window length is accepted; long windows take longer.
date-timeEnd of the window (exclusive), RFC 3339 with an offset; must be after startTime. Operations at exactly this time are not counted; to include a whole day, pass the next day's 00:00.
date-timeIANA time zone that places the bucket boundaries; window bounds are instants either way. A bucket starts at the first instant of its local hour, day or month, so daylight saving changes inside the window are bucketed correctly. An unknown name is rejected with 400.
"UTC"Bucket size of the series. A window with more than 5,000 buckets is rejected with 400 (an hourly series over a year, for example).
Value in
- "hour"
- "day"
- "month"
When true, every metric also carries its change versus the previous equal-length window [startTime − (endTime − startTime), startTime). When false, absoluteChange and relativeChange are null.
falseHeader Parameters
Set by the B2Core client-area proxy (/api/ib/v3/users/{userId}/* on B2Core) after its own owner check. IB then checks the owner too: the request must carry the back-office token and name a client in X-B2Core-User-Type / X-B2Core-User-Id, and the operation must be open to the proxy, otherwise 403. Every IB user the request names (userId, filter[userId], filter[parentUserId], filter[paymentUserId], filter[ownerId], filter[ownerUserId], filter[parentUserIdBySubIbs], path {userId}) must belong to that client, otherwise 404; reference lists that take no user skip this check. Without the header the request is not checked.
Value in
- "enforce"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/partner/dashboard/performance?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08&startTime=2019-08-24T14%3A15%3A22Z&endTime=2019-08-24T14%3A15%3A22Z&granularity=hour"{ "report": { "granularity": "hour", "timeZone": "string", "earnings": [ { "currency": "string", "actualValue": "string", "absoluteChange": "string", "relativeChange": "string", "series": [ { "startTime": "2019-08-24T14:15:22Z", "value": "string" } ] } ], "pendingEarnings": [ { "currency": "string", "actualValue": "string" } ], "rebate": [ { "currency": "string", "actualValue": "string", "absoluteChange": "string", "relativeChange": "string", "series": [ { "startTime": "2019-08-24T14:15:22Z", "value": "string" } ] } ], "pendingRebate": [ { "currency": "string", "actualValue": "string" } ], "activeTraders": { "actualValue": 0, "absoluteChange": 0, "relativeChange": "string", "series": [ { "startTime": "2019-08-24T14:15:22Z", "value": 0 } ] }, "volumeUsd": { "currency": "string", "actualValue": "string", "absoluteChange": "string", "relativeChange": "string", "series": [ { "startTime": "2019-08-24T14:15:22Z", "value": "string" } ] }, "netDeposits": { "currency": "string", "actualValue": "string", "absoluteChange": "string", "relativeChange": "string", "series": [ { "startTime": "2019-08-24T14:15:22Z", "value": "string" } ] } }}