""" This module contains the general business rules for this player including the player's profit expectation and limits on the size of a swap and the duration of the swap. """ player = "C" # profit_rate_minimum is the lowest profit that is acceptable expressed as percentage points per month. # the maximum profit will be default to an unrealistically high value of 20% per month. # The profit_rate_minimum must be high enough to take account of the uncertainty in the trading # price of the stocks at the close of the stock swap. profit_rate_minimum = 0.5 # transaction_size_minimum is the lowest acceptable value of the stock involved in the initial # exchange of the stock swap. This minimum prevents small transactions with a high administrative cost. transaction_size_minimum = 250000 # maximum swap value in dollars max_value = 2000000 # maximum duration of the swap in months max_interval = 24 # a player can also block an offer based on the stock accepted in the swap or the stock given in the swap block_accept_stock = [ ] block_for_stock = []