Skip to content

Commit

Permalink
Rename from ...BuyLimit to ...LongLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
backslash-f committed May 30, 2024
1 parent 7c42aa6 commit ba93819
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public extension SwiftTraderError {
.kucoinSpotGetAccount,
.kucoinSpotGetTransferable,
.kucoinSpotPlaceStopLimitOrder,
.kucoinSpotHFPlaceMultipleBuyLimitOrders,
.kucoinSpotHFPlaceMultipleLongLimitOrders,
.kucoinSpotOrderList,
.kucoinSpotStopOrderList,
.kucoinSpotCancelStopOrders,
Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftTrader/Model/Error/SwiftTraderError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public enum SwiftTraderError: Error {
/// And error ocurred while executing the function `SwiftTrader.kucoinFuturesStopOrderList(symbol:)`.
case kucoinFuturesStopOrderList(error: Error)

/// And error ocurred while executing the function `SwiftTrader.kucoinSpotHFPlaceMultipleBuyLimitOrders(_:)`.
case kucoinSpotHFPlaceMultipleBuyLimitOrders(error: Error)
/// And error ocurred while executing the function `SwiftTrader.kucoinSpotHFPlaceMultipleLongLimitOrders(_:)`.
case kucoinSpotHFPlaceMultipleLongLimitOrders(error: Error)

/// And error ocurred while executing the function `SwiftTrader.kucoinFuturesPlaceStopLimitOrder()`.
case kucoinFuturesPlaceStopLimitOrder(error: Error)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftTrader/Model/SwiftTraderOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum SwiftTraderOperation {

// MARK: Spot HF

case kucoinSpotHFPlaceMultipleBuyLimitOrders
case kucoinSpotHFPlaceMultipleLongLimitOrders

// MARK: Futures

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftTrader/SwiftTrader+Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public extension SwiftTrader {
.kucoinSpotOrderList: SwiftTraderError.kucoinSpotOrderList,
.kucoinSpotStopOrderList: SwiftTraderError.kucoinFuturesPositionList,
.kucoinSpotCancelStopOrders: SwiftTraderError.kucoinSpotCancelStopOrders,
.kucoinSpotHFPlaceMultipleBuyLimitOrders: SwiftTraderError.kucoinSpotHFPlaceMultipleBuyLimitOrders,
.kucoinSpotHFPlaceMultipleLongLimitOrders: SwiftTraderError.kucoinSpotHFPlaceMultipleLongLimitOrders,
.kucoinFuturesAccountOverview: SwiftTraderError.kucoinFuturesAccountOverview,
.kucoinFuturesCancelStopOrders: SwiftTraderError.kucoinFuturesCancelStopOrders,
.kucoinFuturesStopOrderList: SwiftTraderError.kucoinFuturesStopOrderList,
Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftTrader/SwiftTrader+KucoinSpotHF.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public extension SwiftTrader {
/// one could trigger five selling orders targeting the desired profit percentage, for example,
/// 60% (conservative), 100% or 200% of the given highest bid or last order price
/// (some new listings could go as high as 800%, or even more).
func kucoinSpotHFPlaceMultipleBuyLimitOrders(
func kucoinSpotHFPlaceMultipleLongLimitOrders(
_ orderInput: SwiftTraderMultiLongLimitOrderInput
) async throws -> Result<KucoinHFPlaceMultiOrdersResponse, SwiftTraderError> {

Expand All @@ -86,7 +86,7 @@ public extension SwiftTrader {
case .failure(let error):
let swiftTraderError = handle(
networkRequestError: error,
operation: .kucoinSpotHFPlaceMultipleBuyLimitOrders
operation: .kucoinSpotHFPlaceMultipleLongLimitOrders
)
return .failure(swiftTraderError)
}
Expand Down

0 comments on commit ba93819

Please sign in to comment.