from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = '' class Constants(BaseConstants): name_in_url = 'Quiz' 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']], widget=widgets.RadioSelect ) quiz2_1 = models.FloatField(label='a) Points from the stock index?', max=-18, min=-18) quiz2_2 = models.FloatField( label='b) Points from the risk-free asset?', max=13.5, min=13.5 ) quiz2_3 = models.FloatField( label='c) The fund wealth at the end of the round?', max=895.5, min=895.5 ) quiz3_1 = models.IntegerField(label='a) Points from the stock index?', max=72, min=72) quiz3_2 = models.IntegerField( label='b) Points from the risk-free asset?', max=3, min=3 ) quiz3_3 = models.IntegerField( label='c) The fund wealth at the end of the round?', max=675, min=675 ) quiz4_1 = models.IntegerField( label='a) Points from the stock index?', max=180, min=180 ) quiz4_2 = models.IntegerField( label='b) Points from the risk-free asset?', max=0, min=0 ) quiz4_3 = models.IntegerField( label='c) The fund wealth at the end of the round?', max=1365, min=1365 ) quiz5_1 = models.IntegerField(label='a) Your final Points?', max=1500, min=1500) quiz5_2 = models.FloatField( label='b) Your final payoff in dollars (don’t forget the flat fee of quiz)?', max=4.75, min=4.75, ) 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.' ) OC2 = models.FloatField( label='2. Give a range such that the quote of the DAX in 1 month will be inside this range with a probability of 90%.' ) OC3 = models.FloatField( label='3. Please, give a point estimate of the quote of the DJIA (Dow Jones Industrial Average) in 1 month.' ) OC4 = models.FloatField( label='4. Give a range such that the quote of the DJIA in 1 month will be inside this range with a probability of 90%.' ) 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.' )