TWM Wiki
Requirements
To connect Binance with TWM, you must activate the Margin feature in your Binance account.
Your account needs to be both activated and funded in the Margin section for the connection to work properly.
How to Activate Margin and Futures
These steps are necessary to ensure a stable connection between TWM and Binance.
To confirm your Margin balance, visit https://www.binance.com/en/my/wallet/account/margin, the balance must be greater than 0.
Simulator / Data Retrieval
If you only intend to use the simulator or retrieve data (not live trading), you can leave the API key fields blank.
API Key Expiration
If your API keys are not used for trading within 30 days of creation, Binance will automatically delete them.
In that case, you’ll need to create new keys.
IP Filtering
If you choose to restrict API access to specific IP addresses, make sure you’re using a static (non-dynamic) IP.
If your IP changes, you’ll need to update it in the API settings.
You can check your current IP address at whatismyip.com.
for Older Accounts
Some older Binance accounts (especially those created before futures trading was introduced) may require enabling an IP filter by default to allow futures trading.
1. Log in to your Binance account and open your Account Dashboard: https://www.binance.com/en/my/dashboard
2. Go to API Management: https://www.binance.com/en/my/settings/api-management
3. Click Create API.
4. Choose System Generated.
5. Enter a label (for example, “API Key”) and click Next.
6. Copy both the API Key and Secret Key. Important: The Secret Key is displayed only once after creation. Copy and save it in a safe place (for example, in a text file). If it’s lost, you must repeat the entire REST credential creation process.
7. Paste the API Key and Secret Key into the corresponding fields in TWM.
8. Go back to Binance and uncheck the Default Security Controls box
9. Click Edit Restrictions and enable the following:
- Enable Reading
- Enable Spot & Margin Trading
- Enable Margin Loan, Repay & Transfer
- Enable Futures
Asymmetric Key Generator
1. Download the Asymmetric Key Generator from Binance’s GitHub: https://github.com/binance/asymmetric-key-generator/releases
2. From the Releases page, download the latest version and its corresponding checksumfile:
3. Run the Asymmetric Key Generator application.
1. Select Ed25519
2. Click Generate Key Pair
3. Once generated, copy both the Private Key (3) and Public Key (4) and save them (for example, in a text file).
Create a Self-Generated API Key on Binance
1. Go to API Management: https://www.binance.com/en/my/settings/api-management
2. Click Create API.
3. Choose Self-Generated.
4. When prompted for a Public Key, paste the Public Key you generated earlier using the Asymmetric Key Generator.
5. Add a label (for example, “WebSocket API Key”) and click Next.
6. Click Edit Restrictions and enable the following:
- Enable Reading
- Enable Spot & Margin Trading
- Enable Margin Loan, Repay & Transfer
- Enable Futures
7. Copy the WebSocket API Key
and paste it into the TWM connection configurator.
8. Go back to the Asymmetric Key Generator window and copy only the Private Key (exclude the lines -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----).
9. Paste this Private Key into the WebSocket Private Key field in the TWM Binance connection configurator.
Under the Binance Connection configuration, it is possible to enable or disable access to Futures and Margin trading.
1. Enable Futures trading. This allows the connection to operate with the Binance Futures account.
2. Enable Margin trading. This allows the connection to access Binance Margin.
We use necessary cookies to make our site work. We also use optional cookies to understand how visitors use our site and to improve it.
You can choose to accept only necessary cookies or customize your preferences.
Clicking the “X” at the top right will apply the same choice
as “Only necessary”.
Necessary cookies help make a website usable by enabling basic functions such as page navigation and access to protected areas of the site.
Necessary cookies
Indicates whether the user has consented to the use of necessary cookies.
Maximum storage duration: 1 Year | Type:Necessary cookiesUsed to prevent CSRF attacks and protect user data.
Maximum storage duration: Session | Type: Necessary cookiesUsed to manage authentication information and the user's session.
Maximum storage duration: 1 Year | Type: Necessary cookiesUsed to store user's language preferences.
Maximum storage duration: 1 Year | Type: Necessary cookiesSecurity cookie set by Google to authenticate users and prevent fraudulent use of login credentials.
Ensures you stay connected to your Google accounts across various services.
Maximum storage duration: 2 Years | Type: Necessary cookiesUsed to verify your Google account and ensure that requests in sessions come from you.
Maximum storage duration: 6 Months | Type: Necessary cookiesSecurity cookie used by Google to authenticate users and prevent fraudulent use of login credentials, protecting user data.
Maximum storage duration: 2 Years | Type: Necessary cookiesThis cookie prevents the browser from sending the cookie along with cross-site requests, helping to mitigate the risk of cross-origin information leakage.
Maximum storage duration: 6 Months | Type: Necessary cookiesImportant for Google's security and to ensure that Google can authenticate the account and block fraudulent access attempts.
Maximum storage duration: 2 Years | Type: Necessary cookiesSecurity cookie to protect user data from unauthorized access.
Maximum storage duration: 1 Year | Type: Necessary cookiesCrucial cookies to ensure that you remain securely logged into your Google accounts while accessing various Google services.
Maximum storage duration: 2 Years | Type: Necessary cookies
Functional cookies allow the website to provide enhanced functionality and personalization. They may be set by the website owner or by third parties whose services have been added to the pages.
Functional Cookies
Used by Google to store session information and enhance the user's experience on Google services.
Used by Google to improve user navigation by remembering preferences and information, such as preferred language.
Maximum storage duration: 6 Months | Type: Functional CookiesRemembers which accounts have been used to log into Google services on the device.
Maximum storage duration: 1 Year | Type: Functional CookiesUsed by Google to store user preferences and information when viewing pages with Google maps.
Maximum storage duration: 2 Years | Type: Functional CookiesUsed by Google to store user preferences while viewing pages that incorporate Google services.
Maximum storage duration: 2 Years | Type: Functional CookiesUsed by Google to remember user preferences, such as preferred language, to provide a more personalized experience.
Maximum storage duration: 6 Months | Type: Functional CookiesUsed by Google to collect information about visitors for videos hosted on YouTube or maps integrated with Google Maps.
Maximum storage duration: 2 Years | Type: Functional CookiesUsed by Google to store user preferences and information when pages containing maps or Google services are viewed.
Maximum storage duration: 2 Years | Type: Functional Cookies
Statistical cookies help website owners understand how visitors interact with the site by collecting and transmitting information anonymously.
Statistical Cookies
Unique identifier used to track user interactions and maintain unique sessions.
Microsoft cookie that collects data on user interactions to improve services.
Maximum storage duration: 7 days | Type: Statistical CookiesUsed by the Microsoft Clarity analytics suite to maintain the user's session.
Maximum storage duration: Session | Type: Statistical Cookies
Marketing cookies are used to track visitors on websites. The intent is to display relevant and engaging ads for the individual user.
Marketing Cookies
Used by Google to link your activity across devices if you have logged in with the same Google account.
Used by Microsoft Advertising to check the anonymity of data sent by tracking cookies.
Maximum storage duration: 10 minutes | Type: Marketing CookiesMicrosoft cookie used to track user interactions across Microsoft domains.
Maximum storage duration: 13 Months | Type: Marketing CookiesGoogle cookies designed to build a profile of your preferences and show you relevant ads on other sites, protecting the Google account.
Maximum storage duration: 2 Years | Type: Marketing CookiesUsed by Google to identify and track visitors across various websites to display personalized advertising.
Maximum storage duration: 2 Years | Type: Marketing CookiesUsed by Google to personalize ads on Google properties, like Google Search.
Maximum storage duration: 1 Month | Type: Marketing CookiesUsed by Google to deliver more relevant ads and protect the security of your preferences and Google account information.
Maximum storage duration: 2 Years | Type: Marketing CookiesThis website uses cookies and similar technologies to ensure its proper functioning and, with your consent, to measure usage, improve performance, and provide personalized content or advertisements. The legal basis for the use of necessary cookies is the legitimate interest of the data controller (Art. 6(1)(f) GDPR), while functional, statistical, and marketing cookies are used only upon your explicit consent (Art. 6(1)(a) GDPR).
Cookies are small text files stored on your device to make the website work efficiently and improve your experience. Some cookies are placed directly by us, while others come from third-party services integrated into our pages.
Your cookie preferences are stored locally in a cookie named consent, valid for 12 months, and pseudonymously
on our systems using a technical identifier (UserUUID), which does not allow direct identification of the user.
You may change or withdraw your consent at any time via the cookie settings button visible at the bottom left of the site
or through the link in this section.
Some cookies are provided by third-party services (e.g., Google, Microsoft). These third parties act as independent controllers or processors under their own privacy policies.
You can withdraw or modify your consent at any time, delete cookies through your browser settings, and exercise your rights under Articles 15–22 GDPR (access, rectification, deletion, limitation, opposition, portability) by contacting us via the details provided in the Privacy Policy.
This Cookie Policy is aligned with Regulation (EU) 2016/679 (GDPR) and the ePrivacy Directive.