Skip to main content

Get account trades

    -X GET
--header 'Authorization: Bearer {token here}'
'https://api.lime.co/accounts/{account_number}/trades/{date}?limit={limit}&skip={skip}'

Response example

{
"trades": [
{
"symbol": "AAPL",
"timestamp": 1507735400,
"quantity": 40,
"price": 156.6699,
"amount": 6266.8,
"side": "buy",
"trade_id": "24447436136"
},
{
"symbol": "BAC",
"timestamp": 1506680904,
"quantity": -1,
"price": 25.43,
"amount": -25.43,
"side": "sell",
"trade_id": "24447436121"
}
],
"count": 237
}

Get the trades history on the specified account, ordered by descending timestamp. Returns an array of trades and a counter of total trades matching the criteria.

Request

parameterdescription
account_numberRequired. The account number
dateRequired. The date yyyy-MM-dd
limitOptional, 10 by default. The number of items to return on one page
skipOptional, 0 by default. The number of items to skip

Response

nametypedescription
symbolstringThe security symbol
timestampnumberUnix time stamp of the trade
quantitynumberNumber of shares or option contracts, negative for sells, positive for buys
pricenumberThe trade price
amountnumberThe trade amount, which is the quantity multiplied by the lot size and price
sidestringThe trade side. Possible values are buy or sell
trade_idstringThe trade id