By code how to read trade history

 

Hello, 


Using code , How can i read trade history ( direct from broker )  and upload it into Database  , same as Myfxbook ? 


Note sure if this is the right place to ask if not kindly advice .