Buying at the Best Price with Maximum Price and Balance Constraints
Learn how to create Origami Tech grid strategies that execute buy orders efficiently while respecting price and balance limitations.
{
"gap": "0.005",
"execute_price": "min(orderbook().bid[0].price+symbol().price_precision,max_bid_price)*(1+gap*(order_pos+1))",
"max_bid_price": "orderbook().ask[0].price-symbol().price_precision",
"execute_volume": "10/execute_price+abs(order_pos)*10/execute_price",
"buy_orders_count": "5 if balance('counter').total > 5000 else 0",
"sell_orders_count": "0"
}PreviousSelling at the Best Price Considering Historical DataNextBuying at the Best Price Considering Historical Data
Last updated