A library for communicating with the Bity API. Some calls are missing.
Get an estimate
var client = Client('https://bity.com/'); print(await client.estimate(inputCurrency: "BTC", inputAmount: 1, outputCurrency: "CHF")); client.close();
Create a crypto to fiat order
In this example you want to buy 1000 CHF for Ether. How much Ether that is going to cost can be found by looking at the generated order.
var client = Client('https://bity.com/'); var uuid = await client.createCryptoToFiatOrder(inputCurrency: "ETH", outputCurrency: "CHF", outputAmount: 1000, outputIban: "some iban")); print(uuid); client.close();
var client = Client('https://bity.com/'); print(await client.getOrder("some uuid")); client.close();
Add it to your
dependencies: bity: any
All files in this repository fall under the license specified in COPYING. The project is licensed as AGPL with a lesser clause. It may be used within a proprietary project, but the core library and any changes to it must be published online. Source code for this library must always remain free for everybody to access.