Do you know what FIX API is? There are quite a few brokers among forex companies that offer this tool. It seems that it was originally used for stock trading, but now more and more foreign exchange traders use it, so if you want to use it, you should actually try it.
HFM Basic Information
| Company Name | HF Markets(SV) Ltd. |
| Year of establishment | 2010 |
| Service Overview | A large brokerage providing services in over 180 countries worldwide with millions of registered accounts |
| Financial products handled | Foreign Exchange (FX), Stock Indices/Commodities, Stock CFDs/Cryptocurrencies |
| Trading Platform | MetaTrader 4(MT4)、MetaTrader 5(MT5) |
| Maximum Leverage | 2,000x |
| User Support | Multilingual support |
| Financial License | ✔ FCA (UK, Financial Conduct Authority) ✔ FSCA (South Africa) ✔ DFSA (Dubai) ✔ FSA (Seychelles) |
| Deposit and Withdrawal Methods | Bank transfer Credit/Debit card (VISA/Master/JCB, etc.) bitwallet / BXONE / Binance Pay / Cryptocurrency |
| Account Type | Cent Account Premium Account Pro Account Zero Account Top-up Bonus Account |
Overview of the HFM API
The most common use case is the following ①.
Let’s start by summarizing the most common cases and providing an overview.
① Overview of the HFM (formerly HotForex) API [Most Common]
HFM (formerly HotForex) is an overseas FX broker,
and the HFM API is an API designed for trading automation and external system integration.
Main Uses
Automated Trading (Algorithmic Trading)
Trading Bot Development
Integration with External Analysis Tools
Account Information and Trading History Acquisition
Types of APIs Provided
- MT4/MT5 API (Indirect)
HFM uses MetaTrader 4/5,
and the API can be effectively used through the following:
MQL4 / MQL5 (EAs/Scripts)
Python + MT5 Library
DLL Integration
👉 Most Popular Method
- FIX API (For Professionals)
For Institutional Investors and High-Frequency Traders
Ultra-Low Latency
High-Speed, High-Volume Order Processing
⚠️
Criteria Required
Application and Review Required
Not for Beginners
Features (Examples)
Order Placement (Market, Limit, Stop)
Position Management
Balance and Margin Acquisition
Price Data (Tick/OHLC) Acquisition
Trading History Acquisition
Advantages
Automated Trading
High-Speed Trading
Easy Integration with External Analysis Tools
Caution
Limited Official Japanese Documentation
FIX API Has a High Threshold
API Specifications Depend on Account Type
How to Use the HFM API
Below, we’ll explain how to use the HFM (formerly HotForex) API in an easy-to-follow format for beginners.
Note: In Japan, the term “HFM API” almost always refers to API integration using MT4/MT5.
Here, we’ll focus on ① MT5 (Python integration) and then supplement ② the FIX API.
① How to Use the HFM API (via MT4/MT5) [Most Common]
HFM does not provide an official REST API.
Instead, the basic approach is to use MetaTrader (MT4/MT5) as an API.
Overview of Usage
Python / EA / External Tools
↓
MT4 / MT5
↓
HFM
Step 1: Open an HFM Account
Open an account on the HFM official website
Create an MT4 or MT5 account
Get login information
*MT5 is recommended for automated trading
Step 2: Install MT4 / MT5
Download the HFM-specific MT4 / MT5
Log in with your account number and password
Get ready to trade
Step 3: Choose how to use it as an API
Method A: Python + MT5 (Recommended for Beginners)
Most Popular and Practical
Preparation
pip install MetaTrader5
Connection Example (Python)
import MetaTrader5 as mt5
Launch MT5 & Connect
mt5.initialize(
login=12345678,
password=”PASSWORD”,
server=”HFM-MT5Server”
)
Get Balance
account_info = mt5.account_info()
print(account_info.balance)
mt5.shutdown()
What You Can Do
Get Prices
Place Orders
Position Management
Get Trade History
👉 Data Analysis × Easy Automated Trading
Method B: MT4/MT5 EA (MQL4/MQL5)
Create EAs directly within MT
High Stability
External API Integration (HTTP Communication) Also Possible
Suitable for
Continuous Automated Trading
VPS Operation
Method C: DLL Integration (Advanced)
Integration with C++/C#, etc.
Fast but Difficult to Manage
Step 4: Enable Automated Trading
Set the following on MT: 👇
“Allow Automated Trading”
Allow EAs to Execute
Disable Windows Sleep Mode
Step 5: VPS (Recommended)
24-Hour Operation
Reduced Latency
Approximately ¥1,000-¥3,000/Month

② How to Use the HFM FIX API [For Professionals]
Features
Ultra-High-Frequency Trading
For Institutional Investors
Direct Connection Without MT
Terms of Use
High Account Balances
Application and Screening for HFM
FIX Protocol Knowledge Required
Suitable for
High-Frequency Trading (HFT)
Business System Integration
⚠️ Virtually Unnecessary for Individuals and Beginners
③ Which Method Should I Choose?
Recommended for Beginners: Python + MT5 Stable Operation, MT5 EA, High-Speed Trading FIX API
④ Common Considerations
HFM Does Not Have an Official REST API
Restrictions Apply to Certain Account Types
Automated Trading Is Not Prohibited, But Users Must Check the Terms and Conditions
Always Test with a Demo Account
HFM API Use Cases
The following is an easy-to-understand summary of common use cases for the HFM (formerly HotForex) API (using MT4/MT5 as the API) in commercial and individual trading.
① Automated FX Trading (Most Common Use)
Standard HFM API Usage Pattern
Contents
Rules-Based Automated Trading
Emotion-Free Trading
24-Hour Operation (VPS)
Technology Configuration Example
Python (Strategy Logic)
↓
MT5 API
↓
HFM
Example
Automatic Entry at Moving Average Crossover
RSI Overheating Detection → Take Profit/Stop Loss
Trading Halt When Indicators are Announced
Benefits
High Reproducibility
More Stable than Discretionary Trading
② Trading Bots with AI/Machine Learning
Contents
Learn from Past Data
Classify Market Conditions
Automatic Trading When Conditions are Met
Application Examples
Price Prediction with LSTM
Position Adjustment Using Reinforcement Learning
Volatility-Based Strategy Switching
⚠️ Separating Training and Operation
③ Price Data Collection and Analysis
Contents
Real-time Price Acquisition
OHLC Data Accumulation
Statistical Analysis
Application Examples
Spread Analysis
Time-Based Volatility Measurement
Currency Pair Correlation Analysis
👉 Platform for Trading Strategy Development
④ External System Integration (Dashboarding)
Contents
MT5 → Python → Web Display
Current Position Visualization
Application Examples
Real-time Profit and Loss Display
Slack / LINE Notifications
Alert Notifications
⑤ Copy Trading and Portfolio Management
Contents
Multiple Account Synchronization
Transferring Trades from a Parent Account to a Child Account
Application Examples
Combining Discretionary and Automated Trading
Automatic Capital Allocation Adjustments
Risk Diversification



コメント