8000 [feature] ~/.upbit/credentials · Issue #52 · uJhin/upbit-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[feature] ~/.upbit/credentials  #52
Open
@seunggabi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0