- v2.1.0Latest
- v2.0.2
- v2.0.1
- v2.0.0
- v1.9.7
- v1.9.6
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.8
- v1.7.12
- v1.7.11
- v1.7.10
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.0
- v0.0.2
Exchange Connectors
This module shall support the emergence of perfect markets by simplifying market access etc.
This module is used a.o. by the Volatility Farming Project.
Volatility Farming exploits unnecessary (manipulation induced) volatility and supports the emergence of a reasonable (fundamentals based) price stability - especially when it is done via DAOs with huge capital pools - open to people - supporting layer 0 :)
Contributions are welcome - please raise issues or PRs to share improvement proposals or contact us via our english-, russian- and german speaking Telegram Group.
Centralized Exchanges (CEXes)
Bybit General Interaction
See also the Bybit Example Client and Bybit Connector for more usage examples.
import { IExchangeConnector } from "https://deno.land/x/exchange_connectors/mod-bybit.ts"
import { BybitConnector } from "https://deno.land/x/exchange_connectors/mod-bybit.ts"
export class ExampleClient {
private exchangeConnector: IExchangeConnector
public constructor(private apiKey: string, private apiSecret: string) {
this.exchangeConnector = new BybitConnector(apiKey, apiSecret)
}
public async showUsageExamples(): Promise<void> {
const accountInfo = await this.exchangeConnector.getFuturesAccountData()
console.log(accountInfo)
const positions = await this.exchangeConnector.getPositions()
console.log(positions)
}
}
const apiKey = Deno.args[0]
const apiSecret = Deno.args[1]
const exampleClient = new ExampleClient(apiKey, apiSecret)
await exampleClient.showUsageExamples()
Bybit Usage Example: Volatility Farming
Via Deno (need to keep the terminal open)
deno run --unstable --allow-net https://deno.land/x/exchange_connectors/src/volatility-farming/volatility-farmer/start-volatility-farmer.ts <yourByBitAPIKey> <yourByBitAPISecret> <yourMongoDBUser> <yourMongoDBPassword> InvestmentAdvisorBTCLongShortExtreme BybitConnector MongoService
Via PM2 (in the background)
git clone https://github.com/distributed-ledger-technology/exchange-connectors.git
cd exchange-connectors
pm2 start -n "volatility-farming" --interpreter="deno" --interpreter-args="run --unstable --allow-net" ./src/volatility-farming/volatility-farmer/start-volatility-farmer.ts -- <yourByBitAPIKey> <yourByBitAPISecret> <yourMongoDBUser> <yourMongoDBPassword> InvestmentAdvisorBTCLongShortExtreme BybitConnector MongoService
Explore it in action: https://openforce.de/
Decentralized Exchanges (DEXes)
Under Construction
Shall we use the web3 deno module (is web3 ready for deno?)?