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
parameter | 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
name | type | description |
---|---|---|
symbol | string | The security symbol |
timestamp | number | Unix time stamp of the trade |
quantity | number | Number of shares or option contracts, negative for sells, positive for buys |
price | number | The trade price |
amount | number | The trade amount, which is the quantity multiplied by the lot size and price |
side | string | The trade side. Possible values are buy or sell |
trade_id | string | The trade id |