This is the same as subtracting /q/getsentbyaddress from /q/getreceivedbyaddress. Using this data is almost always a very bad idea, as the amount of BTC sent by an address is usually very different from the amount of BTC sent by the person owning the address. /q/addressbalance/address