Package api.exchange.module
Class OrdersApi
java.lang.Object
api.exchange.module.AuthApi
api.exchange.module.OrdersApi
주문 API 클래스
- Since:
- 2021.11.30 Tue 14:39:44
- Author:
- RWB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteOrder(String uuid)주문 취소 접수 응답 반환 메서드 (필수 파라미터)deleteOrder(String uuid, String identifier)주문 취소 접수 응답 반환 메서드개별 주문 조회 응답 반환 메서드 (필수 파라미터)개별 주문 정보 조회 응답 반환 메서드getOrderInfo(String market)주문 가능 정보 조회 응답 반환 메서드주문 리스트 조회 응답 반환 메서드 (필수 파라미터)getOrderLists(String market, String state)주문 리스트 조회 응답 반환 메서드 (일부 파라미터)getOrderLists(String market, String[] uuids, String[] identifiers, String state, String[] states, int page, int limit, String order_by)주문 리스트 조회 응답 반환 메서드postBuyOrder(String market, int price)매도 주문 응답 반환 메서드 (필수 파라미터)postBuyOrder(String market, int price, String identifier)매도 주문 응답 반환 메서드postLimitOrder(String market, String side, int volume, int price, String identifier)지정가 매도/매수 주문 응답 반환 메서드postSellOrder(String market, int volume)매수 주문 응답 반환 메서드 (필수 파라미터)postSellOrder(String market, int volume, String identifier)매수 주문 응답 반환 메서드Methods inherited from class api.exchange.module.AuthApi
getAuthToken, getAuthToken, getAuthToken
-
Constructor Details
-
OrdersApi
생성자 메서드- Parameters:
api- : [String] API 키secret- : [String] API Secret 키
-
-
Method Details
-
getOrderInfo
public UpbitResponse<OrderInfo> getOrderInfo(String market) throws IOException, NoSuchAlgorithmException주문 가능 정보 조회 응답 반환 메서드- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)- Returns:
- [UpbitResponse] OrderInfo[]를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
getOrder
public UpbitResponse<OrderDetail> getOrder(String uuid) throws IOException, NoSuchAlgorithmException개별 주문 조회 응답 반환 메서드 (필수 파라미터)- Parameters:
uuid- : [String] 주문 UUID- Returns:
- [UpbitResponse] OrderDetail를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
getOrder
public UpbitResponse<OrderDetail> getOrder(String uuid, String identifier) throws IOException, NoSuchAlgorithmException개별 주문 정보 조회 응답 반환 메서드- Parameters:
uuid- : [String] 주문 UUIDidentifier- : [String] 조회용 사용자 지정 값- Returns:
- [UpbitResponse] OrderDetail를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
getOrderLists
주문 리스트 조회 응답 반환 메서드 (필수 파라미터)- Returns:
- [UpbitResponse] Order[]를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
getOrderLists
public UpbitResponse<Order[]> getOrderLists(String market, String state) throws IOException, NoSuchAlgorithmException주문 리스트 조회 응답 반환 메서드 (일부 파라미터)- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)state- : [String] 주문 상태 (wait, watch, done, cancel)- Returns:
- [UpbitResponse] Order[]를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
getOrderLists
public UpbitResponse<Order[]> getOrderLists(String market, String[] uuids, String[] identifiers, String state, String[] states, int page, int limit, String order_by) throws IOException, NoSuchAlgorithmException주문 리스트 조회 응답 반환 메서드- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)uuids- : [String[]] 주문 UUID 목록identifiers- : [String[]] 주문 사용자 지정 값 목록state- : [String] 주문 상태 (wait, watch, done, cancel)states- : [String[]] 주문 상태 목록page- : [int] 페이지 수limit- : [int] 요청 갯수order_by- : [String] 정렬 방식 (asc, desc)- Returns:
- [UpbitResponse] Order[]를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
deleteOrder
주문 취소 접수 응답 반환 메서드 (필수 파라미터)- Parameters:
uuid- : [String] 주문 UUID- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
deleteOrder
public UpbitResponse<Order> deleteOrder(String uuid, String identifier) throws IOException, NoSuchAlgorithmException주문 취소 접수 응답 반환 메서드- Parameters:
uuid- : [String] 주문 UUIDidentifier- : [String] 조회용 사용자 지정 값- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
postSellOrder
public UpbitResponse<Order> postSellOrder(String market, int volume) throws IOException, NoSuchAlgorithmException매수 주문 응답 반환 메서드 (필수 파라미터)- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)volume- : [int] 주문량- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
postSellOrder
public UpbitResponse<Order> postSellOrder(String market, int volume, String identifier) throws IOException, NoSuchAlgorithmException매수 주문 응답 반환 메서드- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)volume- : [int] 주문량identifier- : [String] 조회용 사용자 지정값- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
postBuyOrder
public UpbitResponse<Order> postBuyOrder(String market, int price) throws IOException, NoSuchAlgorithmException매도 주문 응답 반환 메서드 (필수 파라미터)- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)price- : [int] 주문 가격- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
postBuyOrder
public UpbitResponse<Order> postBuyOrder(String market, int price, String identifier) throws IOException, NoSuchAlgorithmException매도 주문 응답 반환 메서드- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)price- : [int] 주문 가격identifier- : [String] 조회용 사용자 지정값- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-
postLimitOrder
public UpbitResponse<Order> postLimitOrder(String market, String side, int volume, int price, String identifier) throws IOException, NoSuchAlgorithmException지정가 매도/매수 주문 응답 반환 메서드- Parameters:
market- : [String] 마켓 코드 (ex. KRW-BTC)side- : [String] 주문 종류 (bid or ask)volume- : [int] 주문량price- : [int] 주문 가격identifier- : [String] 조회용 사용자 지정값- Returns:
- [UpbitResponse] Order를 포함한 Upbit 응답 객체
- Throws:
IOException- 데이터 입출력 예외NoSuchAlgorithmException- 찾을 수 없는 알고리즘 예외
-