{"action":"created","issue":{"url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/243","repository_url":"https://api.github.com/repos/jaggedsoft/node-binance-api","labels_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/243/comments","events_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/243/events","html_url":"https://github.com/jaggedsoft/node-binance-api/issues/243","id":339256375,"node_id":"MDU6SXNzdWUzMzkyNTYzNzU=","number":243,"title":"TypeError: binance.options is not a function","user":{"login":"Roy5000","id":34909965,"node_id":"MDQ6VXNlcjM0OTA5OTY1","avatar_url":"https://avatars1.githubusercontent.com/u/34909965?v=4","gravatar_id":"","url":"https://api.github.com/users/Roy5000","html_url":"https://github.com/Roy5000","followers_url":"https://api.github.com/users/Roy5000/followers","following_url":"https://api.github.com/users/Roy5000/following{/other_user}","gists_url":"https://api.github.com/users/Roy5000/gists{/gist_id}","starred_url":"https://api.github.com/users/Roy5000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roy5000/subscriptions","organizations_url":"https://api.github.com/users/Roy5000/orgs","repos_url":"https://api.github.com/users/Roy5000/repos","events_url":"https://api.github.com/users/Roy5000/events{/privacy}","received_events_url":"https://api.github.com/users/Roy5000/received_events","type":"User","site_admin":false},"labels":[{"id":711853015,"node_id":"MDU6TGFiZWw3MTE4NTMwMTU=","url":"https://api.github.com/repos/jaggedsoft/node-binance-api/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-08T20:46:23Z","updated_at":"2018-07-08T21:39:39Z","closed_at":null,"author_association":"NONE","body":"\r\nUnable to run getting started code,  running the code will return message 'TypeError: binance.options is not a function'.\r\n\r\nReinstall of npm package did not solve this issue.  Do I need to define the options function separately?\r\n\r\n**code**\r\n```\r\nconst binance = require('node-binance-api');\r\nbinance.options({\r\n  APIKEY: '<key>',\r\n  APISECRET: '<secret>',\r\n  useServerTime: true, // If you get timestamp errors, synchronize to server time at startup\r\n  test: true // If you want to use sandbox mode where orders are simulated\r\n});\r\n\r\n```\r\n\r\n**result**\r\n```\r\nC:\\Users\\name\\Documents\\APP\\app2.js:6\r\nbinance.options({\r\n        ^\r\n\r\nTypeError: binance.options is not a function\r\n    at Object.<anonymous> (C:\\Users\\rvan17\\Documents\\APP\\app2.js:6:9)\r\n    at Module._compile (module.js:635:30)\r\n    at Object.Module._extensions..js (module.js:646:10)\r\n    at Module.load (module.js:554:32)\r\n    at tryModuleLoad (module.js:497:12)\r\n    at Function.Module._load (module.js:489:3)\r\n    at Function.Module.runMain (module.js:676:10)\r\n    at startup (bootstrap_node.js:187:16)\r\n    at bootstrap_node.js:608:3\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/comments/403319256","html_url":"https://github.com/jaggedsoft/node-binance-api/issues/243#issuecomment-403319256","issue_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/243","id":403319256,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMxOTI1Ng==","user":{"login":"jaggedsoft","id":4283360,"node_id":"MDQ6VXNlcjQyODMzNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/4283360?v=4","gravatar_id":"","url":"https://api.github.com/users/jaggedsoft","html_url":"https://github.com/jaggedsoft","followers_url":"https://api.github.com/users/jaggedsoft/followers","following_url":"https://api.github.com/users/jaggedsoft/following{/other_user}","gists_url":"https://api.github.com/users/jaggedsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/jaggedsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaggedsoft/subscriptions","organizations_url":"https://api.github.com/users/jaggedsoft/orgs","repos_url":"https://api.github.com/users/jaggedsoft/repos","events_url":"https://api.github.com/users/jaggedsoft/events{/privacy}","received_events_url":"https://api.github.com/users/jaggedsoft/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T21:39:39Z","updated_at":"2018-07-08T21:39:39Z","author_association":"OWNER","body":"That should work, but this would be an alternative:\r\n\r\n```js\r\nconst Binance = require('node-binance-api');\r\nconst binance = new Binance().options({\r\n  APIKEY: '<key>',\r\n  APISECRET: '<secret>',\r\n  useServerTime: true\r\n});\r\n```"}}
{"actor":{"display_login":"jaggedsoft"}}