from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '凹性quiz' class Constants(BaseConstants): name_in_url = 'Quiz_Concavity' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): quiz1 = models.BooleanField(choices=[[True, 'Ture'], [False, 'Flase']], label='', widget=widgets.RadioSelect) quiz2_1 = models.FloatField(label='a) Points from the stock index?') quiz2_2 = models.FloatField(label='b) Points from the risk-free asset?') quiz2_3 = models.FloatField(label='c) The fund wealth at the end of the round?') quiz3_1 = models.IntegerField(label='a) Points from the stock index?') quiz3_2 = models.IntegerField(label='b) Points from the risk-free asset?') quiz3_3 = models.IntegerField(label='c) The fund wealth at the end of the round?') quiz4_1 = models.IntegerField(label='a) Points from the stock index?') quiz4_2 = models.IntegerField(label='b) Points from the risk-free asset?') quiz4_3 = models.IntegerField(label='c) The fund wealth at the end of the round?') quiz5_1 = models.IntegerField(label='a) Your final Points?') quiz5_2 = models.FloatField(label='b) Your final payoff in dollars (don’t forget the flat fee of quiz)?') quiz6_1 = models.IntegerField(label='a) Your final Points?') quiz6_2 = models.IntegerField(label='b) Your final payoff in dollars (don’t forget the flat fee of quiz)?') quiz7_1 = models.IntegerField(label='a) Your final Points?') quiz7_2 = models.IntegerField(label='b) Your final payoff in dollars (don’t forget the flat fee of quiz)?') OC1 = models.FloatField(label='1. Please, give a point estimate of the DAX (i.e., the most prominent German stock index) in 1 month.', min=0) OC2_min = models.FloatField(label='Lower', min=0) OC2_max = models.FloatField(label='Upper', min=0) OC3 = models.FloatField(label='3. Please, give a point estimate of the quote of the DJIA (Dow Jones Industrial Average) in 1 month.', min=0) OC4_min = models.FloatField(label='Lower', min=0) OC4_max = models.FloatField(label='Upper', min=0) OC5 = models.FloatField(label='5. How good is your investment performance exceeding other five people? The answer could be given out of six categories (0–5) from not exceeding any people to exceeding all other five people.', max=5, min=0)