In this article, we cover the features and behaviors of Local Currency Trading for Alpaca Broker API.
What is Local Currency Trading API?
With Local Currency Trading (LCT), you can buy, sell, and view US stocks in your local currency with real-time currency conversion. API responses are displayed in your local currency, with all calculations handled by Alpaca.
Note: Local Currency Trading API for Crypto will be available in the near future.
Set Up Your LCT Environment
To get started, please reach out to your customer success manager or our broker support team, who will arrange an API Key and Secret Key configured for your respective currency. They will walk you through what model type may be most suited for your business.
Create Your LCT Account
In this section, see how to create a JPY denominated fully disclosed account.
Example: Creating a JPY Fully Disclosed Account
Here’s an example of a fully disclosed account created with JPY.
Response: LCT Account Creation Below is the response that should be displayed upon the success of this account creation.
Running GET Accounts Endpoint Lastly, let’s run GET /v1/trading/accounts/{account_id}/account
The response will be as follows:
How to Fund your LCT Account
Your account can be funded for Local Currency Trading API via:
Bank Wire
Just-in-Time Cash
Just-In-Time
Placing an Order
Now let's see what a Local Currency Trading transaction looks like. In this case, we will be looking at the Turkish Lira. We will submit the following request, which is a notional order to buy XLK in Turkish Lira. We will also be adding a markup to the transaction, or swap fee, which is made in basis points or bps for short. For example, a trade with 100 bps is equivalent to 1%.
We are adding a 100 bps fee to this order. It should be noted that there are two swap fees; the first is Alpaca’s swap fee, which will be set and charged by Alpaca (this is 0 in this example), and the second is the correspondent fee and can increase or decrease on a per order level. Alpaca’s swap fee is not configurable and applies regardless of the markup applied to the order.
Response of Order in Local Currency The response will look as follows. All the monetary amounts denoted are in the local currency. Note the notional amount of TRY200, swap_rate, and swap_fee of 100bps. Lastly, we can see a second order JSON for USD, which shows us the notional value of the trade in USD.
Server-Sent Events Response
What does LCT trade look like in Server-Sent Events (SSE)?
This is what the SSE for a Local Currency Trade will be. As we mentioned earlier, all monetary amounts referenced above in the USD field at the bottom are in local currency. We can see the notional order is for TRY 200 with a swap_fee_bps of 100bps, which equates to TRY17.93 in Fees. The second order JSON for USD shows the notional value in USD and the average price.
What’s Next?
To learn more about what Local Currency Trading API can do for your business, reach out to [email protected]. If you are an existing Broker API partner, please get in touch with your representative support team.
Contact Us
Happy Coding!
The content is for general information only and is believed to be accurate as of posting date but may be subject to change. All examples and images are for illustrative purposes only. Alpaca Securities LLC does not recommend any specific investments or investment strategies. Alpaca Securities LLC does not provide investment, tax, or legal advice.
Securities brokerage services are provided by Alpaca Securities LLC ("Alpaca Securities"), member FINRA/SIPC, a wholly-owned subsidiary of AlpacaDB, Inc. Technology and services are offered by AlpacaDB, Inc.
This is not an offer, solicitation of an offer, or advice to buy or sell securities, or open a brokerage account in any jurisdiction where Alpaca Securities LLC is not registered or licensed, as applicable.