package
0.0.0-20240717103524-fda510ba7854
Repository: https://github.com/ujhin/upbit-client.git
Documentation: pkg.go.dev
# README
Go API client for swagger
REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [[email protected]]
Overview
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.GoClientCodegen For more information, please visit https://github.com/uJhin
Installation
Put the package under your project folder and add the following in import:
import "./swagger"
Documentation for API Endpoints
All URIs are relative to https://api.upbit.com/v1
Class | Method | HTTP request | Description |
---|---|---|---|
APIKeyApi | APIKeyInfo | Get /api_keys | API 키 리스트 조회 |
AccountApi | AccountInfo | Get /accounts | 전체 계좌 조회 |
AccountApi | AccountWallet | Get /status/wallet | 입출금 현황 |
CandleApi | CandleDays | Get /candles/days | 시세 캔들 조회 (일 단위) |
CandleApi | CandleMinutes | Get /candles/minutes/{unit} | 시세 캔들 조회 (분 단위) |
CandleApi | CandleMonth | Get /candles/months | 시세 캔들 조회 (월 단위) |
CandleApi | CandleWeeks | Get /candles/weeks | 시세 캔들 조회 (주 단위) |
DepositApi | DepositCoinAddress | Get /deposits/coin_address | 개별 입금 주소 조회 |
DepositApi | DepositCoinAddresses | Get /deposits/coin_addresses | 전체 입금 주소 조회 |
DepositApi | DepositGenerateCoinAddress | Post /deposits/generate_coin_address | 입금 주소 생성 요청 |
DepositApi | DepositInfo | Get /deposit | 개별 입금 조회 |
DepositApi | DepositInfoAll | Get /deposits | 입금 리스트 조회 |
MarketApi | MarketInfoAll | Get /market/all | 마켓 코드 조회 |
OrderApi | OrderCancel | Delete /order | 주문 취소 접수 |
OrderApi | OrderChance | Get /orders/chance | 주문 가능 정보 |
OrderApi | OrderInfo | Get /order | 개별 주문 조회 |
OrderApi | OrderInfoAll | Get /orders | 주문 리스트 조회 |
OrderApi | OrderNew | Post /orders | 주문하기 |
OrderApi | OrderOrderbook | Get /orderbook | 시세 호가 정보(Orderbook) 조회 |
TradeApi | TradeTicker | Get /ticker | 시세 Ticker 조회 |
TradeApi | TradeTicks | Get /trades/ticks | 시세 체결 조회 |
WithdrawApi | WithdrawChance | Get /withdraws/chance | 출금 가능 정보 |
WithdrawApi | WithdrawCoin | Post /withdraws/coin | 코인 출금하기 |
WithdrawApi | WithdrawInfo | Get /withdraw | 개별 출금 조회 |
WithdrawApi | WithdrawInfoAll | Get /withdraws | 출금 리스트 조회 |
WithdrawApi | WithdrawKrw | Post /withdraws/krw | 원화 출금하기 |
Documentation For Models
- Account
- ApiKey
- Ask
- AskAccount
- Bid
- BidAccount
- CandleDate
- CandleDays
- CandleMinutes
- Currency
- Deposit
- DepositCompleteResponse
- DepositTransferResponse
- ErrorInfo
- Market
- MarketInfo
- MemberLevel
- ModelError
- NewOrder
- Order
- OrderChance
- OrderInfo
- Orderbook
- OrderbookUnit
- Ticker
- Trade
- TradeTicks
- Wallet
- Withdraw
- WithdrawChance
- WithdrawCoin
- WithdrawLimit
Documentation For Authorization
Bearer
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)