@orderly.network/hooks 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -28,9 +28,9 @@ var useSWRSubscription__default = /*#__PURE__*/_interopDefault(useSWRSubscriptio
|
|
|
28
28
|
// src/version.ts
|
|
29
29
|
if (typeof window !== "undefined") {
|
|
30
30
|
window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
|
|
31
|
-
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.1.
|
|
31
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.1.2";
|
|
32
32
|
}
|
|
33
|
-
var version_default = "1.1.
|
|
33
|
+
var version_default = "1.1.2";
|
|
34
34
|
var fetcher = (url, init = {}, queryOptions) => net.get(url, init, queryOptions?.formatter);
|
|
35
35
|
var OrderlyContext = React.createContext({
|
|
36
36
|
// configStore: new MemoryConfigStore(),
|
|
@@ -2019,7 +2019,7 @@ var LimitOrderCreator = class extends BaseOrderCreator {
|
|
|
2019
2019
|
min: minPriceNumber,
|
|
2020
2020
|
max: scropePriceNumbere
|
|
2021
2021
|
};
|
|
2022
|
-
if (price.gt(priceRange
|
|
2022
|
+
if (price.gt(priceRange?.max)) {
|
|
2023
2023
|
errors.order_price = {
|
|
2024
2024
|
type: "max",
|
|
2025
2025
|
message: `Price must be less than ${new utils.Decimal(
|
|
@@ -2027,7 +2027,7 @@ var LimitOrderCreator = class extends BaseOrderCreator {
|
|
|
2027
2027
|
).todp(symbol.quote_dp)}`
|
|
2028
2028
|
};
|
|
2029
2029
|
}
|
|
2030
|
-
if (price.lt(priceRange
|
|
2030
|
+
if (price.lt(priceRange?.min)) {
|
|
2031
2031
|
errors.order_price = {
|
|
2032
2032
|
type: "min",
|
|
2033
2033
|
message: `Price must be greater than ${new utils.Decimal(
|
|
@@ -2113,7 +2113,7 @@ var StopLimitOrderCreator = class extends LimitOrderCreator {
|
|
|
2113
2113
|
min: minPriceNumber,
|
|
2114
2114
|
max: scropePriceNumbere
|
|
2115
2115
|
};
|
|
2116
|
-
if (price.gt(priceRange
|
|
2116
|
+
if (price.gt(priceRange?.max)) {
|
|
2117
2117
|
errors.order_price = {
|
|
2118
2118
|
type: "max",
|
|
2119
2119
|
message: `Price must be less than ${new utils.Decimal(
|
|
@@ -2121,7 +2121,7 @@ var StopLimitOrderCreator = class extends LimitOrderCreator {
|
|
|
2121
2121
|
).todp(symbol.quote_dp)}`
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
|
-
if (price.lt(priceRange
|
|
2124
|
+
if (price.lt(priceRange?.min)) {
|
|
2125
2125
|
errors.order_price = {
|
|
2126
2126
|
type: "min",
|
|
2127
2127
|
message: `Price must be greater than ${new utils.Decimal(
|