3bot: fixed the if statement for cancel the orders

it's a typo bug

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
3bot: update data by using foreach

Using foreach to update data

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>