Advisor API ## Sections • [Getting Started](https://docs.tradier.com/advisor-api/getting-started.md): Tradier Advisor APIs were designed for registered entities to get up and running with their advisory or financial product without the need of complex clearing relationships and technology. Our brokerage and technical support teams will work with you through your launch and make sure you get to market as fast as possible. Account Opening Send new account applications for 7 different type of investment accounts. Asynchronous updates of the application approval process are sent to your platform in real-time. Account Funding Electronically establish ACH profiles using bank information and be ready to send transactions within a day. Use APIs to complete ACH deposits and withdrawals, as well as check withdrawals. Documents Give customers access to their statements, confirms, and tax documents with a secure and compliant workflow. We’ll also work with you regarding co-branding these documents and making sure customers get a great experience. User and Account Data You can fetch balances, positions, activity, orders using a user or account number. This allows you to make the most efficient use of the API. Electronically fetch and deliver co-branded statements and confirms. • [Authentication](https://docs.tradier.com/advisor-api/getting-started/authentication.md): Once we’ve registered your business on our platform we’ll provide you with a client ID and a client secret. In the future, OAuth may be worthwhile, however all Advisor API calls are currently authenticated using HTTP Basic Authentication with these 2 values. Client Id: kaGA65sIl79IdXxr3lnGs7J2C9CywQtJ Client secret: ueeKzJOEh0fh6Dh8 The Authorization header is constructed as follows: Client Id and client secret are combined into a string “client id:client secret”. The resulting string literal is then encoded using Base64. The authorization method and a space, i.e. “Basic “ is then put before the encoded string. For example, if the user agent uses ‘kaGA65sIl79IdXxr3lnGs7J2C9CywQtJ’ as the client Id and ‘ueeKzJOEh0fh6Dh8’ as the client secret then the header is formed as follows: kaGA65sIl79IdXxr3lnGs7J2C9CywQtJ:ueeKzJOEh0fh6Dh8 a2FHQTY1c0lsNzlJZFh4cjNsbkdzN0oyQzlDeXdRdEo6dWVlS3pKT0VoMGZoNkRoOA== Authorization: Basic a2FHQTY1c0lsNzlJZFh4cjNsbkdzN0oyQzlDeXdRdEo6dWVlS3pKT0VoMGZoNkRoOA== Helpful links: http://en.wikipedia.org/wiki/Basic_access_authentication • [Endpoints](https://docs.tradier.com/advisor-api/getting-started/endpoints.md): Our endpoints require SSL encryption (TLS 1.2) and SNI support. Each endpoint corresponds with a particular product or service. All requests should be made using HTTPS. You must be a Tradier Partner or Tradier Advisor to use these APIs. Request/Response URL Plain text https://api.tradier.com/v2/ https://api.tradier.com/v2/ • [Requests](https://docs.tradier.com/advisor-api/getting-started/requests.md): In the interest of simplicity, we’ve done our best to follow standard REST structures for our APIs. This entails leveraging simple resource endpoints and employing HTTP verbs where possible to make the endpoints intuitive. Parameters All endpoints require authentication and should include the Authorization header and be authenticated using HTTP Basic Authentication. See Authentication. Path parameters are widely used throughout the API. Mostly for specifying Id’s of ownership. I.e. /a/v1/accounts/54685251/balances would be a request for balances on account 54685251. Additional parameters may be sent on the query string for GET requests. Plain text GET /a/v1/accounts?filter=approved HTTP/1.1 Authorization: Basic a2FHQTY1c0lsNzlJZFh4cjNsbkdzN0oyQzlDeXdRdEo6dWVlS3pKT0VoMGZoNkRoOA== Host: api.tradier.com Connection: close GET /a/v1/accounts?filter=approved HTTP/1.1 Authorization: Basic a2FHQTY1c0lsNzlJZFh4cjNsbkdzN0oyQzlDeXdRdEo6dWVlS3pKT0VoMGZoNkRoOA== Host: api.tradier.com Connection: close When submitting POST or PUT requests for creating or updating records all bodies must be valid, well-formed JSON. Typically, it will be the same JSON you can expect for a GET request from the same resource. For example, to create a new webhook, you would send the following request: Plain text POST /a/v1/webhooks HTTP/1.1 Authorization: Basic a2FHQTY1c0lsNzlJZFh4cjNsbkdzN0oyQzlDeXdRdEo6dWVlS3pKT0VoMGZoNkRoOA== Content-Type: application/json Host: api.tradier.com Connection: close { "url": "http://tradier.com/example/webhook" } POST /a/v1/webhooks HTTP/1.1 Authorization: Basic a2FHQTY1c0lsNzlJZFh4cjNsbkdzN0oyQzlDeXdRdEo6dWVlS3pKT0VoMGZoNkRoOA== Content-Type: application/json Host: api.tradier.com Connection: close { "url": "http://tradier.com/example/webhook" } • [Responses](https://docs.tradier.com/advisor-api/getting-started/responses.md): Responses Pretty simple: all successful responses are JSON. Errors In trying to keep errors simple and easy to understand, most errors are handled using HTTP status codes. In the event that there is an expected error, you will get back a JSON error payload where we’ll tell you which fields you forgot to send or other details around the API request. • [Applications](https://docs.tradier.com/advisor-api/applications.md): Getting Started The process for opening a Tradier Brokerage account is very simple and straightforward. We’ve also optimized the process for the most seamless integration with your platform. Collect the Required Information: Have your customers fill out the required information. Temporarily store this information to be sent to Tradier Brokerage. Approve the Application: A registered representative must approve the application within your RIA. Once approved, format the data to be sent to Tradier Brokerage. Send the Application: Send the application using a POST /applications request and following the required structure of the application data structure. User Verifies: We’ll send a co-branded email to the customer letting them digitally sign the agreements, after which they’ll be redirected back to your site. Here is the text of that Email: Plain text Thank you for submitting your <ADVISOR NAME> account application to Tradier Brokerage, Inc. Please review the following Tradier Brokerage agreements and disclosures associated with your account: Customer Agreement Privacy/CIP Business Continuity Electronic Delivery Consent Electronic Signature Acknowledgement W9 Certification Limited Trading Authorization By selecting this link you are acknowledge that: I accept electronic delivery of these documents. I have read these documents. I have printed/saved the documents and don?t need them mailed to me. I would like to open a brokerage account with Tradier Brokerage. I understand that you have designated Apex Clearing Corporation as your clearing firm. Click here to verify your acknowledgement. Sincerely, Tradier Brokerage Selected Broker for <ADVISOR NAME> Tradier Brokerage Contact Service PO Box 49056, Charlotte, NC 28277, (980) 272-3880 This message is confidential and sent by Tradier Brokerage, Inc. solely for use by intended recipient. Tradier Brokerage Inc. may NOT accept any orders or instructions to buy or sell securities of any kind by email. All such instructions and orders must be placed on line or via telephone. The information contained within this email is based on information available and believed to be accurate at the time it was prepared. Electronic mail sent through the internet is generally not secure and may be intercepted by a third party. Thank you for submitting your <ADVISOR NAME> account application to Tradier Brokerage, Inc. Please review the following Tradier Brokerage agreements and disclosures associated with your account: Customer Agreement Privacy/CIP Business Continuity Electronic Delivery Consent Electronic Signature Acknowledgement W9 Certification Limited Trading Authorization By selecting this link you are acknowledge that: I accept electronic delivery of these documents. I have read these documents. I have printed/saved the documents and don?t need them mailed to me. I would like to open a brokerage account with Tradier Brokerage. I understand that you have designated Apex Clearing Corporation as your clearing firm. Click here to verify your acknowledgement. Sincerely, Tradier Brokerage Selected Broker for <ADVISOR NAME> Tradier Brokerage Contact Service PO Box 49056, Charlotte, NC 28277, (980) 272-3880 This message is confidential and sent by Tradier Brokerage, Inc. solely for use by intended recipient. Tradier Brokerage Inc. may NOT accept any orders or instructions to buy or sell securities of any kind by email. All such instructions and orders must be placed on line or via telephone. The information contained within this email is based on information available and believed to be accurate at the time it was prepared. Electronic mail sent through the internet is generally not secure and may be intercepted by a third party. Wait for a response: You can either poll against our endpoints for the status of your applications. Or you can register a webhook with us, and we’ll let you know when the status changes. This can take up to 1 business day. Behind the scenes, our experienced team of brokerage operations people review our third-party CIP verifications and make sure all I’s are dotted and T’s are crossed. Once satisfied, we’ll send the application to our clearing provider for consideration. Maintain Compliance - Customer privacy and security is the highest priority of Tradier Brokerage. Please review all compliance guidelines outlined in the Requirements section. Foreign Applications Foreign applications follow a slightly different flow: Send the Application: Send the application using a POST /applications request and following the required structure of the foreign application data structure. User Verifies: We’ll send a co-branded email to the customer letting them digitally sign the agreements, after which they’ll be redirected back to your site. Agent Verifies: Once the user verifies the application, we’ll send a co-branded email to the agent letting them digitally sign the Limited Trading Authorization (LTA) agreement. Upload Documents: Upload documents using a PUT /applications/:id/images request. At least 2 documents are required per applicant: ID Document: a merged image containing the front/back and the translation of the ID document. Image Signature: a digital image signature. Wait for a response: You can either poll against our endpoints for the status of your foreign applications. Or you can register a webhook with us, and we’ll let you know when the status changes. This can take up to 1 business day. • [Application Types](https://docs.tradier.com/advisor-api/applications/application-types.md): You can open the following types of applications with Tradier Brokerage. Some applications require different form objects as outlined below. The applicationType is also listed, which should be sent when opening the application. Individual (Cash) individual_cash newAccountForm or newAccountForeignForm (if foreign) optionAgreementForm (if options enabled) Individual (Margin) individual_margin newAccountForm optionAgreementForm (if options enabled) Joint Survivor (Cash) joint_cash_survivor newAccountForm or newAccountForeignForm (if foreign) jointRightsOfSurvivorshipForm optionAgreementForm (if options enabled) Joint Survivor (Margin) joint_margin_survivor newAccountForm jointRightsOfSurvivorshipForm optionAgreementForm (if options enabled) Rollover IRA rollover_ira newAccountIraForm (same as newAccountForm) iraSepRolloverAgreementForm retirementAccountBeneficiariesForm optionAgreementForm (if options enabled) Traditional IRA traditional_ira newAccountIraForm (same as newAccountForm) iraSepRolloverAgreementForm retirementAccountBeneficiariesForm optionAgreementForm (if options enabled) Roth IRA roth_ira newAccountIraForm (same as newAccountForm) rothIraAgreementForm retirementAccountBeneficiariesForm optionAgreementForm (if options enabled) • [Foreign Applications](https://docs.tradier.com/advisor-api/applications/foreign-applications.md): Opening a foreign account through the API requires some additional steps to complete the process. More specifically, document images need to be uploaded to verify identification and signatures. These documents must be uploaded prior to application approval. Required Images: Identification - an active government ID, such as a passport. Signature - an image of the customer's signature, either digitally captured or a photo of the signature on paper. Application Flow Collect user details, including a picture of the ID and signature. Submit the application. Using the application ID, upload documents using the Document Upload API Once the application reaches the VERIFIED state, it will be reviewed and approved. • [Onboarding Requirements](https://docs.tradier.com/advisor-api/applications/onboarding-requirements.md): Onboarding customers is a delicate process, and we’ve done our best to give you as much control over that process as possible. Due to some regulations and compliance needs, please follow the below guidelines while building your online account opening process. This page is not meant to be an exhaustive list of all required fields. Given the many different types of permutations of accounts, you should rely on the examples for that list. This page should provide with the required text needed for parts of your onboarding process. If you have any questions, please don’t hesitate to reach techsupport@tradier.com . Customer Information During the onboarding process, it makes sense to store customer information. However, once the application is processed, we recommend obfuscating or removing sensitive information that isn’t necessary for day-to-day operations. Storing Customer Information Please make sure all sensitive information is encrypted and secured. In the event of a data breach, please inform service@tradierbrokerage.com immediately. Trusted Contact According to FINRA rule 4512, it is required to present to all applicants 65 or older with the option of providing a “Trusted Contact Person” if the applicant requests this addition, it is necessary to collect the name, email, and phone number for the trusted contact. For details of how to submit this in the application, please refer to the Application data structure. There is also an request example in the Individual Cash Application JSON. Required Text Identity name: Customers should provide their legal name. identity.citizenshipCountry: If this equals “USA” identity.permanentResident response is not required. identity.permanentResident: Tradier Brokerage is able to open accounts for US Citizens and Permanent Residents. Please send YES or NO for this field, if necessary. Contact contact.homeAddress: A US address is required for the home address and may not be a PO Box. Disclosures disclosures.isPoliticallyExposed: Question must be presented with the following text: Are you or any member of your immediate family, or any of your personal or business associates a senior political figure? disclosures.isControlPerson: Question must be presented with the following text: Are you or any of your family members a director, 10% shareholder or policy-making officer of a publicly traded company? disclosures.isAffiliatedExchangeOrFINRA: Question must be presented with the following text: Are you or any of your family members affiliated with any securities firm, bank, securities regulatory body, insurance company or trust company? Investment Profile investmentProfile.totalNetWorthUSD: Must include text noting that total is excluding residence. investmentProfile.liquidNetWorthUSD: Must include text noting that total is cash and liquid investments only. Ranges investmentProfile.totalNetWorthUSD Plain text TOTAL_NETWORTH: [ {value: '0-50000', label: '$0 - $50,000'}, {value: '50001-100000', label: '$50,001 - $100,000'}, {value: '100001-200000', label: '$100,001 - $200,000'}, {value: '200001-500000', label: '$200,001 - $500,000'}, {value: '500001-1000000', label: '$500,001 - $1,000,000'}, {value: '1000001-5000000', label: '$1,000,001 - $5,000,000'}, {value: '5000001-9999999', label: '$5,000,000+'} ] TOTAL_NETWORTH: [ {value: '0-50000', label: '$0 - $50,000'}, {value: '50001-100000', label: '$50,001 - $100,000'}, {value: '100001-200000', label: '$100,001 - $200,000'}, {value: '200001-500000', label: '$200,001 - $500,000'}, {value: '500001-1000000', label: '$500,001 - $1,000,000'}, {value: '1000001-5000000', label: '$1,000,001 - $5,000,000'}, {value: '5000001-9999999', label: '$5,000,000+'} ] investmentProfile.liquidNetWorthUSD Plain text LIQUID_NETWORTH: [ {value: '0-50000', label: '$0 - $50,000'}, {value: '50001-100000', label: '$50,001 - $100,000'}, {value: '100001-200000', label: '$100,001 - $200,000'}, {value: '200001-500000', label: '$200,001 - $500,000'}, {value: '500001-1000000', label: '$500,001 - $1,000,000'}, {value: '1000001-5000000', label: '$1,000,001 - $5,000,000'}, {value: '5000001-9999999', label: '$5,000,000+'} ] LIQUID_NETWORTH: [ {value: '0-50000', label: '$0 - $50,000'}, {value: '50001-100000', label: '$50,001 - $100,000'}, {value: '100001-200000', label: '$100,001 - $200,000'}, {value: '200001-500000', label: '$200,001 - $500,000'}, {value: '500001-1000000', label: '$500,001 - $1,000,000'}, {value: '1000001-5000000', label: '$1,000,001 - $5,000,000'}, {value: '5000001-9999999', label: '$5,000,000+'} ] investmentProfile.annualIncomeUSD Plain text ANNUAL_INCOME: [ {value: '0-25000', label: '$0 - $25,000'}, {value: '25001-50000', label: '$25,001 - $50,000'}, {value: '50001-100000', label: '$50,001 - $100,000'}, {value: '100001-200000', label: '$100,001 - $200,000'}, {value: '200001-300000', label: '$200,001 - $300,000'}, {value: '300001-500000', label: '$300,001 - $500,000'}, {value: '500001-1200000', label: '$500,001 - $1,200,000'}, {value: '1200001-9999999', label: '$1,200,000+'} ] ANNUAL_INCOME: [ {value: '0-25000', label: '$0 - $25,000'}, {value: '25001-50000', label: '$25,001 - $50,000'}, {value: '50001-100000', label: '$50,001 - $100,000'}, {value: '100001-200000', label: '$100,001 - $200,000'}, {value: '200001-300000', label: '$200,001 - $300,000'}, {value: '300001-500000', label: '$300,001 - $500,000'}, {value: '500001-1200000', label: '$500,001 - $1,200,000'}, {value: '1200001-9999999', label: '$1,200,000+'} ] investmentProfile.riskTolerance and investmentProfile.investmentObjective Plain text [ { label: 'High/Speculation', description: 'I am willing to accept maximum risk to my initial principal to aggressively seek maximum returns, and I understand I could lose most, or all, of the money invested.', value: 'high/speculation' }, { label: 'Medium/Growth', description: 'I am willing to accept high risk to my principal, including high volatility, to seek high returns over time, and I understand I could lose a substantial amount of the money invested.', value: 'medium/growth' }, { label: 'Low/Income', description: 'I am willing to accept low risk to my initial principal, including low volatility, to seek a modest level of portfolio returns.', value: 'low/income' } ] [ { label: 'High/Speculation', description: 'I am willing to accept maximum risk to my initial principal to aggressively seek maximum returns, and I understand I could lose most, or all, of the money invested.', value: 'high/speculation' }, { label: 'Medium/Growth', description: 'I am willing to accept high risk to my principal, including high volatility, to seek high returns over time, and I understand I could lose a substantial amount of the money invested.', value: 'medium/growth' }, { label: 'Low/Income', description: 'I am willing to accept low risk to my initial principal, including low volatility, to seek a modest level of portfolio returns.', value: 'low/income' } ] investmentProfile.investmentExperience. This field is an average of two other required fields: investmentProfile.stockExperience and investmentProfile.optionExperience. During the application process, you must present the customer with experience questions with the following values: Plain text [ {value: 0, label: '0 Years'}, {value: 1, label: '1 to 2 Years'}, {value: 2, label: '3 to 5 Years'}, {value: 3, label: 'More than 5 Years'} ] [ {value: 0, label: '0 Years'}, {value: 1, label: '1 to 2 Years'}, {value: 2, label: '3 to 5 Years'}, {value: 3, label: 'More than 5 Years'} ] Their response is stored in investmentProfile.stockExperience and investmentProfile.optionExperience. The average value is then mapped to the array: ['none','limited','good','extensive'] for investmentProfile.investmentExperience. Agreements After an application has been submitted, your customer will be presented the appropriate agreements and disclosures via an email from Tradier Brokerage. During the application process, we request that at a minimum you present the customer our “Customer Agreement” and “Privacy/CIP” disclosure. These can be found on the Tradier Brokerage website. During the ACH profile creation process, the customer must be presented with the “ACH Agreement” and the “Electronic Signature Acknowledgement.” • [Get an Application](https://docs.tradier.com/advisor-api/applications/get-an-application.md): Fetch the details of an application that was submitted. You can poll against this endpoint to see status changes as well. • [Apply for an Account](https://docs.tradier.com/advisor-api/applications/apply-for-an-account.md): Send a customer application for review, processing and account opening • [Get Images](https://docs.tradier.com/advisor-api/applications/get-images.md): Get information from uploaded images for a particular application • [Upload an Image](https://docs.tradier.com/advisor-api/applications/upload-an-image.md): Upload an image for an application • [Get an Image](https://docs.tradier.com/advisor-api/applications/get-an-image.md): Retrieve a specific image for an application • [Delete an Image](https://docs.tradier.com/advisor-api/applications/delete-an-image.md): Delete a specific image from an application • [ACH Profiles](https://docs.tradier.com/advisor-api/ach-profiles.md): Setting up an ACH profile is the easiest way for customers to fund their accounts. ACH profiles are linked directly to customer bank accounts allowing them to make deposits and withdrawals between their brokerage account and their bank. One ACH Profile per account We do not allow multiple ACH profiles to be active and linked to a single account. We currently support the following methods of ACH verification: Microdeposits MICRO_DEPOSITS Microdeposits are used to verify that the customer has access to the bank account for the profile. Two small deposits are made in the account and the customer will be asked to verify the amounts before being allowed to initiate any transactions. Plaid PLAID Plaid is used to fetch and verify the customer information. In order to open an ACH profile, you must use two products from Plaid: Auth and Identity. Once you retrieve this data from Plaid, you will need to send us the JSON payload in the meta field when creating the ACH profile. Our operations team will review the data and approve/reject the profile. • [Get ACH Profiles](https://docs.tradier.com/advisor-api/ach-profiles/get-ach-profiles.md): Fetch all current ACH profiles for an account • [Create an ACH Profile](https://docs.tradier.com/advisor-api/ach-profiles/create-an-ach-profile.md): Create a new ACH profile for an account • [Get an ACH Profile](https://docs.tradier.com/advisor-api/ach-profiles/get-an-ach-profile.md): Get details of a specific ACH profile • [Verify an ACH Profile](https://docs.tradier.com/advisor-api/ach-profiles/verify-an-ach-profile.md): Verify an ACH profile using micro-deposits or other verification methods • [Cancel an ACH Profile](https://docs.tradier.com/advisor-api/ach-profiles/cancel-an-ach-profile.md): Cancel an ACH profile • [Transactions](https://docs.tradier.com/advisor-api/transactions.md): Transactions APIs provide the functionality to move money into or out of a brokerage account. We aim to support more transactional types in the future including ACATs and wires. We currently support the following transactions: ACH Deposits (ACH DEPOSIT): Use an existing ACH profile to deposit money into an account. ACH Withdrawals (ACH WITHDRAWAL): Use an existing ACH profile to withdraw money from an account. Note that we require the IP address of the customer who requested the transaction. This is the address of the customer, not your application servers. Transactions are permitted up to a maximum of $25,000. One transaction is permitted per account per day We do not allow multiple transactions to be submitted within a 24 hour period. IRA accounts are not permitted to use this API. • [Get Transactions](https://docs.tradier.com/advisor-api/transactions/get-transactions.md): Get information about all transactions • [Create a Transaction](https://docs.tradier.com/advisor-api/transactions/create-a-transaction.md): Create a deposit or withdrawal transaction • [Get a Transaction](https://docs.tradier.com/advisor-api/transactions/get-a-transaction.md): Get details of a specific transaction • [Cancel a Transaction](https://docs.tradier.com/advisor-api/transactions/cancel-a-transaction.md): Cancel a pending transaction • [Documents](https://docs.tradier.com/advisor-api/documents.md): Due to various regulatory and compliance decisions, account documents, such as statements and confirmations, cannot be delivered by proxy. These documents must be sent directly to the customer. In order to satisfy this requirement while creating a clean customer experience, we’ve built the following document delivery workflow. Show the user their documents. Using the Get Documents endpoint, you can fetch a list of documents available for a customer’s account. The default timeframe to return documents is the previous 6 months, but you may request documents for any time window. Request delivery of a document Make a request to the Deliver Documents endpoint to request delivery to the customer. You may request delivery of a single document at a time. Customer receives document link via email. Once the Deliver Documents endpoint is requested successfully. We will email the customer with a link to their document. Document links expire! Document links will only be available for 5 minutes, after which the link will expire, and a new delivery must be requested. • [Get Documents](https://docs.tradier.com/advisor-api/documents/get-documents.md): Fetch documents available for this account • [Deliver Documents](https://docs.tradier.com/advisor-api/documents/deliver-documents.md): Request delivery of documents for an account • [Webhooks](https://docs.tradier.com/advisor-api/webhooks.md): Webhook management for real-time notifications • [Get Webhooks](https://docs.tradier.com/advisor-api/webhooks/get-webhooks.md): Fetch all current webhooks being processed for your branch • [Get a Webhook](https://docs.tradier.com/advisor-api/webhooks/get-a-webhook.md): Get details of a specific webhook • [Create a Webhook](https://docs.tradier.com/advisor-api/webhooks/create-a-webhook.md): Add a webhook to your branch to begin receiving updates to applications and ACH profiles as they happen. You may have more than one webhook for your branch. • [Delete a Webhook](https://docs.tradier.com/advisor-api/webhooks/delete-a-webhook.md): Delete a webhook from your branch • [Test Application Hook](https://docs.tradier.com/advisor-api/webhooks/test-application-hook.md): Send a test application webhook payload • [Test ACH Profile Hook](https://docs.tradier.com/advisor-api/webhooks/test-ach-profile-hook.md): Send a test ACH profile webhook payload • [Test Transaction Hook](https://docs.tradier.com/advisor-api/webhooks/test-transaction-hook.md): Send a test transaction webhook payload • [Application Payloads](https://docs.tradier.com/advisor-api/webhooks/application-payloads.md): Example application webhook payloads for the Tradier Brokerage API. Application Submitted JSON { "applicationId": 677, "clearingAccount": null, "email": "test@example.com", "type": "APPLICATION", "action": "SUBMITTED", "branchId": 1 } Application Approved JSON { "applicationId": 677, "clearingAccount": "6YA00000", "email": "test@example.com", "type": "APPLICATION", "action": "APPROVED", "branchId": 1 } Application Rejected JSON { "applicationId": 677, "clearingAccount": null, "email": "test@example.com", "type": "APPLICATION", "action": "REJECTED", "branchId": 1 } Application Pending JSON { "applicationId": 677, "clearingAccount": "6YA00000", "email": "test@example.com", "type": "APPLICATION", "action": "PENDING", "branchId": 1 } Application Verified JSON { "applicationId": 677, "clearingAccount": "6YA00000", "email": "test@example.com", "type": "APPLICATION", "action": "VERIFIED", "branchId": 1 } Application Completed JSON { "applicationId": 677, "clearingAccount": "6YA00000", "email": "test@example.com", "type": "APPLICATION", "action": "COMPLETED", "branchId": 1 } Application Canceled JSON { "applicationId": 677, "clearingAccount": "6YA00000", "email": "test@example.com", "type": "APPLICATION", "action": "CANCELED", "branchId": 1 } Application Authorized JSON { "applicationId":123, "clearingAccount":"6YA0000", "type":"APPLICATION", "action":"AUTHORIZED", "branchId":1, "email":"test@example.com", "accessToken":"8ZEY1RFSKJHDS29384tT4PAW4tsNfze" } Application Verification JSON { "applicationId":123, "type":"APPLICATION", "action":"VERIFICATION", "branchId":1, "email":"test@example.com", "verifications":[ { "applicantId":1, "name":"George Washington", "address":false, "dob":false, "snn":false } } • [ACH Payloads](https://docs.tradier.com/advisor-api/webhooks/ach-payloads.md): Example ACH profile webhook payloads for the Tradier Brokerage API. ACH profile Submitted JSON { "profileId": 580, "clearingAccount": "6YA000000", "type": "ACH_PROFILE", "action": "SUBMITTED", "branchId": 1 } ACH profile Pending JSON { "profileId": 580, "clearingAccount": "6YA000000", "type": "ACH_PROFILE", "action": "PENDING", "branchId": 1 } ACH profile Approved JSON { "profileId": 580, "clearingAccount": "6YA000000", "type": "ACH_PROFILE", "action": "APPROVED", "branchId": 1 } ACH profile Canceled JSON { "profileId": 580, "clearingAccount": "6YA000000", "type": "ACH_PROFILE", "action": "CANCELED", "branchId": 1 } ACH Microdeposits Posted JSON { "profileId": 580, "clearingAccount": "6YA000000", "type": "ACH_PROFILE", "action": "MICRODEPOSITS_POSTED", "branchId": 1 } • [Transaction Payloads](https://docs.tradier.com/advisor-api/webhooks/transaction-payloads.md): Example Transaction webhook payloads for the Tradier Brokerage API. Deposit Transaction Submitted JSON { "transactionId": 1, "clearingAccount": "6YA000000", "type": "TRANSACTION", "action": "SUBMITTED", "branchId": 1, "email":"email@email.com", "amount":500.00, "direction":"DEPOSIT" } Deposit Transaction Approved JSON { "transactionId": 1, "clearingAccount": "6YA000000", "type": "TRANSACTION", "action": "APPROVED", "branchId": 1, "email":"email@email.com", "amount":500.00, "direction":"DEPOSIT" } Deposit Transaction Completed JSON { "transactionId": 1, "clearingAccount": "6YA000000", "type": "TRANSACTION", "action": "COMPLETED", "branchId": 1, "email":"email@email.com", "amount":500.00, "direction":"DEPOSIT" } Withdrawal Transaction Submitted JSON { "transactionId": 1, "clearingAccount": "6YA000000", "type": "TRANSACTION", "action": "SUBMITTED", "branchId": 1, "email":"email@email.com", "amount":500.00, "direction":"WITHDRAWAL" } Withdrawal Transaction Approved JSON { "transactionId": 1, "clearingAccount": "6YA000000", "type": "TRANSACTION", "action": "APPROVED", "branchId": 1, "email":"email@email.com", "amount":500.00, "direction":"WITHDRAWAL" } Withdrawal Transaction Completed JSON { "transactionId": 1, "clearingAccount": "6YA000000", "type": "TRANSACTION", "action": "COMPLETED", "branchId": 1, "email":"email@email.com", "amount":500.00, "direction":"WITHDRAWAL" } • [Securing WebHooks](https://docs.tradier.com/advisor-api/webhooks/securing-webhooks.md): When receiving webhook payloads from Tradier, you can verify the digital signature of the webhook that you receive on your endpoint. By default, Tradier will use your Client Secret to add a signature that is delivered via the x-webhook-signature header along with webhook payloads. For an added measure of security, when creating a webhook, you can define a custom secret that is used to sign the webhook payload in lieu of your Client Secret. Verifying Webhook Payloads Tradier uses HMAC-SHA256 to compute the hash that is delivered in the header. For example, let’s assume you’ve set the secret for a webhook to my_webhook_secret . The body of the webhook payload is hashed and the resulting hash is delivered in the x-webhook-signature header: HTTP Plain text POST /yourtradier/webhook HTTP/1.1 Content-Type: application/json; charset=utf-8 Host: yourhost.com x-webhook-signature: 617b9e5b2fb70b0107cb1f59a7d13b096576de5702306c57c63315787e47a145 Connection: close Content-Length: 96 POST /yourtradier/webhook HTTP/1.1 Content-Type: application/json; charset=utf-8 Host: yourhost.com x-webhook-signature: 617b9e5b2fb70b0107cb1f59a7d13b096576de5702306c57c63315787e47a145 Connection: close Content-Length: 96 JSON {"applicationId": 5,"clearingAccount": "1234","action": "SUBMITTED","email": "test@example.com"} To verify the payload, you would then use the secret and the body of the webhook to generate a local hash that you could then use for comparison: Ruby Ruby body = '{"applicationId": 5,"clearingAccount": "1234","action": "SUBMITTED","email": "test@example.com"}' secret = 'my_webhook_secret' sig = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), secret, body) # ensure that the signatures match request.headers['x-webhook-signature'] == sig Rack::Utils.secure_compare(sig, request.headers['x-webhook-signature']) Note that it is best not to use an equivalency checker like == but rather to find a library that can do a secure comparison of the two values and lessen the risk of a timing attack. • [Virtual Accounts](https://docs.tradier.com/advisor-api/virtual-accounts.md): Paper trading account management • [Create Virtual Account](https://docs.tradier.com/advisor-api/virtual-accounts/create-virtual-account.md): Create a paper trading account with Tradier Brokerage. The account will be funded automatically with $100,000 of virtual cash. • [Add Funds to Virtual Account](https://docs.tradier.com/advisor-api/virtual-accounts/add-funds-to-virtual-account.md): Add additional virtual funds to a paper trading account • [Delete Virtual Account](https://docs.tradier.com/advisor-api/virtual-accounts/delete-virtual-account.md): Delete a virtual trading account • [ACAT](https://docs.tradier.com/advisor-api/acat.md): The process for transferring an account from an external brokerage (ACAT) is simple and straight-forward. We’ve streamlined the process to make it as frictionless as possible for the user. Full Account Transfers Required information is submitted via the API. Information collected is sent to Tradier and Apex for processing. Please ensure that the most recent account statement from the contra firm is uploaded to your Advisor-specific SendSafely dropbox. Once the request has been processed, the customer will receive an email updating them on the status. Partial Account Transfers Partial account transfers can be done by submitting the request through the following link: Partial ACAT Docusign Form Please ensure that the most recent account statement from the contra firm is uploaded to your Advisor-specific SendSafely dropbox. Once the request has been processed, the customer will receive an email updating them on the status. Expected timeframes for processing Full and Partial account transfer requests are generally processed in 1-2 business days. After processing, assets can take 5-7 business days to be received. In some instances, such as non-ACAT transfers and annuity surrenders, where physical paperwork is exchanged, the timeframe can be longer. Please note that delays can occur if clients continue to trade in the account that they are transferring from or if they are requesting the transfer of options expiring within 2 weeks. • [Get ACAT Transfers](https://docs.tradier.com/advisor-api/acat/get-acat-transfers.md): Get information about all ACAT transfers • [Create ACAT Transfer](https://docs.tradier.com/advisor-api/acat/create-acat-transfer.md): Create an ACAT transfer • [Get ACAT Transfer](https://docs.tradier.com/advisor-api/acat/get-acat-transfer.md): Get details of a specific ACAT transfer • [Get ACAT Participants](https://docs.tradier.com/advisor-api/acat/get-acat-participants.md): Get list of ACAT participant firms