add common func & buy sell rec code
save
save
a big save
api&test complete