본문 바로가기

bitcoin automated trading

[Bitcoin Automated Trading] Using Upbit Open API

------------------------------------------------------------------------------------------------------------------

https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code

Referral Code : 21391362

------------------------------------------------------------------------------------------------------------------

 

1. Get an open API key

Upbit also provides an open API, which enables automation. You only need to call the open API to inquire coin quotes or candles. However, tasks that require my wallet information must be issued with an open API key.

https://upbit.com/service_center/open_api_guide

Create a key in Open API Key Management. It checks the desired functions and even registers an IP address for security. Then, an access key and two secret keys are issued.

2. 전체 계좌 조회해보기

Documentation for development is available at the following site. The current RestAPI version is v1.3.3 as of document writing.

https://docs.upbit.com/docs

When requesting, you need to add an authentication token to the header, but it's not difficult.

https://docs.upbit.com/docs/create-authorization-request

This is a limit on API requests. When calling API, it is 30 times per second and 900 times per minute.

https://docs.upbit.com/docs/user-request-guide

Python basic code examples are well done, making it easy.

Let's look at the entire account. Since there are no parameters, I subtract them and code them.

You can see that it is the same as Upbit.

3. Search coins listed on Upbit

A simple coin lookup does not require an API key.

4. Searching candles on Upbit

Search candles. Coin, period, and quantity can be adjusted with parameters.

 

------------------------------------------------------------------------------------------------------------------

https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code

Referral Code : 21391362

------------------------------------------------------------------------------------------------------------------