code: def earn_stock_dividend(self, stock_dividend):
          
          return {
              'payment_asset': stock_dividend.payment_asset,
              'share_count': np.floor(
                  self.amount * float(stock_dividend.ratio)
              )
          }
docs: Register the number of shares we held at this dividend's ex date so
          that we can pay out the correct amount on the dividend's pay date.