OmniTrade API Dart Client is an open-source Dart that integrates the OmniTrade API. You can read the API documentation by visiting this link
You can use in your project adding the dependency on pubspec.yml
dependencies:
...
omnitrade_client:
git: https://github.com/OmniTrade/client-dart
- Import package to use it
import 'package:omnitrade_client/omnitrade_client.dart';
- Create new instance of OmniTrade Client
final client = OmniTradeClient();
If you need to call private methods you'll be supposed to pass credentials
final client = OmniTradeClient(
accessKey: 'xxx',
privateKey: 'yyy'
);
You can got the credentials here
- Call Api method that you need
Future<void> yourFunction() async {
final response = await client.fetchMarkets();
}
- fetchMarkets
- fetchTickets
- fetchTicketsFromMarket
- fetchDepth
- fetchTrades
- fetchK
- fetchKWithPendingTrades
- fetchTimestamp
- generateTrezorChallenge
- fetchMe
- fetchDeposits
- fetchDeposit
- fetchDepositAddress
- fetchOrders
- cancelOrders
- fetchOrder
- cancelOrder
- createManyOrders
- cancelOrdersBottom