def invert(self):
tmp = self["<STR_LIT>"]<EOL>self["<STR_LIT>"] = self["<STR_LIT>"]<EOL>self["<STR_LIT>"] = tmp<EOL>if "<STR_LIT>" in self and self["<STR_LIT>"]:<EOL><INDENT>self["<STR_LIT>"] = self.amount_class(<EOL>self["<STR_LIT>"]["<STR_LIT>"] * self["<STR_LIT>"], self["<STR_LIT>"]["<STR_LIT>"]<EOL>)<EOL><DEDENT>return self<EOL>
Invert the price (e.g. go from ``USD/BTS`` into ``BTS/USD``)