orderbuilding fixes for new line price semantics
This commit is contained in:
@@ -28,7 +28,7 @@ import {useOrderStore, useStore} from "@/store/store";
|
||||
import LimitPrice from "@/components/LimitPrice.vue";
|
||||
import Order from "@/components/Order.vue";
|
||||
import {computed, ref} from "vue";
|
||||
import {applyLinePoints, linePointsValue} from "@/orderbuild.js";
|
||||
import {applyLinePoints, linePointsValue, useChartOrderStore} from "@/orderbuild.js";
|
||||
import {newTranche} from "@/blockchain/orderlib.js";
|
||||
import TimeEntry from "@/components/TimeEntry.vue";
|
||||
import RoutePrice from "@/components/RoutePrice.vue";
|
||||
@@ -47,7 +47,8 @@ const curLimit = computed(()=>linePointsValue(time1.value, price1.value, time2.v
|
||||
|
||||
function buildTranches() {
|
||||
const t = newTranche();
|
||||
applyLinePoints(t, time1.value, price1.value, time2.value, price2.value)
|
||||
const co = useChartOrderStore();
|
||||
applyLinePoints(t, co.selectedSymbol, os.buy, time1.value, price1.value, time2.value, price2.value)
|
||||
return [t]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user