Welcome to the SnapTrade developer hub. You'll find comprehensive documentation for all our endpoints, as well as detailed guides to help you in your build.
If you need further assistance or have any questions, please send us an email at email@example.com.
If you already have API Keys, you can use our demo tool to start making requests.
Call the endpoint to make sure the API is live and that you can make the most basic request. You should receive a response indicating the API status, current server timestamp, and internal API minor version number.
Easily integrate with SnapTrade in your programming language of choice by using one of our SDKs:
To create a secure brokerage authorization, you first need to register a user.
Call the endpoint with a
userId which can be any string as long as it's unique to a user. Upon receiving a 200 response, the user is registered successfully and you should receive a response with a user id and a randomly generated user secret.
You can think of the user secret as a password that you will store on your users’ behalf. This, combined with your consumerKey provides additional security for your users’ data. The user id and user secret need to be passed along to all SnapTrade API endpoints that involve access to user data.
To initiate a brokerage authorization for one of your users, you first create a redirect URI for that user to securely login to the SnapTrade Connection Portal and make brokerage connections.
The redirect URI can be generated by sending a
POST request to the
userSecret (previously generated through calling the
have to be in the query parameters of the POST request.
The response includes a redirectURI to be used to login a user to the connection portal.
Once a user successfully logs into the connection portal, they can select their brokerage and go through the connection flow to connect their brokerage accounts.
In the response, you should get an array of objects containing each account holdings data.
To place an order through SnapTrade API, you need to go through the following two steps:
Example of the response:
Example of the response for a failed request:
2- To place the order you need to send in the trade id (received through calling
Trade Impact endpoint) as a query parameter to the endpoint.
The successful request would indicate the status of the order (
PENDING, etc.) along with other information related
to the order placed.
Example of the response: