Deduct fee from transaction amount I am using sendtoaddress API call. 
The problem is that I need to specify amount that includes fees.
For example, if I withdraw 1 btc, I need bitcoind to deduct fees from that amount and in example to send 0.999 as transaction amount and 0.001 as fee (or any other fee amount that recommended for this transaction)

Please, help and tell if that possible to achieve such result.
https://chainquery.com/bitcoin-api/sendtoaddress

You can use last (5th) parameter:


subtractfeefromamount  (boolean, optional, default=false) The fee will be deducted from the amount being sent. The recipient will receive less bitcoins than you enter in the amount field.