@nirvana-labs/nirvana 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/bin/migration-config.json +70 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/vektor/balances.d.mts +114 -0
- package/resources/vektor/balances.d.mts.map +1 -0
- package/resources/vektor/balances.d.ts +114 -0
- package/resources/vektor/balances.d.ts.map +1 -0
- package/resources/vektor/balances.js +44 -0
- package/resources/vektor/balances.js.map +1 -0
- package/resources/vektor/balances.mjs +40 -0
- package/resources/vektor/balances.mjs.map +1 -0
- package/resources/vektor/borrow/accounts.d.mts +114 -0
- package/resources/vektor/borrow/accounts.d.mts.map +1 -0
- package/resources/vektor/borrow/accounts.d.ts +114 -0
- package/resources/vektor/borrow/accounts.d.ts.map +1 -0
- package/resources/vektor/borrow/accounts.js +44 -0
- package/resources/vektor/borrow/accounts.js.map +1 -0
- package/resources/vektor/borrow/accounts.mjs +40 -0
- package/resources/vektor/borrow/accounts.mjs.map +1 -0
- package/resources/vektor/borrow/borrow.d.mts +22 -0
- package/resources/vektor/borrow/borrow.d.mts.map +1 -0
- package/resources/vektor/borrow/borrow.d.ts +22 -0
- package/resources/vektor/borrow/borrow.d.ts.map +1 -0
- package/resources/vektor/borrow/borrow.js +29 -0
- package/resources/vektor/borrow/borrow.js.map +1 -0
- package/resources/vektor/borrow/borrow.mjs +24 -0
- package/resources/vektor/borrow/borrow.mjs.map +1 -0
- package/resources/vektor/borrow/borrow_.d.mts +47 -0
- package/resources/vektor/borrow/borrow_.d.mts.map +1 -0
- package/resources/vektor/borrow/borrow_.d.ts +47 -0
- package/resources/vektor/borrow/borrow_.d.ts.map +1 -0
- package/resources/vektor/borrow/borrow_.js +26 -0
- package/resources/vektor/borrow/borrow_.js.map +1 -0
- package/resources/vektor/borrow/borrow_.mjs +22 -0
- package/resources/vektor/borrow/borrow_.mjs.map +1 -0
- package/resources/vektor/borrow/index.d.mts +6 -0
- package/resources/vektor/borrow/index.d.mts.map +1 -0
- package/resources/vektor/borrow/index.d.ts +6 -0
- package/resources/vektor/borrow/index.d.ts.map +1 -0
- package/resources/vektor/borrow/index.js +13 -0
- package/resources/vektor/borrow/index.js.map +1 -0
- package/resources/vektor/borrow/index.mjs +6 -0
- package/resources/vektor/borrow/index.mjs.map +1 -0
- package/resources/vektor/borrow/markets.d.mts +158 -0
- package/resources/vektor/borrow/markets.d.mts.map +1 -0
- package/resources/vektor/borrow/markets.d.ts +158 -0
- package/resources/vektor/borrow/markets.d.ts.map +1 -0
- package/resources/vektor/borrow/markets.js +42 -0
- package/resources/vektor/borrow/markets.js.map +1 -0
- package/resources/vektor/borrow/markets.mjs +38 -0
- package/resources/vektor/borrow/markets.mjs.map +1 -0
- package/resources/vektor/borrow/positions.d.mts +182 -0
- package/resources/vektor/borrow/positions.d.mts.map +1 -0
- package/resources/vektor/borrow/positions.d.ts +182 -0
- package/resources/vektor/borrow/positions.d.ts.map +1 -0
- package/resources/vektor/borrow/positions.js +50 -0
- package/resources/vektor/borrow/positions.js.map +1 -0
- package/resources/vektor/borrow/positions.mjs +46 -0
- package/resources/vektor/borrow/positions.mjs.map +1 -0
- package/resources/vektor/borrow.d.mts +2 -0
- package/resources/vektor/borrow.d.mts.map +1 -0
- package/resources/vektor/borrow.d.ts +2 -0
- package/resources/vektor/borrow.d.ts.map +1 -0
- package/resources/vektor/borrow.js +6 -0
- package/resources/vektor/borrow.js.map +1 -0
- package/resources/vektor/borrow.mjs +3 -0
- package/resources/vektor/borrow.mjs.map +1 -0
- package/resources/vektor/bridge/bridge.d.mts +10 -0
- package/resources/vektor/bridge/bridge.d.mts.map +1 -0
- package/resources/vektor/bridge/bridge.d.ts +10 -0
- package/resources/vektor/bridge/bridge.d.ts.map +1 -0
- package/resources/vektor/bridge/bridge.js +17 -0
- package/resources/vektor/bridge/bridge.js.map +1 -0
- package/resources/vektor/bridge/bridge.mjs +12 -0
- package/resources/vektor/bridge/bridge.mjs.map +1 -0
- package/resources/vektor/bridge/index.d.mts +3 -0
- package/resources/vektor/bridge/index.d.mts.map +1 -0
- package/resources/vektor/bridge/index.d.ts +3 -0
- package/resources/vektor/bridge/index.d.ts.map +1 -0
- package/resources/vektor/bridge/index.js +9 -0
- package/resources/vektor/bridge/index.js.map +1 -0
- package/resources/vektor/bridge/index.mjs +4 -0
- package/resources/vektor/bridge/index.mjs.map +1 -0
- package/resources/vektor/bridge/quotes.d.mts +57 -0
- package/resources/vektor/bridge/quotes.d.mts.map +1 -0
- package/resources/vektor/bridge/quotes.d.ts +57 -0
- package/resources/vektor/bridge/quotes.d.ts.map +1 -0
- package/resources/vektor/bridge/quotes.js +26 -0
- package/resources/vektor/bridge/quotes.js.map +1 -0
- package/resources/vektor/bridge/quotes.mjs +22 -0
- package/resources/vektor/bridge/quotes.mjs.map +1 -0
- package/resources/vektor/bridge.d.mts +2 -0
- package/resources/vektor/bridge.d.mts.map +1 -0
- package/resources/vektor/bridge.d.ts +2 -0
- package/resources/vektor/bridge.d.ts.map +1 -0
- package/resources/vektor/bridge.js +6 -0
- package/resources/vektor/bridge.js.map +1 -0
- package/resources/vektor/bridge.mjs +3 -0
- package/resources/vektor/bridge.mjs.map +1 -0
- package/resources/vektor/buy/buy.d.mts +14 -0
- package/resources/vektor/buy/buy.d.mts.map +1 -0
- package/resources/vektor/buy/buy.d.ts +14 -0
- package/resources/vektor/buy/buy.d.ts.map +1 -0
- package/resources/vektor/buy/buy.js +21 -0
- package/resources/vektor/buy/buy.js.map +1 -0
- package/resources/vektor/buy/buy.mjs +16 -0
- package/resources/vektor/buy/buy.mjs.map +1 -0
- package/resources/vektor/buy/buy_.d.mts +56 -0
- package/resources/vektor/buy/buy_.d.mts.map +1 -0
- package/resources/vektor/buy/buy_.d.ts +56 -0
- package/resources/vektor/buy/buy_.d.ts.map +1 -0
- package/resources/vektor/buy/buy_.js +27 -0
- package/resources/vektor/buy/buy_.js.map +1 -0
- package/resources/vektor/buy/buy_.mjs +23 -0
- package/resources/vektor/buy/buy_.mjs.map +1 -0
- package/resources/vektor/buy/index.d.mts +4 -0
- package/resources/vektor/buy/index.d.mts.map +1 -0
- package/resources/vektor/buy/index.d.ts +4 -0
- package/resources/vektor/buy/index.d.ts.map +1 -0
- package/resources/vektor/buy/index.js +9 -0
- package/resources/vektor/buy/index.js.map +1 -0
- package/resources/vektor/buy/index.mjs +4 -0
- package/resources/vektor/buy/index.mjs.map +1 -0
- package/resources/vektor/buy/quotes.d.mts +57 -0
- package/resources/vektor/buy/quotes.d.mts.map +1 -0
- package/resources/vektor/buy/quotes.d.ts +57 -0
- package/resources/vektor/buy/quotes.d.ts.map +1 -0
- package/resources/vektor/buy/quotes.js +26 -0
- package/resources/vektor/buy/quotes.js.map +1 -0
- package/resources/vektor/buy/quotes.mjs +22 -0
- package/resources/vektor/buy/quotes.mjs.map +1 -0
- package/resources/vektor/buy.d.mts +2 -0
- package/resources/vektor/buy.d.mts.map +1 -0
- package/resources/vektor/buy.d.ts +2 -0
- package/resources/vektor/buy.d.ts.map +1 -0
- package/resources/vektor/buy.js +6 -0
- package/resources/vektor/buy.js.map +1 -0
- package/resources/vektor/buy.mjs +3 -0
- package/resources/vektor/buy.mjs.map +1 -0
- package/resources/vektor/executions/executions.d.mts +38 -0
- package/resources/vektor/executions/executions.d.mts.map +1 -0
- package/resources/vektor/executions/executions.d.ts +38 -0
- package/resources/vektor/executions/executions.d.ts.map +1 -0
- package/resources/vektor/executions/executions.js +42 -0
- package/resources/vektor/executions/executions.js.map +1 -0
- package/resources/vektor/executions/executions.mjs +37 -0
- package/resources/vektor/executions/executions.mjs.map +1 -0
- package/resources/vektor/executions/index.d.mts +3 -0
- package/resources/vektor/executions/index.d.mts.map +1 -0
- package/resources/vektor/executions/index.d.ts +3 -0
- package/resources/vektor/executions/index.d.ts.map +1 -0
- package/resources/vektor/executions/index.js +9 -0
- package/resources/vektor/executions/index.js.map +1 -0
- package/resources/vektor/executions/index.mjs +4 -0
- package/resources/vektor/executions/index.mjs.map +1 -0
- package/resources/vektor/executions/steps.d.mts +1225 -0
- package/resources/vektor/executions/steps.d.mts.map +1 -0
- package/resources/vektor/executions/steps.d.ts +1225 -0
- package/resources/vektor/executions/steps.d.ts.map +1 -0
- package/resources/vektor/executions/steps.js +45 -0
- package/resources/vektor/executions/steps.js.map +1 -0
- package/resources/vektor/executions/steps.mjs +41 -0
- package/resources/vektor/executions/steps.mjs.map +1 -0
- package/resources/vektor/executions.d.mts +2 -0
- package/resources/vektor/executions.d.mts.map +1 -0
- package/resources/vektor/executions.d.ts +2 -0
- package/resources/vektor/executions.d.ts.map +1 -0
- package/resources/vektor/executions.js +6 -0
- package/resources/vektor/executions.js.map +1 -0
- package/resources/vektor/executions.mjs +3 -0
- package/resources/vektor/executions.mjs.map +1 -0
- package/resources/vektor/incentivize.d.mts +47 -0
- package/resources/vektor/incentivize.d.mts.map +1 -0
- package/resources/vektor/incentivize.d.ts +47 -0
- package/resources/vektor/incentivize.d.ts.map +1 -0
- package/resources/vektor/incentivize.js +24 -0
- package/resources/vektor/incentivize.js.map +1 -0
- package/resources/vektor/incentivize.mjs +20 -0
- package/resources/vektor/incentivize.mjs.map +1 -0
- package/resources/vektor/index.d.mts +17 -0
- package/resources/vektor/index.d.mts.map +1 -0
- package/resources/vektor/index.d.ts +17 -0
- package/resources/vektor/index.d.ts.map +1 -0
- package/resources/vektor/index.js +37 -0
- package/resources/vektor/index.js.map +1 -0
- package/resources/vektor/index.mjs +18 -0
- package/resources/vektor/index.mjs.map +1 -0
- package/resources/vektor/lend/index.d.mts +7 -0
- package/resources/vektor/lend/index.d.mts.map +1 -0
- package/resources/vektor/lend/index.d.ts +7 -0
- package/resources/vektor/lend/index.d.ts.map +1 -0
- package/resources/vektor/lend/index.js +15 -0
- package/resources/vektor/lend/index.js.map +1 -0
- package/resources/vektor/lend/index.mjs +7 -0
- package/resources/vektor/lend/index.mjs.map +1 -0
- package/resources/vektor/lend/lend.d.mts +26 -0
- package/resources/vektor/lend/lend.d.mts.map +1 -0
- package/resources/vektor/lend/lend.d.ts +26 -0
- package/resources/vektor/lend/lend.d.ts.map +1 -0
- package/resources/vektor/lend/lend.js +33 -0
- package/resources/vektor/lend/lend.js.map +1 -0
- package/resources/vektor/lend/lend.mjs +28 -0
- package/resources/vektor/lend/lend.mjs.map +1 -0
- package/resources/vektor/lend/lend_.d.mts +47 -0
- package/resources/vektor/lend/lend_.d.mts.map +1 -0
- package/resources/vektor/lend/lend_.d.ts +47 -0
- package/resources/vektor/lend/lend_.d.ts.map +1 -0
- package/resources/vektor/lend/lend_.js +26 -0
- package/resources/vektor/lend/lend_.js.map +1 -0
- package/resources/vektor/lend/lend_.mjs +22 -0
- package/resources/vektor/lend/lend_.mjs.map +1 -0
- package/resources/vektor/lend/markets.d.mts +158 -0
- package/resources/vektor/lend/markets.d.mts.map +1 -0
- package/resources/vektor/lend/markets.d.ts +158 -0
- package/resources/vektor/lend/markets.d.ts.map +1 -0
- package/resources/vektor/lend/markets.js +42 -0
- package/resources/vektor/lend/markets.js.map +1 -0
- package/resources/vektor/lend/markets.mjs +38 -0
- package/resources/vektor/lend/markets.mjs.map +1 -0
- package/resources/vektor/lend/positions.d.mts +178 -0
- package/resources/vektor/lend/positions.d.mts.map +1 -0
- package/resources/vektor/lend/positions.d.ts +178 -0
- package/resources/vektor/lend/positions.d.ts.map +1 -0
- package/resources/vektor/lend/positions.js +46 -0
- package/resources/vektor/lend/positions.js.map +1 -0
- package/resources/vektor/lend/positions.mjs +42 -0
- package/resources/vektor/lend/positions.mjs.map +1 -0
- package/resources/vektor/lend/set-collateral.d.mts +42 -0
- package/resources/vektor/lend/set-collateral.d.mts.map +1 -0
- package/resources/vektor/lend/set-collateral.d.ts +42 -0
- package/resources/vektor/lend/set-collateral.d.ts.map +1 -0
- package/resources/vektor/lend/set-collateral.js +27 -0
- package/resources/vektor/lend/set-collateral.js.map +1 -0
- package/resources/vektor/lend/set-collateral.mjs +23 -0
- package/resources/vektor/lend/set-collateral.mjs.map +1 -0
- package/resources/vektor/lend/withdraw.d.mts +47 -0
- package/resources/vektor/lend/withdraw.d.mts.map +1 -0
- package/resources/vektor/lend/withdraw.d.ts +47 -0
- package/resources/vektor/lend/withdraw.d.ts.map +1 -0
- package/resources/vektor/lend/withdraw.js +25 -0
- package/resources/vektor/lend/withdraw.js.map +1 -0
- package/resources/vektor/lend/withdraw.mjs +21 -0
- package/resources/vektor/lend/withdraw.mjs.map +1 -0
- package/resources/vektor/lend.d.mts +2 -0
- package/resources/vektor/lend.d.mts.map +1 -0
- package/resources/vektor/lend.d.ts +2 -0
- package/resources/vektor/lend.d.ts.map +1 -0
- package/resources/vektor/lend.js +6 -0
- package/resources/vektor/lend.js.map +1 -0
- package/resources/vektor/lend.mjs +3 -0
- package/resources/vektor/lend.mjs.map +1 -0
- package/resources/vektor/lock/index.d.mts +4 -0
- package/resources/vektor/lock/index.d.mts.map +1 -0
- package/resources/vektor/lock/index.d.ts +4 -0
- package/resources/vektor/lock/index.d.ts.map +1 -0
- package/resources/vektor/lock/index.js +11 -0
- package/resources/vektor/lock/index.js.map +1 -0
- package/resources/vektor/lock/index.mjs +5 -0
- package/resources/vektor/lock/index.mjs.map +1 -0
- package/resources/vektor/lock/lock.d.mts +14 -0
- package/resources/vektor/lock/lock.d.mts.map +1 -0
- package/resources/vektor/lock/lock.d.ts +14 -0
- package/resources/vektor/lock/lock.d.ts.map +1 -0
- package/resources/vektor/lock/lock.js +21 -0
- package/resources/vektor/lock/lock.js.map +1 -0
- package/resources/vektor/lock/lock.mjs +16 -0
- package/resources/vektor/lock/lock.mjs.map +1 -0
- package/resources/vektor/lock/markets.d.mts +43 -0
- package/resources/vektor/lock/markets.d.mts.map +1 -0
- package/resources/vektor/lock/markets.d.ts +43 -0
- package/resources/vektor/lock/markets.d.ts.map +1 -0
- package/resources/vektor/lock/markets.js +24 -0
- package/resources/vektor/lock/markets.js.map +1 -0
- package/resources/vektor/lock/markets.mjs +20 -0
- package/resources/vektor/lock/markets.mjs.map +1 -0
- package/resources/vektor/lock/positions.d.mts +48 -0
- package/resources/vektor/lock/positions.d.mts.map +1 -0
- package/resources/vektor/lock/positions.d.ts +48 -0
- package/resources/vektor/lock/positions.d.ts.map +1 -0
- package/resources/vektor/lock/positions.js +25 -0
- package/resources/vektor/lock/positions.js.map +1 -0
- package/resources/vektor/lock/positions.mjs +21 -0
- package/resources/vektor/lock/positions.mjs.map +1 -0
- package/resources/vektor/lock.d.mts +2 -0
- package/resources/vektor/lock.d.mts.map +1 -0
- package/resources/vektor/lock.d.ts +2 -0
- package/resources/vektor/lock.d.ts.map +1 -0
- package/resources/vektor/lock.js +6 -0
- package/resources/vektor/lock.js.map +1 -0
- package/resources/vektor/lock.mjs +3 -0
- package/resources/vektor/lock.mjs.map +1 -0
- package/resources/vektor/lp/deposit-quote.d.mts +119 -0
- package/resources/vektor/lp/deposit-quote.d.mts.map +1 -0
- package/resources/vektor/lp/deposit-quote.d.ts +119 -0
- package/resources/vektor/lp/deposit-quote.d.ts.map +1 -0
- package/resources/vektor/lp/deposit-quote.js +27 -0
- package/resources/vektor/lp/deposit-quote.js.map +1 -0
- package/resources/vektor/lp/deposit-quote.mjs +23 -0
- package/resources/vektor/lp/deposit-quote.mjs.map +1 -0
- package/resources/vektor/lp/index.d.mts +6 -0
- package/resources/vektor/lp/index.d.mts.map +1 -0
- package/resources/vektor/lp/index.d.ts +6 -0
- package/resources/vektor/lp/index.d.ts.map +1 -0
- package/resources/vektor/lp/index.js +15 -0
- package/resources/vektor/lp/index.js.map +1 -0
- package/resources/vektor/lp/index.mjs +7 -0
- package/resources/vektor/lp/index.mjs.map +1 -0
- package/resources/vektor/lp/lp.d.mts +22 -0
- package/resources/vektor/lp/lp.d.mts.map +1 -0
- package/resources/vektor/lp/lp.d.ts +22 -0
- package/resources/vektor/lp/lp.d.ts.map +1 -0
- package/resources/vektor/lp/lp.js +29 -0
- package/resources/vektor/lp/lp.js.map +1 -0
- package/resources/vektor/lp/lp.mjs +24 -0
- package/resources/vektor/lp/lp.mjs.map +1 -0
- package/resources/vektor/lp/pools.d.mts +158 -0
- package/resources/vektor/lp/pools.d.mts.map +1 -0
- package/resources/vektor/lp/pools.d.ts +158 -0
- package/resources/vektor/lp/pools.d.ts.map +1 -0
- package/resources/vektor/lp/pools.js +42 -0
- package/resources/vektor/lp/pools.js.map +1 -0
- package/resources/vektor/lp/pools.mjs +38 -0
- package/resources/vektor/lp/pools.mjs.map +1 -0
- package/resources/vektor/lp/positions.d.mts +194 -0
- package/resources/vektor/lp/positions.d.mts.map +1 -0
- package/resources/vektor/lp/positions.d.ts +194 -0
- package/resources/vektor/lp/positions.d.ts.map +1 -0
- package/resources/vektor/lp/positions.js +46 -0
- package/resources/vektor/lp/positions.js.map +1 -0
- package/resources/vektor/lp/positions.mjs +42 -0
- package/resources/vektor/lp/positions.mjs.map +1 -0
- package/resources/vektor/lp/withdraw-quote.d.mts +73 -0
- package/resources/vektor/lp/withdraw-quote.d.mts.map +1 -0
- package/resources/vektor/lp/withdraw-quote.d.ts +73 -0
- package/resources/vektor/lp/withdraw-quote.d.ts.map +1 -0
- package/resources/vektor/lp/withdraw-quote.js +27 -0
- package/resources/vektor/lp/withdraw-quote.js.map +1 -0
- package/resources/vektor/lp/withdraw-quote.mjs +23 -0
- package/resources/vektor/lp/withdraw-quote.mjs.map +1 -0
- package/resources/vektor/lp.d.mts +2 -0
- package/resources/vektor/lp.d.mts.map +1 -0
- package/resources/vektor/lp.d.ts +2 -0
- package/resources/vektor/lp.d.ts.map +1 -0
- package/resources/vektor/lp.js +6 -0
- package/resources/vektor/lp.js.map +1 -0
- package/resources/vektor/lp.mjs +3 -0
- package/resources/vektor/lp.mjs.map +1 -0
- package/resources/vektor/move.d.mts +47 -0
- package/resources/vektor/move.d.mts.map +1 -0
- package/resources/vektor/move.d.ts +47 -0
- package/resources/vektor/move.d.ts.map +1 -0
- package/resources/vektor/move.js +26 -0
- package/resources/vektor/move.js.map +1 -0
- package/resources/vektor/move.mjs +22 -0
- package/resources/vektor/move.mjs.map +1 -0
- package/resources/vektor/prices.d.mts +77 -0
- package/resources/vektor/prices.d.mts.map +1 -0
- package/resources/vektor/prices.d.ts +77 -0
- package/resources/vektor/prices.d.ts.map +1 -0
- package/resources/vektor/prices.js +35 -0
- package/resources/vektor/prices.js.map +1 -0
- package/resources/vektor/prices.mjs +31 -0
- package/resources/vektor/prices.mjs.map +1 -0
- package/resources/vektor/registry/assets.d.mts +39 -0
- package/resources/vektor/registry/assets.d.mts.map +1 -0
- package/resources/vektor/registry/assets.d.ts +39 -0
- package/resources/vektor/registry/assets.d.ts.map +1 -0
- package/resources/vektor/registry/assets.js +20 -0
- package/resources/vektor/registry/assets.js.map +1 -0
- package/resources/vektor/registry/assets.mjs +16 -0
- package/resources/vektor/registry/assets.mjs.map +1 -0
- package/resources/vektor/registry/blockchains.d.mts +36 -0
- package/resources/vektor/registry/blockchains.d.mts.map +1 -0
- package/resources/vektor/registry/blockchains.d.ts +36 -0
- package/resources/vektor/registry/blockchains.d.ts.map +1 -0
- package/resources/vektor/registry/blockchains.js +21 -0
- package/resources/vektor/registry/blockchains.js.map +1 -0
- package/resources/vektor/registry/blockchains.mjs +17 -0
- package/resources/vektor/registry/blockchains.mjs.map +1 -0
- package/resources/vektor/registry/borrow-markets.d.mts +46 -0
- package/resources/vektor/registry/borrow-markets.d.mts.map +1 -0
- package/resources/vektor/registry/borrow-markets.d.ts +46 -0
- package/resources/vektor/registry/borrow-markets.d.ts.map +1 -0
- package/resources/vektor/registry/borrow-markets.js +22 -0
- package/resources/vektor/registry/borrow-markets.js.map +1 -0
- package/resources/vektor/registry/borrow-markets.mjs +18 -0
- package/resources/vektor/registry/borrow-markets.mjs.map +1 -0
- package/resources/vektor/registry/errors.d.mts +28 -0
- package/resources/vektor/registry/errors.d.mts.map +1 -0
- package/resources/vektor/registry/errors.d.ts +28 -0
- package/resources/vektor/registry/errors.d.ts.map +1 -0
- package/resources/vektor/registry/errors.js +20 -0
- package/resources/vektor/registry/errors.js.map +1 -0
- package/resources/vektor/registry/errors.mjs +16 -0
- package/resources/vektor/registry/errors.mjs.map +1 -0
- package/resources/vektor/registry/index.d.mts +9 -0
- package/resources/vektor/registry/index.d.mts.map +1 -0
- package/resources/vektor/registry/index.d.ts +9 -0
- package/resources/vektor/registry/index.d.ts.map +1 -0
- package/resources/vektor/registry/index.js +21 -0
- package/resources/vektor/registry/index.js.map +1 -0
- package/resources/vektor/registry/index.mjs +10 -0
- package/resources/vektor/registry/index.mjs.map +1 -0
- package/resources/vektor/registry/lend-markets.d.mts +46 -0
- package/resources/vektor/registry/lend-markets.d.mts.map +1 -0
- package/resources/vektor/registry/lend-markets.d.ts +46 -0
- package/resources/vektor/registry/lend-markets.d.ts.map +1 -0
- package/resources/vektor/registry/lend-markets.js +22 -0
- package/resources/vektor/registry/lend-markets.js.map +1 -0
- package/resources/vektor/registry/lend-markets.mjs +18 -0
- package/resources/vektor/registry/lend-markets.mjs.map +1 -0
- package/resources/vektor/registry/lp-pools.d.mts +44 -0
- package/resources/vektor/registry/lp-pools.d.mts.map +1 -0
- package/resources/vektor/registry/lp-pools.d.ts +44 -0
- package/resources/vektor/registry/lp-pools.d.ts.map +1 -0
- package/resources/vektor/registry/lp-pools.js +21 -0
- package/resources/vektor/registry/lp-pools.js.map +1 -0
- package/resources/vektor/registry/lp-pools.mjs +17 -0
- package/resources/vektor/registry/lp-pools.mjs.map +1 -0
- package/resources/vektor/registry/registry.d.mts +34 -0
- package/resources/vektor/registry/registry.d.mts.map +1 -0
- package/resources/vektor/registry/registry.d.ts +34 -0
- package/resources/vektor/registry/registry.d.ts.map +1 -0
- package/resources/vektor/registry/registry.js +41 -0
- package/resources/vektor/registry/registry.js.map +1 -0
- package/resources/vektor/registry/registry.mjs +36 -0
- package/resources/vektor/registry/registry.mjs.map +1 -0
- package/resources/vektor/registry/venues.d.mts +35 -0
- package/resources/vektor/registry/venues.d.mts.map +1 -0
- package/resources/vektor/registry/venues.d.ts +35 -0
- package/resources/vektor/registry/venues.d.ts.map +1 -0
- package/resources/vektor/registry/venues.js +20 -0
- package/resources/vektor/registry/venues.js.map +1 -0
- package/resources/vektor/registry/venues.mjs +16 -0
- package/resources/vektor/registry/venues.mjs.map +1 -0
- package/resources/vektor/registry.d.mts +2 -0
- package/resources/vektor/registry.d.mts.map +1 -0
- package/resources/vektor/registry.d.ts +2 -0
- package/resources/vektor/registry.d.ts.map +1 -0
- package/resources/vektor/registry.js +6 -0
- package/resources/vektor/registry.js.map +1 -0
- package/resources/vektor/registry.mjs +3 -0
- package/resources/vektor/registry.mjs.map +1 -0
- package/resources/vektor/sell/index.d.mts +4 -0
- package/resources/vektor/sell/index.d.mts.map +1 -0
- package/resources/vektor/sell/index.d.ts +4 -0
- package/resources/vektor/sell/index.d.ts.map +1 -0
- package/resources/vektor/sell/index.js +9 -0
- package/resources/vektor/sell/index.js.map +1 -0
- package/resources/vektor/sell/index.mjs +4 -0
- package/resources/vektor/sell/index.mjs.map +1 -0
- package/resources/vektor/sell/quotes.d.mts +57 -0
- package/resources/vektor/sell/quotes.d.mts.map +1 -0
- package/resources/vektor/sell/quotes.d.ts +57 -0
- package/resources/vektor/sell/quotes.d.ts.map +1 -0
- package/resources/vektor/sell/quotes.js +26 -0
- package/resources/vektor/sell/quotes.js.map +1 -0
- package/resources/vektor/sell/quotes.mjs +22 -0
- package/resources/vektor/sell/quotes.mjs.map +1 -0
- package/resources/vektor/sell/sell.d.mts +14 -0
- package/resources/vektor/sell/sell.d.mts.map +1 -0
- package/resources/vektor/sell/sell.d.ts +14 -0
- package/resources/vektor/sell/sell.d.ts.map +1 -0
- package/resources/vektor/sell/sell.js +21 -0
- package/resources/vektor/sell/sell.js.map +1 -0
- package/resources/vektor/sell/sell.mjs +16 -0
- package/resources/vektor/sell/sell.mjs.map +1 -0
- package/resources/vektor/sell/sell_.d.mts +56 -0
- package/resources/vektor/sell/sell_.d.mts.map +1 -0
- package/resources/vektor/sell/sell_.d.ts +56 -0
- package/resources/vektor/sell/sell_.d.ts.map +1 -0
- package/resources/vektor/sell/sell_.js +27 -0
- package/resources/vektor/sell/sell_.js.map +1 -0
- package/resources/vektor/sell/sell_.mjs +23 -0
- package/resources/vektor/sell/sell_.mjs.map +1 -0
- package/resources/vektor/sell.d.mts +2 -0
- package/resources/vektor/sell.d.mts.map +1 -0
- package/resources/vektor/sell.d.ts +2 -0
- package/resources/vektor/sell.d.ts.map +1 -0
- package/resources/vektor/sell.js +6 -0
- package/resources/vektor/sell.js.map +1 -0
- package/resources/vektor/sell.mjs +3 -0
- package/resources/vektor/sell.mjs.map +1 -0
- package/resources/vektor/vektor.d.mts +2974 -0
- package/resources/vektor/vektor.d.mts.map +1 -0
- package/resources/vektor/vektor.d.ts +2974 -0
- package/resources/vektor/vektor.d.ts.map +1 -0
- package/resources/vektor/vektor.js +73 -0
- package/resources/vektor/vektor.js.map +1 -0
- package/resources/vektor/vektor.mjs +68 -0
- package/resources/vektor/vektor.mjs.map +1 -0
- package/resources/vektor/vote/index.d.mts +4 -0
- package/resources/vektor/vote/index.d.mts.map +1 -0
- package/resources/vektor/vote/index.d.ts +4 -0
- package/resources/vektor/vote/index.d.ts.map +1 -0
- package/resources/vektor/vote/index.js +11 -0
- package/resources/vektor/vote/index.js.map +1 -0
- package/resources/vektor/vote/index.mjs +5 -0
- package/resources/vektor/vote/index.mjs.map +1 -0
- package/resources/vektor/vote/markets.d.mts +47 -0
- package/resources/vektor/vote/markets.d.mts.map +1 -0
- package/resources/vektor/vote/markets.d.ts +47 -0
- package/resources/vektor/vote/markets.d.ts.map +1 -0
- package/resources/vektor/vote/markets.js +24 -0
- package/resources/vektor/vote/markets.js.map +1 -0
- package/resources/vektor/vote/markets.mjs +20 -0
- package/resources/vektor/vote/markets.mjs.map +1 -0
- package/resources/vektor/vote/rewards.d.mts +52 -0
- package/resources/vektor/vote/rewards.d.mts.map +1 -0
- package/resources/vektor/vote/rewards.d.ts +52 -0
- package/resources/vektor/vote/rewards.d.ts.map +1 -0
- package/resources/vektor/vote/rewards.js +25 -0
- package/resources/vektor/vote/rewards.js.map +1 -0
- package/resources/vektor/vote/rewards.mjs +21 -0
- package/resources/vektor/vote/rewards.mjs.map +1 -0
- package/resources/vektor/vote/vote.d.mts +14 -0
- package/resources/vektor/vote/vote.d.mts.map +1 -0
- package/resources/vektor/vote/vote.d.ts +14 -0
- package/resources/vektor/vote/vote.d.ts.map +1 -0
- package/resources/vektor/vote/vote.js +21 -0
- package/resources/vektor/vote/vote.js.map +1 -0
- package/resources/vektor/vote/vote.mjs +16 -0
- package/resources/vektor/vote/vote.mjs.map +1 -0
- package/resources/vektor/vote.d.mts +2 -0
- package/resources/vektor/vote.d.mts.map +1 -0
- package/resources/vektor/vote.d.ts +2 -0
- package/resources/vektor/vote.d.ts.map +1 -0
- package/resources/vektor/vote.js +6 -0
- package/resources/vektor/vote.js.map +1 -0
- package/resources/vektor/vote.mjs +3 -0
- package/resources/vektor/vote.mjs.map +1 -0
- package/resources/vektor/wrap/index.d.mts +4 -0
- package/resources/vektor/wrap/index.d.mts.map +1 -0
- package/resources/vektor/wrap/index.d.ts +4 -0
- package/resources/vektor/wrap/index.d.ts.map +1 -0
- package/resources/vektor/wrap/index.js +9 -0
- package/resources/vektor/wrap/index.js.map +1 -0
- package/resources/vektor/wrap/index.mjs +4 -0
- package/resources/vektor/wrap/index.mjs.map +1 -0
- package/resources/vektor/wrap/unwrap.d.mts +37 -0
- package/resources/vektor/wrap/unwrap.d.mts.map +1 -0
- package/resources/vektor/wrap/unwrap.d.ts +37 -0
- package/resources/vektor/wrap/unwrap.d.ts.map +1 -0
- package/resources/vektor/wrap/unwrap.js +24 -0
- package/resources/vektor/wrap/unwrap.js.map +1 -0
- package/resources/vektor/wrap/unwrap.mjs +20 -0
- package/resources/vektor/wrap/unwrap.mjs.map +1 -0
- package/resources/vektor/wrap/wrap.d.mts +14 -0
- package/resources/vektor/wrap/wrap.d.mts.map +1 -0
- package/resources/vektor/wrap/wrap.d.ts +14 -0
- package/resources/vektor/wrap/wrap.d.ts.map +1 -0
- package/resources/vektor/wrap/wrap.js +21 -0
- package/resources/vektor/wrap/wrap.js.map +1 -0
- package/resources/vektor/wrap/wrap.mjs +16 -0
- package/resources/vektor/wrap/wrap.mjs.map +1 -0
- package/resources/vektor/wrap/wrap_.d.mts +37 -0
- package/resources/vektor/wrap/wrap_.d.mts.map +1 -0
- package/resources/vektor/wrap/wrap_.d.ts +37 -0
- package/resources/vektor/wrap/wrap_.d.ts.map +1 -0
- package/resources/vektor/wrap/wrap_.js +24 -0
- package/resources/vektor/wrap/wrap_.js.map +1 -0
- package/resources/vektor/wrap/wrap_.mjs +20 -0
- package/resources/vektor/wrap/wrap_.mjs.map +1 -0
- package/resources/vektor/wrap.d.mts +2 -0
- package/resources/vektor/wrap.d.mts.map +1 -0
- package/resources/vektor/wrap.d.ts +2 -0
- package/resources/vektor/wrap.d.ts.map +1 -0
- package/resources/vektor/wrap.js +6 -0
- package/resources/vektor/wrap.js.map +1 -0
- package/resources/vektor/wrap.mjs +3 -0
- package/resources/vektor/wrap.mjs.map +1 -0
- package/resources/vektor.d.mts +2 -0
- package/resources/vektor.d.mts.map +1 -0
- package/resources/vektor.d.ts +2 -0
- package/resources/vektor.d.ts.map +1 -0
- package/resources/vektor.js +6 -0
- package/resources/vektor.js.map +1 -0
- package/resources/vektor.mjs +3 -0
- package/resources/vektor.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/vektor/balances.ts +146 -0
- package/src/resources/vektor/borrow/accounts.ts +146 -0
- package/src/resources/vektor/borrow/borrow.ts +69 -0
- package/src/resources/vektor/borrow/borrow_.ts +57 -0
- package/src/resources/vektor/borrow/index.ts +25 -0
- package/src/resources/vektor/borrow/markets.ts +205 -0
- package/src/resources/vektor/borrow/positions.ts +233 -0
- package/src/resources/vektor/borrow.ts +3 -0
- package/src/resources/vektor/bridge/bridge.ts +19 -0
- package/src/resources/vektor/bridge/index.ts +4 -0
- package/src/resources/vektor/bridge/quotes.ts +69 -0
- package/src/resources/vektor/bridge.ts +3 -0
- package/src/resources/vektor/buy/buy.ts +25 -0
- package/src/resources/vektor/buy/buy_.ts +68 -0
- package/src/resources/vektor/buy/index.ts +5 -0
- package/src/resources/vektor/buy/quotes.ts +69 -0
- package/src/resources/vektor/buy.ts +3 -0
- package/src/resources/vektor/executions/executions.ts +57 -0
- package/src/resources/vektor/executions/index.ts +4 -0
- package/src/resources/vektor/executions/steps.ts +1519 -0
- package/src/resources/vektor/executions.ts +3 -0
- package/src/resources/vektor/incentivize.ts +60 -0
- package/src/resources/vektor/index.ts +30 -0
- package/src/resources/vektor/lend/index.ts +20 -0
- package/src/resources/vektor/lend/lend.ts +63 -0
- package/src/resources/vektor/lend/lend_.ts +57 -0
- package/src/resources/vektor/lend/markets.ts +205 -0
- package/src/resources/vektor/lend/positions.ts +229 -0
- package/src/resources/vektor/lend/set-collateral.ts +51 -0
- package/src/resources/vektor/lend/withdraw.ts +57 -0
- package/src/resources/vektor/lend.ts +3 -0
- package/src/resources/vektor/lock/index.ts +5 -0
- package/src/resources/vektor/lock/lock.ts +29 -0
- package/src/resources/vektor/lock/markets.ts +52 -0
- package/src/resources/vektor/lock/positions.ts +58 -0
- package/src/resources/vektor/lock.ts +3 -0
- package/src/resources/vektor/lp/deposit-quote.ts +147 -0
- package/src/resources/vektor/lp/index.ts +27 -0
- package/src/resources/vektor/lp/lp.ts +65 -0
- package/src/resources/vektor/lp/pools.ts +205 -0
- package/src/resources/vektor/lp/positions.ts +249 -0
- package/src/resources/vektor/lp/withdraw-quote.ts +90 -0
- package/src/resources/vektor/lp.ts +3 -0
- package/src/resources/vektor/move.ts +57 -0
- package/src/resources/vektor/prices.ts +102 -0
- package/src/resources/vektor/registry/assets.ts +51 -0
- package/src/resources/vektor/registry/blockchains.ts +50 -0
- package/src/resources/vektor/registry/borrow-markets.ts +62 -0
- package/src/resources/vektor/registry/errors.ts +38 -0
- package/src/resources/vektor/registry/index.ts +10 -0
- package/src/resources/vektor/registry/lend-markets.ts +62 -0
- package/src/resources/vektor/registry/lp-pools.ts +57 -0
- package/src/resources/vektor/registry/registry.ts +79 -0
- package/src/resources/vektor/registry/venues.ts +46 -0
- package/src/resources/vektor/registry.ts +3 -0
- package/src/resources/vektor/sell/index.ts +5 -0
- package/src/resources/vektor/sell/quotes.ts +69 -0
- package/src/resources/vektor/sell/sell.ts +25 -0
- package/src/resources/vektor/sell/sell_.ts +68 -0
- package/src/resources/vektor/sell.ts +3 -0
- package/src/resources/vektor/vektor.ts +3751 -0
- package/src/resources/vektor/vote/index.ts +5 -0
- package/src/resources/vektor/vote/markets.ts +57 -0
- package/src/resources/vektor/vote/rewards.ts +63 -0
- package/src/resources/vektor/vote/vote.ts +29 -0
- package/src/resources/vektor/vote.ts +3 -0
- package/src/resources/vektor/wrap/index.ts +5 -0
- package/src/resources/vektor/wrap/unwrap.ts +45 -0
- package/src/resources/vektor/wrap/wrap.ts +21 -0
- package/src/resources/vektor/wrap/wrap_.ts +45 -0
- package/src/resources/vektor/wrap.ts +3 -0
- package/src/resources/vektor.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/client.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { Compute } from './resources/compute/compute';
|
|
|
23
23
|
import { Connect } from './resources/connect/connect';
|
|
24
24
|
import { Networking } from './resources/networking/networking';
|
|
25
25
|
import { RPCNodes } from './resources/rpc-nodes/rpc-nodes';
|
|
26
|
+
import { Vektor } from './resources/vektor/vektor';
|
|
26
27
|
import { type Fetch } from './internal/builtin-types';
|
|
27
28
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
28
29
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -727,6 +728,7 @@ export class NirvanaLabs {
|
|
|
727
728
|
networking: API.Networking = new API.Networking(this);
|
|
728
729
|
rpcNodes: API.RPCNodes = new API.RPCNodes(this);
|
|
729
730
|
connect: API.Connect = new API.Connect(this);
|
|
731
|
+
vektor: API.Vektor = new API.Vektor(this);
|
|
730
732
|
}
|
|
731
733
|
NirvanaLabs.UserResource = UserResource;
|
|
732
734
|
NirvanaLabs.APIKeys = APIKeys;
|
|
@@ -735,6 +737,7 @@ NirvanaLabs.Compute = Compute;
|
|
|
735
737
|
NirvanaLabs.Networking = Networking;
|
|
736
738
|
NirvanaLabs.RPCNodes = RPCNodes;
|
|
737
739
|
NirvanaLabs.Connect = Connect;
|
|
740
|
+
NirvanaLabs.Vektor = Vektor;
|
|
738
741
|
export declare namespace NirvanaLabs {
|
|
739
742
|
export type RequestOptions = Opts.RequestOptions;
|
|
740
743
|
|
|
@@ -752,6 +755,8 @@ export declare namespace NirvanaLabs {
|
|
|
752
755
|
|
|
753
756
|
export { Connect as Connect };
|
|
754
757
|
|
|
758
|
+
export { Vektor as Vektor };
|
|
759
|
+
|
|
755
760
|
export type RegionName = API.RegionName;
|
|
756
761
|
export type ResourceStatus = API.ResourceStatus;
|
|
757
762
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as VektorAPI from './vektor';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Balances extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List balances for a given set of assets and addresses
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const balances = await client.vektor.balances.list({
|
|
15
|
+
* accounts: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
|
16
|
+
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
17
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(body: BalanceListParams, options?: RequestOptions): APIPromise<BalanceListResponse> {
|
|
22
|
+
return this._client.post('/v1/vektor/balances', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List balances for a given set of assets and addresses
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.vektor.balances.listHistorical({
|
|
32
|
+
* accounts: [
|
|
33
|
+
* '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
34
|
+
* ],
|
|
35
|
+
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
36
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
37
|
+
* from: '2021-01-01T12:00:00Z',
|
|
38
|
+
* to: '2021-01-01T12:00:00Z',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
listHistorical(
|
|
43
|
+
body: BalanceListHistoricalParams,
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<BalanceListHistoricalResponse> {
|
|
46
|
+
return this._client.post('/v1/vektor/balances/historical', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface BalanceListResponse {
|
|
51
|
+
/**
|
|
52
|
+
* Array of Balance
|
|
53
|
+
*/
|
|
54
|
+
items: Array<VektorAPI.Balance>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface BalanceListHistoricalResponse {
|
|
58
|
+
/**
|
|
59
|
+
* A range of blockstamps
|
|
60
|
+
*/
|
|
61
|
+
historical: VektorAPI.OnChainHistoricalRange;
|
|
62
|
+
|
|
63
|
+
items: Array<BalanceListHistoricalResponse.Item>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace BalanceListHistoricalResponse {
|
|
67
|
+
export interface Item {
|
|
68
|
+
/**
|
|
69
|
+
* Information about a specific block number and its timestamp
|
|
70
|
+
*/
|
|
71
|
+
blockstamp: VektorAPI.Blockstamp;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Array of Balance
|
|
75
|
+
*/
|
|
76
|
+
items: Array<VektorAPI.Balance>;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface BalanceListParams {
|
|
81
|
+
/**
|
|
82
|
+
* A list of accounts. Currently only EVM addresses are supported.
|
|
83
|
+
*/
|
|
84
|
+
accounts: Array<VektorAPI.Account>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* A list of asset IDs, EVM addresses or asset symbols
|
|
88
|
+
*/
|
|
89
|
+
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
93
|
+
*/
|
|
94
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Either a ISO8601 timestamp or a block number
|
|
98
|
+
*/
|
|
99
|
+
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* An asset symbol
|
|
103
|
+
*/
|
|
104
|
+
quote_asset_symbol?: VektorAPI.AssetSymbol;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface BalanceListHistoricalParams {
|
|
108
|
+
/**
|
|
109
|
+
* A list of accounts. Currently only EVM addresses are supported.
|
|
110
|
+
*/
|
|
111
|
+
accounts: Array<VektorAPI.Account>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* A list of asset IDs, EVM addresses or asset symbols
|
|
115
|
+
*/
|
|
116
|
+
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
120
|
+
*/
|
|
121
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Either a ISO8601 timestamp or a block number
|
|
125
|
+
*/
|
|
126
|
+
from: VektorAPI.TimestampOrBlockNumber;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Either a ISO8601 timestamp or a block number
|
|
130
|
+
*/
|
|
131
|
+
to: VektorAPI.TimestampOrBlockNumber;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* An asset symbol
|
|
135
|
+
*/
|
|
136
|
+
quote_asset_symbol?: VektorAPI.AssetSymbol;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare namespace Balances {
|
|
140
|
+
export {
|
|
141
|
+
type BalanceListResponse as BalanceListResponse,
|
|
142
|
+
type BalanceListHistoricalResponse as BalanceListHistoricalResponse,
|
|
143
|
+
type BalanceListParams as BalanceListParams,
|
|
144
|
+
type BalanceListHistoricalParams as BalanceListHistoricalParams,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as VektorAPI from '../vektor';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Accounts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get account-level borrow info on specified accounts
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const accounts = await client.vektor.borrow.accounts.list({
|
|
15
|
+
* accounts: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
|
16
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
17
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(body: AccountListParams, options?: RequestOptions): APIPromise<AccountListResponse> {
|
|
22
|
+
return this._client.post('/v1/vektor/borrow/accounts', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Get account-level borrow info on specified accounts
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.vektor.borrow.accounts.listHistorical({
|
|
32
|
+
* accounts: [
|
|
33
|
+
* '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
34
|
+
* ],
|
|
35
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
36
|
+
* from: '2021-01-01T12:00:00Z',
|
|
37
|
+
* to: '2021-01-01T12:00:00Z',
|
|
38
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
listHistorical(
|
|
43
|
+
body: AccountListHistoricalParams,
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<AccountListHistoricalResponse> {
|
|
46
|
+
return this._client.post('/v1/vektor/borrow/accounts/historical', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface AccountListResponse {
|
|
51
|
+
/**
|
|
52
|
+
* A list of borrow accounts
|
|
53
|
+
*/
|
|
54
|
+
items: Array<VektorAPI.BorrowAccount>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface AccountListHistoricalResponse {
|
|
58
|
+
/**
|
|
59
|
+
* A range of blockstamps
|
|
60
|
+
*/
|
|
61
|
+
historical: VektorAPI.OnChainHistoricalRange;
|
|
62
|
+
|
|
63
|
+
items: Array<AccountListHistoricalResponse.Item>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace AccountListHistoricalResponse {
|
|
67
|
+
export interface Item {
|
|
68
|
+
/**
|
|
69
|
+
* Information about a specific block number and its timestamp
|
|
70
|
+
*/
|
|
71
|
+
blockstamp: VektorAPI.Blockstamp;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A list of borrow accounts
|
|
75
|
+
*/
|
|
76
|
+
items: Array<VektorAPI.BorrowAccount>;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface AccountListParams {
|
|
81
|
+
/**
|
|
82
|
+
* A list of accounts. Currently only EVM addresses are supported.
|
|
83
|
+
*/
|
|
84
|
+
accounts: Array<VektorAPI.Account>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
88
|
+
*/
|
|
89
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A list of venue IDs or venue symbols
|
|
93
|
+
*/
|
|
94
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Either a ISO8601 timestamp or a block number
|
|
98
|
+
*/
|
|
99
|
+
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* An asset symbol
|
|
103
|
+
*/
|
|
104
|
+
quote_asset_symbol?: string | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface AccountListHistoricalParams {
|
|
108
|
+
/**
|
|
109
|
+
* A list of accounts. Currently only EVM addresses are supported.
|
|
110
|
+
*/
|
|
111
|
+
accounts: Array<VektorAPI.Account>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
115
|
+
*/
|
|
116
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Either a ISO8601 timestamp or a block number
|
|
120
|
+
*/
|
|
121
|
+
from: VektorAPI.TimestampOrBlockNumber;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Either a ISO8601 timestamp or a block number
|
|
125
|
+
*/
|
|
126
|
+
to: VektorAPI.TimestampOrBlockNumber;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* A list of venue IDs or venue symbols
|
|
130
|
+
*/
|
|
131
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* An asset symbol
|
|
135
|
+
*/
|
|
136
|
+
quote_asset_symbol?: string | null;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare namespace Accounts {
|
|
140
|
+
export {
|
|
141
|
+
type AccountListResponse as AccountListResponse,
|
|
142
|
+
type AccountListHistoricalResponse as AccountListHistoricalResponse,
|
|
143
|
+
type AccountListParams as AccountListParams,
|
|
144
|
+
type AccountListHistoricalParams as AccountListHistoricalParams,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AccountsAPI from './accounts';
|
|
5
|
+
import {
|
|
6
|
+
AccountListHistoricalParams,
|
|
7
|
+
AccountListHistoricalResponse,
|
|
8
|
+
AccountListParams,
|
|
9
|
+
AccountListResponse,
|
|
10
|
+
Accounts,
|
|
11
|
+
} from './accounts';
|
|
12
|
+
import * as BorrowAPI from './borrow_';
|
|
13
|
+
import { Borrow as BorrowAPIBorrow, BorrowCreateParams } from './borrow_';
|
|
14
|
+
import * as MarketsAPI from './markets';
|
|
15
|
+
import {
|
|
16
|
+
MarketListHistoricalParams,
|
|
17
|
+
MarketListHistoricalResponse,
|
|
18
|
+
MarketListParams,
|
|
19
|
+
MarketListResponse,
|
|
20
|
+
Markets,
|
|
21
|
+
} from './markets';
|
|
22
|
+
import * as PositionsAPI from './positions';
|
|
23
|
+
import {
|
|
24
|
+
PositionListHistoricalParams,
|
|
25
|
+
PositionListHistoricalResponse,
|
|
26
|
+
PositionListParams,
|
|
27
|
+
PositionListResponse,
|
|
28
|
+
Positions,
|
|
29
|
+
} from './positions';
|
|
30
|
+
|
|
31
|
+
export class Borrow extends APIResource {
|
|
32
|
+
markets: MarketsAPI.Markets = new MarketsAPI.Markets(this._client);
|
|
33
|
+
positions: PositionsAPI.Positions = new PositionsAPI.Positions(this._client);
|
|
34
|
+
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
|
|
35
|
+
borrow: BorrowAPI.Borrow = new BorrowAPI.Borrow(this._client);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Borrow.Markets = Markets;
|
|
39
|
+
Borrow.Positions = Positions;
|
|
40
|
+
Borrow.Accounts = Accounts;
|
|
41
|
+
Borrow.Borrow = BorrowAPIBorrow;
|
|
42
|
+
|
|
43
|
+
export declare namespace Borrow {
|
|
44
|
+
export {
|
|
45
|
+
Markets as Markets,
|
|
46
|
+
type MarketListResponse as MarketListResponse,
|
|
47
|
+
type MarketListHistoricalResponse as MarketListHistoricalResponse,
|
|
48
|
+
type MarketListParams as MarketListParams,
|
|
49
|
+
type MarketListHistoricalParams as MarketListHistoricalParams,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
Positions as Positions,
|
|
54
|
+
type PositionListResponse as PositionListResponse,
|
|
55
|
+
type PositionListHistoricalResponse as PositionListHistoricalResponse,
|
|
56
|
+
type PositionListParams as PositionListParams,
|
|
57
|
+
type PositionListHistoricalParams as PositionListHistoricalParams,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
Accounts as Accounts,
|
|
62
|
+
type AccountListResponse as AccountListResponse,
|
|
63
|
+
type AccountListHistoricalResponse as AccountListHistoricalResponse,
|
|
64
|
+
type AccountListParams as AccountListParams,
|
|
65
|
+
type AccountListHistoricalParams as AccountListHistoricalParams,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { BorrowAPIBorrow as Borrow, type BorrowCreateParams as BorrowCreateParams };
|
|
69
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as VektorAPI from '../vektor';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Borrow extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Borrow an asset
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const execution = await client.vektor.borrow.borrow.create({
|
|
15
|
+
* amount: '10.0000000000000024',
|
|
16
|
+
* asset: 'asset_01jbz9qc00f8wr64hfe459gb7y',
|
|
17
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
18
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
19
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: BorrowCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution> {
|
|
24
|
+
return this._client.post('/v1/vektor/borrow/borrow', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface BorrowCreateParams {
|
|
29
|
+
/**
|
|
30
|
+
* An arbitrary precision decimal represented as a string
|
|
31
|
+
*/
|
|
32
|
+
amount: VektorAPI.Decimal;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* An asset ID, represented as a TypeID with `asset` prefix
|
|
36
|
+
*/
|
|
37
|
+
asset: VektorAPI.AssetIDOrAddressEVMOrAssetSymbol;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
41
|
+
*/
|
|
42
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* An EVM address
|
|
46
|
+
*/
|
|
47
|
+
from: VektorAPI.Account;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* A list of venue IDs or venue symbols
|
|
51
|
+
*/
|
|
52
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export declare namespace Borrow {
|
|
56
|
+
export { type BorrowCreateParams as BorrowCreateParams };
|
|
57
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Accounts,
|
|
5
|
+
type AccountListResponse,
|
|
6
|
+
type AccountListHistoricalResponse,
|
|
7
|
+
type AccountListParams,
|
|
8
|
+
type AccountListHistoricalParams,
|
|
9
|
+
} from './accounts';
|
|
10
|
+
export { Borrow } from './borrow';
|
|
11
|
+
export {
|
|
12
|
+
Markets,
|
|
13
|
+
type MarketListResponse,
|
|
14
|
+
type MarketListHistoricalResponse,
|
|
15
|
+
type MarketListParams,
|
|
16
|
+
type MarketListHistoricalParams,
|
|
17
|
+
} from './markets';
|
|
18
|
+
export {
|
|
19
|
+
Positions,
|
|
20
|
+
type PositionListResponse,
|
|
21
|
+
type PositionListHistoricalResponse,
|
|
22
|
+
type PositionListParams,
|
|
23
|
+
type PositionListHistoricalParams,
|
|
24
|
+
} from './positions';
|
|
25
|
+
export { type BorrowCreateParams } from './borrow_';
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as VektorAPI from '../vektor';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Markets extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get the current market rates for borrowing an asset
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const markets = await client.vektor.borrow.markets.list({
|
|
15
|
+
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
16
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
17
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(body: MarketListParams, options?: RequestOptions): APIPromise<MarketListResponse> {
|
|
22
|
+
return this._client.post('/v1/vektor/borrow/markets', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Get the current market rates for borrowing an asset
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.vektor.borrow.markets.listHistorical({
|
|
32
|
+
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
33
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
34
|
+
* from: '2021-01-01T12:00:00Z',
|
|
35
|
+
* to: '2021-01-01T12:00:00Z',
|
|
36
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
listHistorical(
|
|
41
|
+
body: MarketListHistoricalParams,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<MarketListHistoricalResponse> {
|
|
44
|
+
return this._client.post('/v1/vektor/borrow/markets/historical', { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface MarketListResponse {
|
|
49
|
+
/**
|
|
50
|
+
* A list of borrow markets
|
|
51
|
+
*/
|
|
52
|
+
items: Array<VektorAPI.BorrowMarket>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface MarketListHistoricalResponse {
|
|
56
|
+
/**
|
|
57
|
+
* A range of blockstamps
|
|
58
|
+
*/
|
|
59
|
+
historical: VektorAPI.OnChainHistoricalRange;
|
|
60
|
+
|
|
61
|
+
items: Array<MarketListHistoricalResponse.Item>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace MarketListHistoricalResponse {
|
|
65
|
+
export interface Item {
|
|
66
|
+
/**
|
|
67
|
+
* Information about a specific block number and its timestamp
|
|
68
|
+
*/
|
|
69
|
+
blockstamp: VektorAPI.Blockstamp;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A list of borrow markets
|
|
73
|
+
*/
|
|
74
|
+
items: Array<VektorAPI.BorrowMarket>;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type MarketListParams =
|
|
79
|
+
| MarketListParams.BorrowMarketsByVenuesAssetsRequestInput
|
|
80
|
+
| MarketListParams.BorrowMarketsByIDsRequestInput;
|
|
81
|
+
|
|
82
|
+
export declare namespace MarketListParams {
|
|
83
|
+
export interface BorrowMarketsByVenuesAssetsRequestInput {
|
|
84
|
+
/**
|
|
85
|
+
* A list of asset IDs, EVM addresses or asset symbols
|
|
86
|
+
*/
|
|
87
|
+
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
91
|
+
*/
|
|
92
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A list of venue IDs or venue symbols
|
|
96
|
+
*/
|
|
97
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Either a ISO8601 timestamp or a block number
|
|
101
|
+
*/
|
|
102
|
+
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* An asset symbol
|
|
106
|
+
*/
|
|
107
|
+
quote_asset_symbol?: string | null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface BorrowMarketsByIDsRequestInput {
|
|
111
|
+
/**
|
|
112
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
113
|
+
*/
|
|
114
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A list of lend/borrow market IDs
|
|
118
|
+
*/
|
|
119
|
+
market_ids: Array<VektorAPI.LendBorrowMarketID>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Either a ISO8601 timestamp or a block number
|
|
123
|
+
*/
|
|
124
|
+
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* An asset symbol
|
|
128
|
+
*/
|
|
129
|
+
quote_asset_symbol?: string | null;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type MarketListHistoricalParams =
|
|
134
|
+
| MarketListHistoricalParams.HistoricalBorrowMarketsByVenuesAssetsRequest
|
|
135
|
+
| MarketListHistoricalParams.HistoricalBorrowMarketsByIDsRequest;
|
|
136
|
+
|
|
137
|
+
export declare namespace MarketListHistoricalParams {
|
|
138
|
+
export interface HistoricalBorrowMarketsByVenuesAssetsRequest {
|
|
139
|
+
/**
|
|
140
|
+
* A list of asset IDs, EVM addresses or asset symbols
|
|
141
|
+
*/
|
|
142
|
+
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
146
|
+
*/
|
|
147
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Either a ISO8601 timestamp or a block number
|
|
151
|
+
*/
|
|
152
|
+
from: VektorAPI.TimestampOrBlockNumber;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Either a ISO8601 timestamp or a block number
|
|
156
|
+
*/
|
|
157
|
+
to: VektorAPI.TimestampOrBlockNumber;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* A list of venue IDs or venue symbols
|
|
161
|
+
*/
|
|
162
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* An asset symbol
|
|
166
|
+
*/
|
|
167
|
+
quote_asset_symbol?: string | null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface HistoricalBorrowMarketsByIDsRequest {
|
|
171
|
+
/**
|
|
172
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
173
|
+
*/
|
|
174
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Either a ISO8601 timestamp or a block number
|
|
178
|
+
*/
|
|
179
|
+
from: VektorAPI.TimestampOrBlockNumber;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* A list of lend/borrow market IDs
|
|
183
|
+
*/
|
|
184
|
+
market_ids: Array<VektorAPI.LendBorrowMarketID>;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Either a ISO8601 timestamp or a block number
|
|
188
|
+
*/
|
|
189
|
+
to: VektorAPI.TimestampOrBlockNumber;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* An asset symbol
|
|
193
|
+
*/
|
|
194
|
+
quote_asset_symbol?: string | null;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export declare namespace Markets {
|
|
199
|
+
export {
|
|
200
|
+
type MarketListResponse as MarketListResponse,
|
|
201
|
+
type MarketListHistoricalResponse as MarketListHistoricalResponse,
|
|
202
|
+
type MarketListParams as MarketListParams,
|
|
203
|
+
type MarketListHistoricalParams as MarketListHistoricalParams,
|
|
204
|
+
};
|
|
205
|
+
}
|