Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This method show the account summary of the user. The information shown is similar to the Account Summary provided from the platform.

3-1

Request

Method

URL

GET

/AsianOddsService/GetAccountSummary

Type

Params

Values

HEADER

AOToken

string

HEADER

accept

application/json

Request Values

Value

What is this for

AOToken

Token generated also by the Login method. This token identifies which user is requesting or executing the API Method. This has to be sent for all of the request except during execution of the Login method

accept

application/json

Response Values

Value

What is this for

Code

Holds the status of the response. If it is 0, then it is successful. Negative values indicate failure

Credit

Credit of the user’s account

CreditCurrency

Currency of user account’s credit

Message

The message from the system

Outstanding

Outstanding Amount of the user’s account

OutstandingCurrency

Currency of the Outstanding Amount of the user.

TodayPnL

Today’s Profit and Loss

TodayPnlCurrency

Currency of Today’s Profit and Loss

YesterdayPnl

Yesterday’s Profit and Loss

YesterdayPnlCurrency

Currency of Yesterday’s profile and loss

Sample JSON Response

Response Type

Response

Success

{
"Code": 0,
"Result": {
"Credit": 2396.75,
"CreditCurrency": "EUR",
"Message": "Showing Account Summary for User TEST",
"Outstanding": 147.7,
"OutstandingCurrency": "EUR",
"TodayPnL": 0,
"TodayPnLCurrency": "EUR",
"YesterdayPnL": 0,
"YesterdayPnLCurrency": "EUR"
}
}

Fail

{
"Code": -1,
"Result": {
"Credit": 0,
"CreditCurrency": null,
"Message": "Username does not exists",
"Outstanding": 0,
"OutstandingCurrency": null,
"TodayPnL": 0,
"TodayPnLCurrency": null,
"YesterdayPnL": 0,
"YesterdayPnLCurrency": null
}
}

  • No labels