Can you explain with examples how TDS will be calculated for various order types (Spot/Margin/Future)?

Updated 

Insta Spot Buy - No TDS is applicable (App)
Quickbuy Insta Buy - No TDS is applicable (Web)

Insta Spot Sell - 1% TDS is applicable (App)
Quickbuy Insta Sell - 1% TDS is applicable (Web)

For example: 1% TDS to be deducted on the overall transaction value. If the sell value is INR 1500, we need to deduct (1%of 1500) as TDS from the user and the user will get (1500-x%of 1500 - fees) in his account. So, we will deduct 1*1500/100 ie INR 15 as TDS and if the fee is 0.3%, we will deduct 0.3*1500/100 ie INR 4.5 as fees, so the user will get back (1500-1*1500/100 - 4.5) = INR 1480.5 in his/her account.

Spot Buy - INR pairs - No TDS

Spot Sell - INR pairs - 1% TDS is applicable

For example 1% TDS will be deducted on overall transaction value. If the sell value is INR 1500, we will deduct 1% of 1500 as TDS from the user, and the user will get (1500 - 1% of 1500 - fees) in their account. So we will deduct 1*1500/100 ie, INR 15 as TDS and if fees are 0.3%, we will deduct 0.3*1500/100 ie, INR 4.5 as fees, so the user will get back (1500-1*1500/100-4.5) = INR 1480.5 in their account.

Spot Buy - Non-INR pairs (C2C) - 1% TDS

For example: 1% TDS will be deducted on the overall transaction value. We will do the TDS deduction on the base token. Let's say the user transacts in BTC-USDT and buys 1 BTC at a price of 40,000 USDT. We will ask the user for 1% TDS in USDT ie 1/100*40000 = 400 USDT and 0.3% in fees (whatever the fees is) ie 0.3/100*40000 = 120 USDT, ie, a total of 40520 USDT for this transaction. Both fees and TDS are applied on the value of the transaction.

Spot Sell - Non-INR pairs (C2C) - 1% TDS

For example 1% TDS will be deducted on overall transaction value (the deduction will be on the base token). Let's say, the user transacts in BTC-USDT and sells 1 BTC at a price of 40,000 USDT, we will give back to the user after deducting 1% TDS in USDT ie, 1/100*40000 = 400 USDT - a total of 39600 USDT for this transaction.

Margin Long - 1% TDS on total value of position for both opening and closing orders

For example: 1% TDS will be deducted on overall actual transaction value including leverage. So if a user is buying 1 BTC at a price of 40,000 USDT at 10x leverage, the margin required would be 4000 USDT, but the actual transaction value would be 40,000 USDT; hence, in this case, we will apply TDS on the entire 40,000 USDT. Let's say the user transacts in BTC-USDT and takes a leverage position of 1 BTC at a price of 40,000 USDT, we will then ask user for 1% TDS in USDT ie, 1/100*40000 = 400 USDT and 0.2% in fees (whatever the fees is) ie, 0.2/100*40000 = 120 USDT, ie, a total of (520 USDT + margin + TDS required for selling) required for this transaction. Both fees and TDS are applied to the value of the transaction. TDS required for closing position needs to be taken in the form of extra margin.

Margin Short - 1% TDS on total value of position for both opening and closing orders

Same as Margin Long. The user must maintain an extra margin corresponding to the TDS value.

Earn - No TDS is applicable
Futures - No TDS is applicable

Note: 0.2% fee is indicative and is taken as an example. It is subject to change as per your tier. Please use this only for reference.