0bps

Strategy vault / Other

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…

JavaScriptOther
Author
小草
Complexity
Starter · 22 lines
Parameters
6

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

NameDefaultWhat it controls
Type0Order type: Buy order | Sell order
Start_Price7000Starting price
Spread5Interval
N5Number of orders placed
Amount0.1Amount of pending orders per order
Amount_StepfalsePending 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.

in Claude Code, Cursor, Codex & 4 more
/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
  1. npx agenkit install engineering-kit in your project
  2. Paste the command into your agent and approve each phase
  3. 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.

Related specs

esc

Try , , or .

↑↓ move↵ open