Please keep in mind that some brokers have minimum account sizes for using API on their accounts. As far as I know they are:
Dukascopy: $100k
IB: $10k
Oanda: none