Where do i put the api key and secret?
ryanbishop12 opened this issue · comments
Ryan Bishop commented
Where do i put the api key and secret used to encrypt the signature needed to place an order?
Ryan Bishop commented
I think i figured out i need to put them in the system environment variables but now i get this error "Missing BINANCE_API_KEY" even though i put them in the environment variables.
Web Cerebrium commented
you actually have 3 options,
- you can put environment variables with
export
orset
command (depending on your OS) - you can put VM arguments, and call it like
-DBINANCE_API_KEY=... -DBINANCE_SECRET_KEY=...
- you can hard code
application.properties
file under your resource folder.
Ryan Bishop commented
the key and secret are in the environment variables when i run set but it still wont work the same error
Ryan Bishop commented
I also put it in the application.properties with still no luck
Ryan Bishop commented
it says BINANCE_API_SECRET in the read me but it should be BINANCE_SECRET_KEY
Ryan Bishop commented
i fixed it, i had the application.properties under the wrong folder