wip order func
wip order func
order written. fixed null pricehistory in ctor