feat: saxo connector

This commit is contained in:
OpenSquared
2026-07-18 20:27:44 +02:00
parent dec5da37b1
commit d359480302
4 changed files with 110 additions and 7 deletions

View File

@@ -1768,3 +1768,14 @@ export const useRefreshSaxoCatalog = () => {
},
})
}
export type SaxoQuote = {
symbol: string; description: string | null; asset_type: string; uic: number
bid: number | null; ask: number | null; last_updated: string | null; price_source: string | null
}
export const useTestSaxoQuote = () =>
useMutation({
mutationFn: ({ symbol, assetType }: { symbol: string; assetType?: string }) =>
api.get<SaxoQuote>(`/saxo/quote/${encodeURIComponent(symbol)}`, { params: assetType ? { asset_type: assetType } : {} }).then(r => r.data),
})