Order structure
order_scheme = {
"maker": str,
"price": {"type": int, 'min': 0},
"qty": {
"base_qty":{"type": int, 'min': 0},
"quote_qty":{"type": int, 'min': 0}
},
"ticker": {"type": list, "min": 2, "max": 2, 'item_schema': {'type': str}},
"fee": {"type": dict, 'fields': order_fee_scheme},
"constraints": {
"number_of_swaps_allowed": {'type': int, 'min': 0},
"duration_valid": {'type': int, 'min': 0},
"created_at": {"type": int, "min": 0},
"stp":{type=int, "min":0, "max":3},
"nonce": {'type': int, 'min': 0},
"min_receive_amount": {"type": int, "min": 0},
"router_signer": str,
},
"salt": {"type": int, "min": 0},
"flags": {"type": dict, 'fields': {
'full_fill_only': bool,
'best_level_only': bool,
'post_only': bool,
'is_sell_side': bool,
'is_market_order': bool,
'to_ecosystem_book': bool,
'external_funds':bool
}
},
"source":str,
"sign": {"type": list, "min_size": 2, 'item_schema': {'type': int, 'min': 0}},
"router_sign": {"type": list, "min_size": 2, 'item_schema': {'type': int, 'min': 0}},
}
Order fee structure
{
"trade_fee": {"type": "FixedFee"},
"router_fee": {"type": "FixedFee"},
"gas_fee":{"type": "GasFee"}
}Last updated