'Set the benchmark asset.
Parameters
benchmark : Asset
The asset to set as the new benchmark.
Notes
Any dividends payed out for that new benchmark asset will be
automatically reinvested.'

@api_method
def set_benchmark(self, benchmark):

    if self.initialized:
        raise SetBenchmarkOutsideInitialize()
    self.benchmark_sid = benchmark
