feat: saxo connector
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user