|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 3 | + "title": "Contracts For Company (response)", |
| 4 | + "description": "Get the list of currently available contracts for a given landing company.", |
| 5 | + "type": "object", |
| 6 | + "required": [ |
| 7 | + "echo_req", |
| 8 | + "msg_type" |
| 9 | + ], |
| 10 | + "properties": { |
| 11 | + "contracts_for_company": { |
| 12 | + "title": "contracts_for_company", |
| 13 | + "description": "List of available contracts for a given landing company.", |
| 14 | + "type": "object", |
| 15 | + "additionalProperties": false, |
| 16 | + "required": [ |
| 17 | + "available", |
| 18 | + "hit_count" |
| 19 | + ], |
| 20 | + "properties": { |
| 21 | + "available": { |
| 22 | + "description": "List of available contracts.", |
| 23 | + "type": "array", |
| 24 | + "items": { |
| 25 | + "type": "object", |
| 26 | + "additionalProperties": false, |
| 27 | + "required": [ |
| 28 | + "barrier_category", |
| 29 | + "contract_category", |
| 30 | + "contract_category_display", |
| 31 | + "contract_display", |
| 32 | + "contract_type", |
| 33 | + "sentiment" |
| 34 | + ], |
| 35 | + "properties": { |
| 36 | + "barrier_category": { |
| 37 | + "description": "Category of contract barrier.", |
| 38 | + "type": "string", |
| 39 | + "examples": [ |
| 40 | + "american", |
| 41 | + "asian", |
| 42 | + "euro_atm", |
| 43 | + "euro_non_atm" |
| 44 | + ] |
| 45 | + }, |
| 46 | + "contract_category": { |
| 47 | + "description": "Category of contract.", |
| 48 | + "type": "string", |
| 49 | + "examples": [ |
| 50 | + "asian", |
| 51 | + "callput" |
| 52 | + ] |
| 53 | + }, |
| 54 | + "contract_category_display": { |
| 55 | + "description": "Display name for the contract category, localized to selected language.", |
| 56 | + "type": "string", |
| 57 | + "examples": [ |
| 58 | + "Asians", |
| 59 | + "Up/Down" |
| 60 | + ] |
| 61 | + }, |
| 62 | + "contract_display": { |
| 63 | + "description": "Display name for the contract, localized to selected language.", |
| 64 | + "type": "string", |
| 65 | + "examples": [ |
| 66 | + "Asian Up", |
| 67 | + "Higher" |
| 68 | + ] |
| 69 | + }, |
| 70 | + "contract_type": { |
| 71 | + "description": "Type of contract.", |
| 72 | + "type": "string", |
| 73 | + "examples": [ |
| 74 | + "ASIANU", |
| 75 | + "CALL" |
| 76 | + ] |
| 77 | + }, |
| 78 | + "sentiment": { |
| 79 | + "description": "Type of sentiment.", |
| 80 | + "type": "string", |
| 81 | + "examples": [ |
| 82 | + "differ", |
| 83 | + "down", |
| 84 | + "match", |
| 85 | + "up" |
| 86 | + ] |
| 87 | + } |
| 88 | + } |
| 89 | + }, |
| 90 | + "minItems": 1 |
| 91 | + }, |
| 92 | + "hit_count": { |
| 93 | + "description": "Count of contracts available", |
| 94 | + "type": "number" |
| 95 | + } |
| 96 | + } |
| 97 | + }, |
| 98 | + "echo_req": { |
| 99 | + "description": "Echo of the request made.", |
| 100 | + "type": "object" |
| 101 | + }, |
| 102 | + "msg_type": { |
| 103 | + "description": "Action name of the request made.", |
| 104 | + "type": "string", |
| 105 | + "enum": [ |
| 106 | + "contracts_for_company" |
| 107 | + ] |
| 108 | + }, |
| 109 | + "req_id": { |
| 110 | + "description": "Optional field sent in request to map to response, present only when request contains `req_id`.", |
| 111 | + "type": "integer" |
| 112 | + } |
| 113 | + } |
| 114 | +} |
0 commit comments