feat: saxo
This commit is contained in:
@@ -1738,7 +1738,18 @@ export type SaxoSnapshotRow = {
|
||||
expiry_date: string; strike: number; option_type: 'call' | 'put'
|
||||
bid: number | null; ask: number | null; mid: number | null; volatility_pct: number | null
|
||||
delta: number | null; gamma: number | null; theta: number | null; vega: number | null
|
||||
created_at: string
|
||||
is_synthetic?: number; created_at: string
|
||||
}
|
||||
|
||||
export const useDedupeSaxoHistory = () => {
|
||||
const qc = useQueryClient()
|
||||
return useMutation({
|
||||
mutationFn: () => api.post('/saxo/history/dedupe').then(r => r.data as { rows_deleted: number }),
|
||||
onSuccess: () => {
|
||||
qc.invalidateQueries({ queryKey: ['saxo-history'] })
|
||||
qc.invalidateQueries({ queryKey: ['saxo-symbols'] })
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export const useSaxoHistory = (symbol?: string, dateFrom?: string, dateTo?: string) =>
|
||||
|
||||
Reference in New Issue
Block a user