Skip to content

jongmin92/spring-boot-starter-upbit

Repository files navigation

spring-boot-starter-upbit

GitHub release (latest by date) build GitHub

This is an Upbit Open API Client Spring Boot Starter based on the Upbit v1.2.0 reference.

Download

repositories {
    mavenCentral()
}

dependencies {
    implementation("io.github.jongmin92:upbit-service-spring-boot-starter:1.0.0")
}

Usage

Set API Keys

To use it, must issue an API key from 마이페이지 - Open API 관리.
And set the issued API key on application.yml(properties).

upbit:
  client:
    access-key: { accessKey }
    secret-key: { secretKey }

Interface

This provides services for Sync, Async, and Coroutine interface.

  • UpbitExchangeService provides functionality for the EXCHANGE API.
  • UpbitQuotationService provides functionality for the QUOTATION API.

Sync

@Autowired
lateinit var upbitExchangeService: UpbitExchangeService

@Autowired
lateinit var upbitQuotationService: UpbitQuotationService

Async

return CompletableFuture<T>

@Autowired
lateinit var upbitExchangeAsyncService: UpbitExchangeAsyncService

@Autowired
lateinit var upbitQuotationAsyncService: UpbitQuotationAsyncService

Coroutine

return Deferred<T>

@Autowired
lateinit var upbitExchangeCoroutineService: UpbitExchangeCoroutineService

@Autowired
lateinit var upbitQuotationCoroutineService: UpbitQuotationCoroutineService

License

MIT