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)
Author
# Functions
CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
# Structs
사용자의 계좌 정보.
APIClient manages communication with the Upbit Open API API v1.0.0 In most cases there should be only one, shared, APIClient.
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
매도 시 제약사항.
매도 시 사용하는 화폐의 계좌 상태.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
매수 시 제약사항.
매수 시 사용하는 화폐의 계좌 상태.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
화폐 정보.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Error 상세 정보.
GenericSwaggerError Provides access to the body, error and model on returned errors.
마켓에 대한 정보.
No description provided by the author
No description provided by the author
사용자의 보안등급 정보.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
출금 제약 정보.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author