public api refactor
trading api refactor