The First Place Order Robot for New Coins on the Exchange
will place orders at fixed intervals and serve as the first place order bot for new coins listed on exchanges. Due to the simple logic, it has not been tested Start running after adding a trading pair, and continue…
will place orders at fixed intervals and serve as the first place order bot for new coins listed on exchanges. Due to the simple logic, it has not been tested
Principle:
Start running after adding a trading pair, and continue to try to obtain the market price. If the market price can be obtained, it means that trading has started, and the strategy will place an order. If it cannot be obtained, it means that it is not open. Continue to try again and wait.
Parameters
| Name | Default | What it controls |
|---|---|---|
| Type | 0 | Order type: Buy order | Sell order |
| Start_Price | 7000 | Starting price |
| Spread | 5 | Interval |
| N | 5 | Number of orders placed |
| Amount | 0.1 | Amount of pending orders per order |
| Amount_Step | false | Pending order increment |
Source JavaScript
function main() {
exchange.SetTimeout(500) //Guaranteed faster returnnull,Continue retrying to get market quotes
while(true){
var ticker = exchange.GetTicker()
if(!ticker){
continue
}else{
Log('Get the market price,Start ordering')
for(var i=0;i<N;i++){
if(Type == 0){
exchange.Buy(Start_Price-i*Spread,Amount+i*Amount_Step)
}else{
exchange.Sell(Start_Price+i*Spread,Amount+i*Amount_Step)
}
}
Log('Complete order placement,Exit program')
return
}
}
}
Published by 小草 on the FMZ strategy square · last modified 2020-10-16. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/The-First-Place-Order-Robot-for-New-Coins-on-the-Exchange.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.