/xrpldata

A Go client for the Ripple Data API.

Primary LanguageGoMIT LicenseMIT

XRPL Data

A client for the Ripple Data API V2. The Ripple Data API v2 provides access to information about changes in the XRP Ledger, including transaction history and processed analytical data.

Example

hc = &http.Client{
    Timeout: time.Second * 10,
}

c := xrpldata.NewClient(hc)

rate, _, err := c.GetExchangeRates("XRP", "USD+rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q", nil)

opts := &xrpldata.GetAccountExchangesOptions{Descending: true, Limit: 10}
exchanges, _, err := c.GetAccountExchanges("rsyDrDi9Emy6vPU78qdxovmNpmj5Qh4NKw", opts)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Contact

@gmosx on Twitter.

License

MIT, see LICENSE file for details.

Copyright © 2019 George Moschovitis.