Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Howtrader: A crypto quant framework for developing, backtesting, and executing your own trading strategies. Seamlessly integrates with TradingView and other third-party signals. Simply send a post request to automate trading and order placement. Supports Binance and Okex exchanges.
| Date | Stars |
|---|---|
| 2026-07-24 | 945 |
| 2026-07-25 | 944 |
| 2026-07-28 | 944 |
| 2026-07-30 | 944 |
| 2026-08-06 | 944 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# HowTrader
[中文文档](./README-CN.md)
What does Howtrader means? It means how to be a trader, especially a
quant trader.
HowTrader crypto quantitative trading framework, and was forked from
VNPY, so the core codes、functions and useages are pretty similar to
VNPY, but would be more easy to install and use. By the way, Howtrader
fixes some bugs, add more functions and strategies to framework. We
extend the TradingView signals and grid strategies to Howtrader and more
codes.
## Binance Spot API Ed25519 Key Configuration Guide
The Binance Spot WebSocket API mandates the use of the Ed25519 asymmetric encryption algorithm for signing.
Therefore, you must use a self-generated method when creating API Keys. System-generated keys cannot be used for
the Spot WebSocket interface.
Step 1: Create a Self-Generated API Key
Log in to the Binance official website, go to Account → API Management, and click Create API.
Select the Self-generated key type, as shown in the figure below.

Click Next. You will now need to upload your self-generated Ed25519 public key.
Step 2: Generate an Ed25519 Key Pair
Official Binance Tool (Recommended)
Download the official asymmetric key generator from:
https://github.com/binance/asymmetric-key-generator/releases
(Note: This is an external GitHub link. If you cannot access it, please use the OpenSSL command-line method below.)
Download and install the version corresponding to your operating system. After opening the software:
Select the Ed25519 algorithm type, as shown in the figure below:

Click the Generate 1 Key Pair button to generate the key pair.
Securely save the generated Public Key and Private Key.
Step 3: Complete API Creation and Configuration
Copy the content of your generated public key (all text including -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY-----, removing all line breaks)
and paste it into Binance's public key input field. Click Next to generate the API Key.
After that, edit the API permission:
Check the Spot & Margin Trading permission.
Mandatorily enable IP whitelisting and add the IP address of the device running howtrader.
Only check the necessary permissions. Do not enable high-risk permissions such as withdrawal or transfer.
Click Save to complete the configuration.
Fill the API Key generated by Binance and your privately saved Private Key into the Binance Spot configuration in howtrader.
**Important Notes**
The Binance Futures API is not subject to this restriction. You can use standard system-generated API Key and Secret normally.
If you have any questions about the spot configuration, feel free to consult me at any time.
## Howtrader VS VNPY
1. some classes' definition are pretty different: for OrderData
、TradeData、ContractData, we replace float with Decimal to meet the
precision, theses classes are defined in howtrader.trader.object
module.
2. on_order and on_trade update sequence are different: in VNPY, ,the
on_order is always updated before the on_trade if the order was
traded. And in the cta strategy, the self.pos(the position data) was
calculated in the on_trade callback. So if we want to get the latest
self.pos value, we may need to define a variable to calculate the
latest position data. To solve this issue, we push the on_trade
before the on_order callback. check out the code to find out the
details:
``` python
def on_order(self, order: OrderData) -> None:
"""on order update"""
order.update_time = generate_datetime(time.time() * 1000)
last_order: OrderData = self.get_order(order.orderid)
if not last_order:
self.orders[order.orderid] = copy(order)
super().on_order(copy(order))
else:
traded: Decimal = order.traded - last_order.traded
if traded < 0: # filter the order is not in sequence
return None
Excerpt of 21,214 characters
Read on GitHub51bitquant
252
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:75f0b8fe166e994f, topic:trading, readme:quantitative