Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Where do i put the api key and secret? #23

Closed
ryanbishop12 opened this issue Feb 13, 2018 · 6 comments
Closed

Where do i put the api key and secret? #23

ryanbishop12 opened this issue Feb 13, 2018 · 6 comments
Labels

Comments

@ryanbishop12
Copy link

Where do i put the api key and secret used to encrypt the signature needed to place an order?

@ryanbishop12
Copy link
Author

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.

@wcrbrm
Copy link
Member

wcrbrm commented Feb 13, 2018

you actually have 3 options,

  1. you can put environment variables with export or set command (depending on your OS)
  2. you can put VM arguments, and call it like -DBINANCE_API_KEY=... -DBINANCE_SECRET_KEY=...
  3. you can hard code application.properties file under your resource folder.

@ryanbishop12
Copy link
Author

the key and secret are in the environment variables when i run set but it still wont work the same error

@ryanbishop12
Copy link
Author

I also put it in the application.properties with still no luck

@ryanbishop12
Copy link
Author

it says BINANCE_API_SECRET in the read me but it should be BINANCE_SECRET_KEY

@ryanbishop12
Copy link
Author

i fixed it, i had the application.properties under the wrong folder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants