Code Monkey home page Code Monkey logo

betfair_api_ng_rails's People

Contributors

sergio1990 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

betfair_api_ng_rails's Issues

Implement new attributes subsystem

This issue is coupled with #18.
At best, defining attributes must looks like this:

class EventResult
  attribute :event, type: BetfairApiNgRails::Event
  attribute :market_count
end

By default type of attribute is String and not array.
Additionally it must has ability to mark attribute as array:

attribute :events, type: BetfairApiNgRails::Event, array: true

Add logging

Writing requests logs to log/betfair_api_ng_rails.{environment}.log.

Share ssoid between all requests

After architecture overview I noticed one very important mistake - ssoid request is done for every different API-NG requests. I think is will be good if ssoid will share between all requests.

Added support passing additional request params

For sample:

{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketCatalogue", "params": {"filter":{"eventIds":["27164277"]},"maxResults":"100"}, "id": 1}

In this example additional params is maxResults.

Syntax Errors when trying to use the gem

Hi,

For some reason I'm getting syntax errors when trying to use the gem for the very first time. It's complaining about the betting.rb file. Should this be happening? It shows up after having run "bundle install" and then trying to run "bundle exec rake betfair_api_ng_rails:install"

betfair_api_ng_rails/lib/betfair_api_ng_rails/api/request_methods/betting.rb:15: syntax error, unexpected tLABEL, expecting ')'
...f list_market_catalogue(filter: BetfairApiNgRails::MarketFil...
... ^

Thanks!

Response caching

Using gem about month in production I came to the conclusion that caching subsystem is very necessary because:

  1. Data is enough longlife
  2. Sometimes request's time reaches 20 second
  3. Will be a lot of requests for same data and, of course, response also will be equal

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.