EA using API

 
Is it possible to use a pricing feed api in a EA to trigger trades in mt4? Or is that not possible to use an outside api with a mt4 ea because of the the type of code used by mt4?
 
The terminal is your API.