PINE LIBRARY
OrderlyWebhookJSON

Library "OrderlyWebhookJSON"
Orderly 거래소 자동 거래를 위한 JSON Webhook 메시지 생성 라이브러리. Market/Limit 주문, TP/SL 설정, Percent/Absolute 수량 지정 등을 지원합니다.
createMarketOrder(symbol, leverage, side, position, quantity_type, quantity, tp_type, tp_value, sl_type, sl_value)
Market 주문 JSON 생성 (TP/SL 포함)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값 (Percent인 경우 0-100, Absolute인 경우 실제 수량)
tp_type (string): "percent" 또는 "price"
tp_value (float): TP 값 (percent인 경우 퍼센트, price인 경우 절대가격)
sl_type (string): "percent" 또는 "price"
sl_value (float): SL 값 (percent인 경우 퍼센트, price인 경우 절대가격)
Returns: JSON 형식 문자열
createLimitOrder(symbol, leverage, side, position, limit_price, quantity_type, quantity, tp_type, tp_value, sl_type, sl_value)
Limit 주문 JSON 생성 (TP/SL 포함)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
limit_price (float): Limit 주문 가격
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값 (Percent인 경우 0-100, Absolute인 경우 실제 수량)
tp_type (string): "percent" 또는 "price"
tp_value (float): TP 값 (percent인 경우 퍼센트, price인 경우 절대가격)
sl_type (string): "percent" 또는 "price"
sl_value (float): SL 값 (percent인 경우 퍼센트, price인 경우 절대가격)
Returns: JSON 형식 문자열
createSimpleMarketOrder(symbol, leverage, side, position, quantity_type, quantity)
Market 주문 JSON 생성 (TP/SL 없음 - 간단 버전)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값
Returns: JSON 형식 문자열
createSimpleLimitOrder(symbol, leverage, side, position, limit_price, quantity_type, quantity)
Limit 주문 JSON 생성 (TP/SL 없음 - 간단 버전)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
limit_price (float): Limit 주문 가격
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값
Returns: JSON 형식 문자열
createClosePosition(symbol, side, quantity_type, quantity)
포지션 종료 전용 JSON 생성
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
side (string): "Long" 또는 "Short" (종료할 포지션의 반대 방향)
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값 (Percent 100 = 전체 종료)
Returns: JSON 형식 문자열
Orderly 거래소 자동 거래를 위한 JSON Webhook 메시지 생성 라이브러리. Market/Limit 주문, TP/SL 설정, Percent/Absolute 수량 지정 등을 지원합니다.
createMarketOrder(symbol, leverage, side, position, quantity_type, quantity, tp_type, tp_value, sl_type, sl_value)
Market 주문 JSON 생성 (TP/SL 포함)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값 (Percent인 경우 0-100, Absolute인 경우 실제 수량)
tp_type (string): "percent" 또는 "price"
tp_value (float): TP 값 (percent인 경우 퍼센트, price인 경우 절대가격)
sl_type (string): "percent" 또는 "price"
sl_value (float): SL 값 (percent인 경우 퍼센트, price인 경우 절대가격)
Returns: JSON 형식 문자열
createLimitOrder(symbol, leverage, side, position, limit_price, quantity_type, quantity, tp_type, tp_value, sl_type, sl_value)
Limit 주문 JSON 생성 (TP/SL 포함)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
limit_price (float): Limit 주문 가격
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값 (Percent인 경우 0-100, Absolute인 경우 실제 수량)
tp_type (string): "percent" 또는 "price"
tp_value (float): TP 값 (percent인 경우 퍼센트, price인 경우 절대가격)
sl_type (string): "percent" 또는 "price"
sl_value (float): SL 값 (percent인 경우 퍼센트, price인 경우 절대가격)
Returns: JSON 형식 문자열
createSimpleMarketOrder(symbol, leverage, side, position, quantity_type, quantity)
Market 주문 JSON 생성 (TP/SL 없음 - 간단 버전)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값
Returns: JSON 형식 문자열
createSimpleLimitOrder(symbol, leverage, side, position, limit_price, quantity_type, quantity)
Limit 주문 JSON 생성 (TP/SL 없음 - 간단 버전)
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
leverage (float): 레버리지 배율 (예: 10)
side (string): "Long" 또는 "Short"
position (string): "Open" 또는 "Close"
limit_price (float): Limit 주문 가격
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값
Returns: JSON 형식 문자열
createClosePosition(symbol, side, quantity_type, quantity)
포지션 종료 전용 JSON 생성
Parameters:
symbol (string): 거래 심볼 (예: "BTCUSDT")
side (string): "Long" 또는 "Short" (종료할 포지션의 반대 방향)
quantity_type (string): "Percent" 또는 "Absolute"
quantity (float): 수량 값 (Percent 100 = 전체 종료)
Returns: JSON 형식 문자열
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.