Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Day Trades #63

Open
mattspaulding opened this issue Nov 6, 2017 · 2 comments
Open

Day Trades #63

mattspaulding opened this issue Nov 6, 2017 · 2 comments

Comments

@mattspaulding
Copy link

Is there a way to find the current number of day trades and what they are?

@prmichaelsen
Copy link
Contributor

You may have to track your daytrades yourself

@tagroup
Copy link

tagroup commented Jan 24, 2019

The endpoint is https://api.robinhood.com/accounts//recent_day_trades/. You will receive a result with equity_day_trades and option_day_trades and will need to add the number of results under each object.

example:

{
"option_day_trades": [
{
"date": "2019-01-11",
"expiry_date": "2019-01-18",
"chain_id": "23423424-2344-4234-4246-68432342323",
"orders": [
{
"url": "https://api.robinhood.com/options/orders/234234324-2344-2342-2344-62342345/",
"legs": [
"23523532-3522-2353-2342-255534243234"
],
"id": "252353232-3533-2353-2352-725323523"
},
{
"url": "https://api.robinhood.com/options/orders/cd73e8b0-30a4-4856-90f5-7e74b4b95dfd/",
"legs": [
"523424234-2432-2423-2342424234"
],
"id": "23423423-2344-2344-4234-7524234233"
}
]
},
{
"date": "2019-01-10",
"expiry_date": "2019-01-15",
"chain_id": "4324234-432346-4342-ba96-682262342",
"orders": [
{
"url": "https://api.robinhood.com/options/orders/2342424-23423-3424-2342-23424234/",
"legs": [
"23424343-b223-4972-9234-223424234"
],
"id": "3423423-e324-4234-9234-bc324234"
},
{
"url": "https://api.robinhood.com/options/orders/324134124-1234-1234-1244-123412432114/",
"legs": [
"324134124-1234-1234-1244-123412432114"
],
"id": "5555124-1234-1234-1244-123412432114"
}
]
}
],
"equity_day_trades": [
{
"date": "2019-01-12",
"instrument": "https://api.robinhood.com/instruments/41234134-2342-4333-3333-3234324234/",
"expiry_date": "2019-01-15",
"orders": [
"https://api.robinhood.com/orders/134123412-1ab9-4966-32424-12341234fcd1/",
"https://api.robinhood.com/orders/c432423c-3422-cccc-cccc-52412341231/"
]
}
]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants