Fix order Return type

This commit is contained in:
Matthias 2022-08-09 20:43:52 +02:00
parent 6d5ac2fa8d
commit 785a7ebc24
2 changed files with 4 additions and 4 deletions

View File

@ -97,10 +97,10 @@
/> />
<b class="ml-1">{{ order.ft_order_side }}</b> for <b class="ml-1">{{ order.ft_order_side }}</b> for
<b>{{ formatPrice(order.safe_price) }}</b> | <b>{{ formatPrice(order.safe_price) }}</b> |
<span v-if="order.remaining !== 0" title="remaining" <span v-if="order.remaining && order.remaining !== 0" title="remaining"
>{{ formatPrice(order.remaining, 8) }} / >{{ formatPrice(order.remaining, 8) }} /
</span> </span>
<span title="Filled">{{ formatPrice(order.filled, 8) }}</span> <span title="Filled">{{ formatPrice(order.filled ?? 0, 8) }}</span>
</span> </span>
</div> </div>
</details> </details>

View File

@ -12,9 +12,9 @@ export interface Order extends BTOrder {
pair: string; pair: string;
order_id: string; order_id: string;
status: string; status: string;
remaining: number; remaining: number | null;
cost: number; cost: number;
filled: number; filled: number | null;
order_type: string; order_type: string;
is_open: boolean; is_open: boolean;
order_timestamp?: number; order_timestamp?: number;