pannet1 / telegram-trades

get calls from telegram and place traders
0 stars 2 forks source link

SAF:order is not open to modify Error #23

Closed ravikanthvishnubhotla closed 5 months ago

ravikanthvishnubhotla commented 5 months ago

For Sensex

[2024-05-24 14:19:14,381] INFO: {'symbol': 'BFO:SENSEX2452475400CE', 'side': 'B', 'quantity': 20, 'price': 0.0, 'trigger_price': 0.0, 'order_type': 'MKT', 'product': 'N', 'remarks': 'SmsOptionsPremium'}] [2024-05-24 14:19:14,381] INFO: task price update for market order: 138.85] [2024-05-24 14:19:14,381] INFO: entry args: {'symbol': 'BFO:SENSEX2452475400CE', 'side': 'B', 'quantity': 20, 'price': 0.0, 'trigger_price': 0.0, 'order_type': 'MKT', 'product': 'N', 'remarks': 'SmsOptionsPremium'}] [2024-05-24 14:19:38,885] INFO: entry for BFO:SENSEX2452475400CE is complete] [2024-05-24 14:19:59,401] INFO: stop args: {'symbol': 'BFO:SENSEX2452475400CE', 'side': 'S', 'quantity': 20, 'price': 121.95, 'trigger_price': 122.0, 'order_type': 'SL', 'product': 'N', 'remarks': 'SmsOptionsPremium'}] [2024-05-24 14:20:25,926] INFO: target1 reached BFO:SENSEX2452475400CE] [2024-05-24 14:20:26,270] INFO: modify SL {'order_id': '24052400246575', 'symbol': 'BFO:SENSEX2452475400CE', 'side': 'S', 'quantity': 10, 'price': 0.0, 'order_type': 'MKT', 'product': 'N'} to tgt got {'stat': 'Ok', 'nestOrderNumber': '24052400246575'}] [2024-05-24 14:20:26,270] INFO: modify resp: None] [2024-05-24 14:20:26,270] INFO: stop loss order: {'symbol': 'BFO:SENSEX2452475400CE', 'side': 'S', 'quantity': 10, 'price': 138.79999999999998, 'trigger_price': 138.85, 'order_type': 'SL', 'product': 'N', 'remarks': 'SmsOptionsPremium'}] [2024-05-24 14:25:17,483] INFO: market hit the trailing stop] [2024-05-24 14:25:17,843] INFO: modify SL {'order_id': '24052400247614', 'symbol': 'BFO:SENSEX2452475400CE', 'side': 'S', 'quantity': 10, 'price': 0.0, 'order_type': 'MKT', 'product': 'N'} to tgt got {'stat': 'Ok', 'nestOrderNumber': '24052400247614'}] [2024-05-24 14:25:17,843] INFO: target 2: None]

{
    "channel": "SmsOptionsPremium",
    "id": 2171654052205331,
    "symbol": "BFO:SENSEX2452475400CE",
    "entry_range": "138.85",
    "target_range": "170|200|230|260|300",
    "sl": 122.0,
    "quantity": "10|10|10|10|10",
    "action": "Buy",
    "timestamp": "2024-05-24 14:18:42",
    "q1": 10,
    "q2": 10,
    "tq": 20,
    "fn": "TRADES_COMPLETED",
    "price": 138.85,
    "ltp": 135.9,
    "pnl": 418.0,
    "entry": {
        "symbol": "SENSEX2452475400CE",
        "quantity": 20,
        "side": "B",
        "price": "149.70",
        "trigger_price": "00.00",
        "average_price": "146.60",
        "filled_quantity": 20,
        "exchange": "BFO",
        "order_id": "24052400245525",
        "broker_timestamp": "24/05/2024 14:19:14",
        "product": "MIS",
        "remarks": "SmsOptionsPremium",
        "order_type": "L",
        "Status": "complete"
    },
    "stop": {
        "symbol": "SENSEX2452475400CE",
        "quantity": 20,
        "side": "S",
        "price": "121.95",
        "trigger_price": "122.00",
        "average_price": "0.00",
        "exchange": "BFO",
        "order_id": "24052400246575",
        "broker_timestamp": "24/05/2024 14:19:59",
        "product": "MIS",
        "remarks": "SmsOptionsPremium",
        "order_type": "SL",
        "Status": "trigger pending"
    },
    "trail": {
        "symbol": "SENSEX2452475400CE",
        "quantity": 10,
        "side": "S",
        "price": "138.80",
        "trigger_price": "138.85",
        "average_price": "0.00",
        "exchange": "BFO",
        "order_id": "24052400247614",
        "broker_timestamp": "24/05/2024 14:20:26",
        "product": "MIS",
        "remarks": "SmsOptionsPremium",
        "order_type": "SL",
        "Status": "trigger pending"
    }
}

image

pannet1 commented 5 months ago

triplicate of #16 what is supposed to happen and it did not happen for you.