Skip to content

[feature] ~/.upbit/credentials  #52

Description

@seunggabi

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions