def bid(self, trade_id, bid, fast=False):
method = '<STR_LIT>'<EOL>url = '<STR_LIT>' % trade_id<EOL>if not fast:<EOL><INDENT>rc = self.tradeStatus(trade_id)[<NUM_LIT:0>]<EOL>if rc['<STR_LIT>'] >= bid or self.credits < bid:<EOL><INDENT>return False  <EOL><DEDENT><DEDENT>data = {'<STR_LIT>': bid}<EOL>try:<EOL><INDENT>rc = self.__request__(method, url, data=json.dumps(data), params={'<STR_LIT>': self.sku_b}, fast=fast)[<EOL>'<STR_LIT>'][<NUM_LIT:0>]<EOL><DEDENT>except PermissionDenied:  <EOL><INDENT>return False<EOL><DEDENT>if rc['<STR_LIT>'] == '<STR_LIT>' or (<EOL>rc['<STR_LIT>'] == '<STR_LIT>' and rc['<STR_LIT>'] == '<STR_LIT>'):  <EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Make a bid.

        :params trade_id: Trade id.
        :params bid: Amount of credits You want to spend.
        :params fast: True for fastest bidding (skips trade status & credits check).