Input: BUY 52200 PE above 395 SL 362 QTY- 50%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "396",
"stop_loss": 362,
"target": null,
"quantity": "50%"
}
Input: TGT 445/ 490/530++

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "396",
"stop_loss": 362,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: Entered

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "396",
"stop_loss": 362,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: 410

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "396",
"stop_loss": 362,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: 428 Sl on cost

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "396",
"stop_loss": 396,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: Exited on cost

Output:
json
{
"action": "null",
"instrument": "BankNifty 52200 PE",
"entry_price": "396",
"stop_loss": 396,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: BUY 52200 PE @ 358 Sl 327 Qty 50%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 327,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: Entered

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 327,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: Target same

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 327,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: 386

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 327,
"target": [
445,
490,
530
],
"quantity": "50%"
}
Input: 50 % booking will be at 390 Rest target open

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 327,
"target": 390,
"quantity": "50%"
}
Input: SL on cost

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 358,
"target": 390,
"quantity": "50%"
}
Input: Exited on cost

Output:
json
{
"action": "null",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 358,
"target": 390,
"quantity": "50%"
}
Input: BUY 52200 Pe above 347 SL 324 QTY 50%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "348",
"stop_loss": 324,
"target": 390,
"quantity": "50%"
}
Input: Entered

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "348",
"stop_loss": 324,
"target": 390,
"quantity": "50%"
}
Input: Exited at 324 But we will re-enter in same

Output:
json
{
"action": "null",
"instrument": "BankNifty 52200 PE",
"entry_price": "348",
"stop_loss": 324,
"target": 390,
"quantity": "50%"
}
Input: BUY again @ 318 SL 299

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "318",
"stop_loss": 299,
"target": null,
"quantity": null
}
Input: Revised buy @ 325 SL 310 QTY 75%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "325",
"stop_loss": 310,
"target": null,
"quantity": "75%"
}
Input: BUY @ 330

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 310,
"target": null,
"quantity": "75%"
}
Input: "Entered TP 360 for 50 % booking , rest open"

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 310,
"target": 360,
"quantity": "75%"
}
Input: 340 🚀

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 310,
"target": 360,
"quantity": "75%"
}