def from_unit_to_satoshi(self, value, unit='<STR_LIT>'):
if not unit or unit == '<STR_LIT>':<EOL><INDENT>return value<EOL><DEDENT>if unit == '<STR_LIT>' or unit == '<STR_LIT>':<EOL><INDENT>return value * <NUM_LIT><EOL><DEDENT>convert = get_current_price(self.crypto, unit)<EOL>return int(value / convert * <NUM_LIT>)<EOL>
Convert a value to satoshis. units can be any fiat currency.
By default the unit is satoshi.