uJhin / upbit-client

Upbit(업비트) Cryptocurrency Exchange Open API Client of Multi-Programming Language Support
https://ujhin.github.io/upbit-client-docs/
MIT License
55 stars 43 forks source link

[feature] ~/.upbit/credentials #52

Open seunggabi opened 1 year ago

seunggabi commented 1 year ago

Is your feature request related to a problem? Please describe. I want to use multiple user in get credentials in home directory.

# ~/.upbit/credentials
[default]
access_key = 
secret_key = 

[profile-a]
access_key = 
secret_key = 

[profile-b]
access_key = 
secret_key = 
...

Describe the solution you'd like

access_key = "Your Access Key" secret_key = "Your Secret Key"

client = Upbit(access_key, secret_key) api_keys = client.APIKey.APIKey_info() print(api_keys['result'])

- to-be

from upbit.client import Upbit

client = Upbit() # default client = Upbit(profile="profile-a") api_keys = client.APIKey.APIKey_info() print(api_keys['result'])



**Additional context**
I will make pr.