Skip to content

Commit

Permalink
Rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Feb 21, 2025
1 parent c8f27d5 commit f2bd51a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/impl_spottrading_orders_add_order.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ box::use(
#' @return Promise resolving to a `data.table` containing:
#' - `orderId` (character): Unique order ID generated by KuCoin (or simulated for test).
#' - `clientOid` (character): Client-specified order ID.
place_order_impl <- coro::async(function(
place_order_helper <- coro::async(function(
keys = get_api_keys(),
base_url = get_base_url(),
endpoint,
Expand Down Expand Up @@ -220,7 +220,7 @@ place_order_impl <- coro::async(function(

return(result_dt)
}, error = function(e) {
rlang::abort(sprintf("Error in place_order_impl: %s", conditionMessage(e)))
rlang::abort(sprintf("Error in place_order_helper: %s", conditionMessage(e)))
})
})

Expand Down Expand Up @@ -322,7 +322,7 @@ add_order_impl <- coro::async(function(
iceberg = NULL,
visibleSize = NULL
) {
return(place_order_impl(
return(place_order_helper(
keys = keys,
base_url = base_url,
endpoint = "/api/v1/hf/orders",
Expand Down Expand Up @@ -442,7 +442,7 @@ add_order_test_impl <- coro::async(function(
iceberg = NULL,
visibleSize = NULL
) {
return(place_order_impl(
return(place_order_helper(
keys = keys,
base_url = base_url,
endpoint = "/api/v1/hf/orders/test",
Expand Down

0 comments on commit f2bd51a

Please sign in to comment.