Skip to content

Overview

👋 Introduction

Welcome to Reflexivity's API documentation - your guide into the future of financial analysis.

Reflexivity is the ultimate investing platform for global institutional investors and wealth advisors. Reflexivity monitors billions of financial data points daily and alerts you to the ones that actually matter.

🧬 APIs Overview

  • Reflexivity APIs are provided as JSON REST based services.
  • All requests must be authenticated using a bearer token.
  • Authentication tokens can be requested from the Reflexivity OAuth service.
  • An account id and secret must be provided when requesting an authentication token.
  • The Reflexivity team can supply the required account id and secret.

📍 Addresses

Reflexivity services can be found at the following addresses:

Development Staging Production
Authentication https://auth.dev.rflx.co.uk https://auth.staging.rflx.co.uk https://auth.reflexivity.com
API https://api.dev.rflx.co.uk https://api.staging.rflx.co.uk https://api.reflexivity.com
IP 35.190.21.243/32 35.190.21.243/32 34.110.222.251/32

🔐 Authentication

In order to access the Reflexivity API, an end user must:

  1. Acquire an OAuth access token

    1. Request their account id and secret from the Reflexivity back office.
    2. Create an OAuth request. Example:
      {
         "client_id": "<account id>",
         "client_secret": "<account secret>"
      }
      
    3. Request an OAuth access token

    $ curl -d ${OATH_REQUEST} -X POST https://${AUTH_ADDR}/oauth/token
    
    Token is valid for 24h.

    Example request:

    curl -d '{
       "client_id": "<account id>",
       "client_secret": "<account secret>"
    }' -X POST https://auth.dev.rflx.co.uk/oauth/token
    

    Example response:

    {
        "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOlsidG9nZ2xlLmFpIl0sImV4cCI6MTcxMTEwNzA2Mi4wNjY4NzY2LCJpYXQiOjE3MTEwMjA2NjIuMDY2ODc3NiwiaXNzIjoidG9nZ2xlLmFpIiwianRpIjoiYjgwZTZlYWEtMjBiYy00YzI1LTk0MDktYTIxOTNiNGU5NWFmIiwibmJmIjoxNzExMDIwNjYyLjA2Njg3NjYsInNjb3BlIjoiZmVlZDpHZXRBcnRpY2xlIGVudGl0eTpHZXRTbmFrZSBhbmFseXNpczpnZXRfY29tcGFzcyIsInNvdXJjZSI6MH0.cgoM-KU-bh-mEC4t9kaqbtBzvhl9AvD4ntlOk2wa7I6FtyFrAhrpxPYQ-T67WgJo4RafbxT7FOg5GtNc9cT91_A3djBPTAghgy2Su4jiRr8odjU41FLtGpeBWokli2SZ7v6sP31gEjQbAq4PdmnsY-GOSxp1y4ZHi7sIP67StS5sPkyGH4Q71e-k_tDy7oeBOLC4ctYJMLghms3CL8gkOgTKjNsqy6PDyRyUijoWFG5SaPCh9oQpirbjZSuXGIuOjz-EJzmO_Kcm5oRRabqaZe7pYX_gd1A9eu2jBmKKsDz9Kafw0D_fh5KYWwObcyGimH-xz1EVVEaN-kGYJrWFLg",
        "scope": "feed:GetArticle entity:GetSnake analysis:get_compass",
        "expires_in": 86400,
        "token_type": "Bearer"
    }
    

  2. Include the access token in the HTTP Authorization header. Example:

    $ curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -X GET ${API_ADDR}/${ENDPOINT}
    
    The ENDPOINTs are detailed in the service documentation, specifically in the OpenAPI specifications.