RenkoGurus
  • Getting Started
    • What is TradingView?
    • How to setup RenkoGurus Indicators
    • How to get updates
    • How to setup alerts in TradingView
  • Indicators
    • RenkoGurus-Consolidation & Breakout Filter
      • Signals
      • Settings
      • Alerts
    • RenkoGurus-SmartTrend
      • Signals
      • Settings
      • Alerts
    • RenkoGurus-SmartChannel
      • Signals
      • Settings
      • Alerts
    • RenkoGurus-SmartMoney
      • Signals
      • Settings
      • Alerts
    • RenkoGurus-PowerMeter
      • Signals
      • Settings
      • Alerts
  • RenkoGurus-PropBot-User-Guide
    • Onboarding
    • Non VPS Prop Bot
      • Tradovate/NinjaTrader Prop Bot
        • APIs & Payloads
      • TopstepX PropBot
        • APIs & Payloads
    • VPS Prop Bot
      • RenkoGurus VPS Dashoard
        • Bot Status Panel
        • Customer Info Panel
        • Actions Panel
        • Trade Command Panel
        • Window Settings Panel
        • Trading Hours Settings (GMT) Panel
        • Alerts Configuration Panel
      • RenkoGurus VPS Metrics Dashboard
Powered by GitBook
On this page
  • ๐Ÿš€ API Endpoints Summary
  • โœ… /place-order
  • ๐Ÿงน /flatten-all
  • โœ‚๏ธ /close-all-positions
  • ๐Ÿ” /reverse-order
  1. RenkoGurus-PropBot-User-Guide
  2. Non VPS Prop Bot
  3. TopstepX PropBot

APIs & Payloads

This section documents the available API endpoints for executing trades, managing positions, and automating actions with the RenkoGurus VPS Bot. These endpoints are optimized for speed, reliability, and compatibility with TradingView webhooks or manual triggers.


๐Ÿš€ API Endpoints Summary

Endpoint
Method
Description

/place-order

POST

Places a new order with optional bracket, stop loss, take profit, and trailing offset.

/flatten-all

POST

Closes all open positions and cancels all working orders for the given symbol.

/close-all-positions

POST

Closes all open positions for a particular Symbol

/reverse-order

POST

Reverses the current position by placing an opposite market order.


โœ… /place-order

Method: POST Description: Places a new order for the given account and symbol with full support for bracket orders and custom trade windows.

๐Ÿ”ง Payload Example

{
  "accountName": "PRACTICEAPR812677831",
  "action": "Sell",
  "orderType": "Bracket",
  "symbol": "MNQ",
  "qty": 1,
  "limitPrice": 150.25,
  "stopPrice": 30,
  "takeProfit": 30,
  "trailingOffset": 0.0,
  "closeExistingOrders": "false",
  "tradeTimeRanges": [""],
  "avoidTradeTimeRanges": [""]
}

๐Ÿ“Œ Field Descriptions

Field
Description
Possible Values
Required

accountName

Tradovate account identifier

Example: "PRACTICEAPR812677831"

โœ… Yes

action

Direction of the trade

"Buy", "Sell"

โœ… Yes

orderType

Type of order to be placed

"Market", "Limit", "Bracket"

โœ… Yes

symbol

Ticker symbol for the instrument

Example: "MNQ", "ES"

โœ… Yes

qty

Number of contracts

Any positive integer

โœ… Yes

limitPrice

Price for limit entry (used for limit/bracket orders)

Numeric

โŒ No

stopPrice

Stop loss distance or trigger price

Numeric

โŒ No

takeProfit

Take profit distance or trigger price

Numeric

โŒ No

trailingOffset

Trailing stop distance (if using trailing stop)

Numeric

โŒ No

closeExistingOrders

Whether to cancel existing open orders before placing new one

"true", "false"

โŒ No

tradeTimeRanges

Time windows to allow trade execution

["09:30-16:00"], etc.

โŒ No

avoidTradeTimeRanges

Time windows to block trade execution

["12:00-13:00"], etc.

โŒ No


๐Ÿงน /flatten-all

Method: POST Description: Closes all open positions and cancels all working orders for the specified symbol and account.

๐Ÿ”ง Payload Example

{
  "accountName": "PRACTICEMAR1711838981",
  "symbol": "MNQ"
}

๐Ÿ“Œ Field Descriptions

Field
Description
Example
Required

accountName

Tradovate account identifier

"PRACTICEMAR1711838981"

โœ… Yes

symbol

Ticker symbol to flatten

"MNQ", "ES"

โœ… Yes


โœ‚๏ธ /close-all-positions

Method: POST Description: Closes all open positions for the specified symbol

๐Ÿ”ง Payload Example

{
  "accountName": "PRACTICEMAR1711838981",
  "symbol": "MNQ"
}

๐Ÿ“Œ Field Descriptions

Field
Description
Example
Required

accountName

Tradovate account identifier

"PRACTICEMAR1711838981"

โœ… Yes

symbol

Ticker symbol to close positions on

"MNQ", "ES"

โœ… Yes


๐Ÿ” /reverse-order

Method: POST Description: Reverses the current position for the given symbol by immediately closing the position and entering an opposite market order of equal size.

๐Ÿ”ง Payload Example

{
  "accountName": "PRACTICEMAR1711838981",
  "symbol": "MNQ"
}

๐Ÿ“Œ Field Descriptions

Field
Description
Example
Required

accountName

Tradovate account identifier

"PRACTICEMAR1711838981"

โœ… Yes

symbol

Ticker symbol to reverse order on

"MNQ", "ES"

โœ… Yes

PreviousTopstepX PropBotNextVPS Prop Bot

Last updated 17 days ago