nash-io / openlimits

A Rust high performance cryptocurrency trading API with support for multiple exchanges and language wrappers.
http://openlimits.io
BSD 2-Clause "Simplified" License
278 stars 44 forks source link

impl Into<chrono::Duration> for model::Interval #83

Closed mankinskin closed 4 years ago

mankinskin commented 4 years ago

This fixes two naming errors in the model::Interval enum: Interval::FiftyMinutes -> Interval::FifteenMinutes Interval::ThreeDay -> Interval::ThreeDays

And this enables:

model::Interval::FourHours.to_duration().num_milliseconds()
mankinskin commented 4 years ago

Hey @steffenix thanks for marking this as a sized issue :) This means I can claim a NEX reward, right? How does that work?

ghost commented 4 years ago

Yes you can, please contact Fabio on the openlimits slack