API Documentation
Last updated
Last updated
You can use our API to access Wingman user's position data, enabling you to build additional features and improvements on top of our foundation.
This API is very simple for now and only fetches information (GETs). As in, there is currently no write access (POST) to Wingman.
For a given user, it can return:
full open positions hierarchy (position --> legs --> transactions)
closed positions (with filters)
More endpoints will be added according to demand, so please reach out with requests by emailing ben@wingmantracker.com.
Wingman uses API Keys and User Tokens to allow access to the API. Each User requests a key that can only be used for your application. You can create a Personal API Key and Token on the Wingman Settings page.
And to register your application for any Wingman user to use, please email ben@wingmantracker.com.
GET
https://app.wingmantracker.com/api/v1/
Check to see if your API Key and User Token is valid and that the API is responding.
Name | Type | Description |
---|---|---|
GET
https://app.wingmantracker.com/api/v1/open_positions
This endpoint retrieves all Open Positions with their nested entities (Position --> Legs --> Transactions).
GET
https://app.wingmantracker.com/api/v1/closed_positions
This endpoint retrieves all Closed Positions for a user. It can potentially be a lot of data because it's the entire history in Wingman for that user, so you are encouraged to use filters. You can submit multiple filters and they will be combined via AND condition. For example, specify a starting_entry_date and ending_entry_date will give you the expected date range.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
api_key
string
Your Developer API Key
Authentication
string
The User's Token for your application. Format is "Bearer insert_user_token".
api_key
string
Your Developer API Key
Authentication
string
The User's Token for your application. Format is "Bearer insert_user_token".
api_key
string
Your Developer API Key
ending_close_date
string
Return closed positions that were closed before this date. YYYY-MM-DD format.
starting_close_date
string
Return closed positions that were closed after this date. YYYY-MM-DD format.
ending_entry_date
string
Return closed positions that were entered before this date. YYYY-MM-DD format.
starting_entry_date
string
Return closed positions that were entered after this date. YYYY-MM-DD format.
account_id
integer
Return closed positions that are in the specified account.
Authentication
string
The User's Token for your application. Format is "Bearer insert_user_token".