upbit-client icon indicating copy to clipboard operation
upbit-client copied to clipboard

[feature] ~/.upbit/credentials

Open seunggabi opened this issue 1 year ago • 0 comments

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

  • as-is
from upbit.client import Upbit

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.

seunggabi avatar May 13 '23 12:05 seunggabi