aurbano / robinhood-node

:chart_with_upwards_trend: NodeJS client for Robinhood Trading :fire:
https://aurbano.github.io/robinhood-node
MIT License
694 stars 184 forks source link

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

Open kalli88 opened 4 years ago

kalli88 commented 4 years ago

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);
  }
});