class QuoteReverseSerializer(serializers.Serializer): fiat_amount = serializer_fields.FiatAmountField() fiat_currency = serializer_fields.FiatCurrencyField() fiat_local_amount = serializer_fields.FiatAmountField() fiat_local_currency = serializer_fields.FiatCurrencyField() raw_fiat_amount = serializer_fields.FiatAmountField() price = serializer_fields.FiatAmountField() amount = serializer_fields.CryptoAmountField() currency = serializer_fields.CryptoCurrencyField() direction = serializer_fields.DirectionField()
class QuoteInputSerializer(serializers.Serializer): amount = serializer_fields.CryptoAmountField() currency = serializer_fields.CryptoCurrencyField() fiat_currency = serializer_fields.FiatCurrencyField() pool_check = serializers.BooleanField() user_check = serializers.BooleanField() direction = serializer_fields.DirectionField()
class QuoteReverseInputSerializer(serializers.Serializer): currency = serializer_fields.CryptoCurrencyField() fiat_amount = serializer_fields.CryptoAmountField() fiat_currency = serializer_fields.FiatCurrencyField() pool_check = serializers.BooleanField() user_check = serializers.BooleanField() direction = serializer_fields.DirectionField() order_type = serializers.CharField()
class SampleSerializer(serializers.Serializer): currency = serializer_fields.CryptoCurrencyField() fiat_currency = serializer_fields.FiatCurrencyField() direction = serializer_fields.DirectionField()