API docs for Virtual Stock Exchange app
1. API to get company details by NSE_code
GET : api/NSE_code/:code
Response Headers : 200 if found, 404 if not found, 500 for server error
Example
request - localhost:3000/api/NSE_code/LT
package main | |
import ( | |
nsq "github.com/nsqio/go-nsq" | |
) | |
var consumerChannel chan interface | |
func AddMongoBulk(data){ | |
// your code for preprocessing and adding new value in mongoDB in bulk | |
} |
package main | |
import ( | |
nsq "github.com/nsqio/go-nsq" | |
) | |
func AddMongoDB(data){ | |
// your code for preprocessing and adding new value in mongoDB | |
} | |
var handleMessage = func(msg *nsq.Message) error { |
GET : api/NSE_code/:code
Response Headers : 200 if found, 404 if not found, 500 for server error
request - localhost:3000/api/NSE_code/LT
Download .deb file then open with install manager
$ wget https://release.gitkraken.com/linux/gitkraken-amd64.deb
$ sudo dpkg -i gitkraken-amd64.deb
-- 1. Find the names of all students who are friends with someone named Gabriel. | |
SELECT H1.name | |
FROM Highschooler H1 | |
INNER JOIN Friend ON H1.ID = Friend.ID1 | |
INNER JOIN Highschooler H2 ON H2.ID = Friend.ID2 | |
WHERE H2.name = "Gabriel"; | |
-- 2. For every student who likes someone 2 or more grades younger than themselves, return that student's name and grade, and the name and grade of the student they like. |
#For Ubuntu 16.04
$ conda create -n aneesh python=3
$ source activate aneesh
$ source deactivate