Skip to content

added one_time_password to enter_exchange#8

Open
delciotorres wants to merge 1 commit intoilapi:masterfrom
delciotorres:one-time-password
Open

added one_time_password to enter_exchange#8
delciotorres wants to merge 1 commit intoilapi:masterfrom
delciotorres:one-time-password

Conversation

@delciotorres
Copy link

Implemented the OTP (One Time Password) Token for exchanges that reply with 'ONE_TIME_PASSWORD'

When you enter an exchange and it replies with 'ONE_TIME_PASSWORD', it means the exchange has enhanced security.

The OTP token will be sent via email and/or sms.

Get that token, call the enter_exchange again, this time passing the token as the example. Sometimes the tokens can come with a leading '0', so make sure to pass it as string.

il.enter_exchange(exchange, accept_splash=True)
'ONE_TIME_PASSWORD'

il.enter_exchange(exchange, accept_splash=True, one_time_password='xxxxxxxx')
'ALLOW'

Tested on V2 API only. Have no V1 api_key to test.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants