if (FALSE) {
# Place Mutual Fund Buy order for $10
acts = etrd_account_list()
account = acts$accountIdKey[1]
mforder = etrd_place_mf_order(account = account,
symbol = 'SWTSX',
quantityType = 'DOLLAR',
investmentAmount = 10,
mfTransaction = 'buy',
reInvestOption = 'reinvest',
previewOrder = 'df')
etrd_cancel_order(mforder$accountidKey, mforder$orderid.orderId)
}
Run the code above in your browser using DataLab