Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
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()
Exemple #4
0
class SampleSerializer(serializers.Serializer):
    currency = serializer_fields.CryptoCurrencyField()
    fiat_currency = serializer_fields.FiatCurrencyField()
    direction = serializer_fields.DirectionField()