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"
},
{
"symbol": "BAC",
"timestamp": 1506680904,
"quantity": -1,
"price": 25.43,
"amount": -25.43,
"side": "sell"
}
],
"count": 237
}

Get the trades history on the specified account, ordered by descending timestamp. Query parameters are:

namedescription
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

Returns an array of trades and a counter of total trades matching the criteria. Every trade has the following structure:

namedescription
symbolsecurity symbol
timestampunix time stamp of the trade
quantitynumber of shares or option contracts, negative for sells, positive for buys
pricethe trade price
amountthe trade amount, which is the quantity multiplied by the lot size and price
sidethe trade side: buy or sell