Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] ~/.upbit/credentials #52

Open
seunggabi opened this issue May 13, 2023 · 0 comments
Open

[feature] ~/.upbit/credentials #52

seunggabi opened this issue May 13, 2023 · 0 comments
Labels
기능 추가 (Add Functions) 새로운 기능 추가 (Add Functions) 요청

Comments

@seunggabi
Copy link

seunggabi commented May 13, 2023

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 seunggabi added the 기능 추가 (Add Functions) 새로운 기능 추가 (Add Functions) 요청 label May 13, 2023
seunggabi added a commit to seunggabi/upbit-client that referenced this issue May 13, 2023
seunggabi added a commit to seunggabi/upbit-client that referenced this issue May 13, 2023
seunggabi added a commit to seunggabi/upbit-client that referenced this issue May 13, 2023
seunggabi added a commit to seunggabi/upbit-client that referenced this issue May 13, 2023
seunggabi added a commit to seunggabi/upbit-client that referenced this issue May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
기능 추가 (Add Functions) 새로운 기능 추가 (Add Functions) 요청
Projects
None yet
Development

No branches or pull requests

1 participant