aurbano / robinhood-node

:chart_with_upwards_trend: NodeJS client for Robinhood Trading :fire:

Home Page:https://aurbano.github.io/robinhood-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Market buy { account: [ 'This field may not be null.' ] }

kalli88 opened this issue · comments

This returns 400 { account: [ 'This field may not be null.' ] }

var options = {
type: 'market',
quantity: 1,
instrument: {
symbol: 'AAC',
url: 'https://api.robinhood.com/instruments/0d13f0c3-c93d-4044-8f7f-c14f81df13e7/'
}
}

Robinhood.place_buy_order(options, function(error, response, body){
  if(error){
      console.error(error);
  }else{
      console.log(body);
  }
});