Order#

class pams.Order(agent_id, market_id, is_buy, kind, volume, placed_at=None, price=None, order_id=None, ttl=None)[ソース]#

Order class.

check_system_acceptable(agent_id)[ソース]#

check system acceptable. (Usually, markets automatically check it.)

パラメータ:

agent_id (int) -- agent ID.

戻り値の型:

None

戻り値:

None

is_expired(time)[ソース]#

get whether the order is expired or not.

パラメータ:

time (int) -- time to order expiration.

戻り値:

whether the order is expired or not.

戻り値の型:

bool