orderbuilding fixes for new line price semantics

This commit is contained in:
tim
2024-09-04 02:47:39 -04:00
parent 5afdc83957
commit 93dfb8bdcd
6 changed files with 29 additions and 43 deletions

View File

@@ -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]
}