Git Product home page Git Product logo

j-questrade-room's Introduction

jQuestrade - Room

This library is a version of jQuestrade that has been tailored for use with the Android Room persistence library.

Made for QuestGraph.


Differences from base jQuestrade

  • Objects have been defined using the Room schema.
  • Some objects have been given a timeOfCreation property, since Room tables are immutable.

Example Usage

Questrade q = new Questrade(refreshToken);

try {
	q.activate(); // This must be called before making API requests
	
	Account[] accs     = q.getAccounts();  // Get all accounts
	ZonedDateTime time = q.getTime();      // Get server time
	
	ZonedDateTime startTime = ZonedDateTime.now().minusMonths(1);
	ZonedDateTime endTime   = ZonedDateTime.now();
	
	// Get all orders for the first account in the last month
	Order[] orders = q.getOrders(accs[0].getNumber(), startTime, endTime);
	
} catch (RefreshTokenException e) { 
	// Prompt user to enter another refresh token
}

Installation

Gradle:

  • Add the following into your build.gradle file:
repositories {
	maven { url 'https://jitpack.io' }
}
dependencies {
	implementation 'com.github.mateimarica:j-questrade-room:1.0'
}

Maven:

  • Add the following into your pom.xml file:
<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>
<dependency>
	<groupId>com.github.mateimarica</groupId>
	<artifactId>j-questrade-room</artifactId>
	<version>1.0</version>
</dependency>

Documentation

See the wiki of the base library, jQuestrade.


Disclaimers

  • This library is not affiliated, maintained, authorized, or endorsed by Questrade.

  • This library has not been heavily tested. Use at your own risk.

j-questrade-room's People

Contributors

mateimarica avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.