Skip to content

Positions


With the positions API, you can fetch the open and closed Positions which can be further used to calculate the PNL and MTM.

Type Endpoint Description
GET /positions Get the user Positions for the day
Sample Request
curl --location 'https://api.tiqs.trading/user/positions' \
--header 'appId: <YOUR_APP_ID>' \
--header 'token: <YOUR_TOKEN>'
Sample Response
{
    "data": [
        {
            "avgPrice": "0.00",
            "breakEvenPrice": "0.00",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "7628.25",
            "dayBuyAvgPrice": "84.76",
            "dayBuyQty": "90",
            "daySellAmount": "10327.50",
            "daySellAvgPrice": "114.75",
            "daySellQty": "90",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "0.05",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "I",
            "qty": "0",
            "realisedPnL": "2699.25",
            "symbol": "BANKNIFTY27MAR24C46900",
            "tickSize": "0.05",
            "token": "66696",
            "unrealisedMarkToMarket": "0.00",
            "uploadPrice": "0.00"
        },
        {
            "avgPrice": "0.00",
            "breakEvenPrice": "0.00",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "555.00",
            "dayBuyAvgPrice": "18.50",
            "dayBuyQty": "30",
            "daySellAmount": "1003.50",
            "daySellAvgPrice": "33.45",
            "daySellQty": "30",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "0.05",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "I",
            "qty": "0",
            "realisedPnL": "448.50",
            "symbol": "BANKNIFTY27MAR24C47200",
            "tickSize": "0.05",
            "token": "66704",
            "unrealisedMarkToMarket": "0.00",
            "uploadPrice": "0.00"
        },
        {
            "avgPrice": "0.00",
            "breakEvenPrice": "0.00",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "156422.25",
            "dayBuyAvgPrice": "144.84",
            "dayBuyQty": "1080",
            "daySellAmount": "158280.75",
            "daySellAvgPrice": "146.56",
            "daySellQty": "1080",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "86.80",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "I",
            "qty": "0",
            "realisedPnL": "1858.50",
            "symbol": "BANKNIFTY27MAR24C46700",
            "tickSize": "0.05",
            "token": "66692",
            "unrealisedMarkToMarket": "0.00",
            "uploadPrice": "0.00"
        },
        {
            "avgPrice": "0.00",
            "breakEvenPrice": "0.00",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "895.50",
            "dayBuyAvgPrice": "7.46",
            "dayBuyQty": "120",
            "daySellAmount": "402.00",
            "daySellAvgPrice": "3.35",
            "daySellQty": "120",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "0.05",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "I",
            "qty": "0",
            "realisedPnL": "-493.50",
            "symbol": "BANKNIFTY27MAR24C47300",
            "tickSize": "0.05",
            "token": "66706",
            "unrealisedMarkToMarket": "0.00",
            "uploadPrice": "0.00"
        },
        {
            "avgPrice": "0.00",
            "breakEvenPrice": "0.00",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "201.75",
            "dayBuyAvgPrice": "1.92",
            "dayBuyQty": "105",
            "daySellAmount": "173.25",
            "daySellAvgPrice": "1.65",
            "daySellQty": "105",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "0.05",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "I",
            "qty": "0",
            "realisedPnL": "-28.50",
            "symbol": "BANKNIFTY27MAR24C47800",
            "tickSize": "0.05",
            "token": "66718",
            "unrealisedMarkToMarket": "0.00",
            "uploadPrice": "0.00"
        },
        {
            "avgPrice": "0.00",
            "breakEvenPrice": "0.00",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "30.00",
            "dayBuyAvgPrice": "1.00",
            "dayBuyQty": "30",
            "daySellAmount": "28.50",
            "daySellAvgPrice": "0.95",
            "daySellQty": "30",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "0.05",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "I",
            "qty": "0",
            "realisedPnL": "-1.50",
            "symbol": "BANKNIFTY27MAR24C48500",
            "tickSize": "0.05",
            "token": "66742",
            "unrealisedMarkToMarket": "0.00",
            "uploadPrice": "0.00"
        },
        {
            "avgPrice": "16.60",
            "breakEvenPrice": "16.60",
            "carrtForwardAvgPrice": "",
            "carryForwardBuyAmount": "0.00",
            "carryForwardBuyAvgPrice": "0.00",
            "carryForwardBuyQty": "0",
            "carryForwardSellAmount": "0.00",
            "carryForwardSellAvgPrice": "0.00",
            "carryForwardSellQty": "0",
            "dayBuyAmount": "249.00",
            "dayBuyAvgPrice": "16.60",
            "dayBuyQty": "15",
            "daySellAmount": "0.00",
            "daySellAvgPrice": "0.00",
            "daySellQty": "0",
            "exchange": "NFO",
            "lotSize": "15",
            "ltp": "17.45",
            "multiplier": "1",
            "netUploadPrice": "",
            "openBuyAmount": "0.00",
            "openBuyAvgPrice": "0.00",
            "openBuyQty": "0",
            "openSellAmount": "0.00",
            "openSellAvgPrice": "0.00",
            "openSellQty": "0",
            "priceFactor": "1.000000",
            "pricePrecision": "2",
            "product": "M",
            "qty": "15",
            "realisedPnL": "-0.00",
            "symbol": "BANKNIFTY03APR24C48500",
            "tickSize": "0.05",
            "token": "54051",
            "unrealisedMarkToMarket": "12.75",
            "uploadPrice": "0.00"
        }
    ],
    "status": "success"
}