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:
name | description |
---|---|
account_number | Required. The account number |
date | Required. The date yyyy-MM-dd |
limit | Optional, 10 by default. The number of items to return on one page |
skip | Optional, 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:
name | description |
---|---|
symbol | security symbol |
timestamp | unix time stamp of the trade |
quantity | number of shares or option contracts, negative for sells, positive for buys |
price | the trade price |
amount | the trade amount, which is the quantity multiplied by the lot size and price |
side | the trade side: buy or sell |