UNPKG
@ln-markets/sdk
Version:
latest (2.0.2)
next (1.0.0-beta.2)
2.0.2
2.0.1
2.0.0
1.2.5
1.2.4
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
1.0.0-beta.2
0.0.10
0.0.8
TypeScript SDK for LNMarkets API
github.com/ln-markets/sdk-typescript
ln-markets/sdk-typescript
@ln-markets/sdk
/
src
/
v2
/
routes
/
options
/
get-instruments.ts
12 lines
(10 loc)
•
295 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
type
{
KyInstance
}
from
'ky'
export
const
createGetInstruments
= (
instance
:
KyInstance
) => {
/** *
@see
https://docs.lnmarkets.com/api/operations/optionsgetinstruments */
return
async
() => instance.
get
(
'options/instruments'
).
json
<{
instruments
:
string
[] }>() }